Connection Trouble

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
aldenpotamus Offline
Junior Member
Posts: 21
Joined: Apr 2010
Reputation: 0
Post: #1
So I'm now found the trouble, at least I think so... basically you initially connect to XBMC with the remote and everything looks good but then the first time it tries to fetch a image these messages happen and the remote ports are tied up till your restart XBMC.

Here's the execptions

Code:
I/DownloadThread( 8224): Downloading cover [1] (500) Days of Summer (2009)
I/DownloadThread( 8224): Download START..
I/Client  ( 8224): Starting download
I/Connection( 8224): Preparing input stream from http://192.168.1.90:8800/xbmcCmds/xbmcHttp?command=FileDownload(special%3A%2F%2Fmasterprofile%2FThumbnails%2FVideo​%2Fd%2Fd8dda8cb.tbn)
D/skia    ( 8224): --- SkImageDecoder::Factory returned null
I/Client  ( 8224): Pre-fetch: -1x-1 => (154x154)
I/Client  ( 8224): Sample size: 1
I/Connection( 8224): Preparing input stream from http://192.168.1.90:8800/xbmcCmds/xbmcHttp?command=FileDownload(special%3A%2F%2Fmasterprofile%2FThumbnails%2FVideo​%2Fd%2Fd8dda8cb.tbn)
I/Connection( 8224): http://192.168.1.90:8800/xbmcCmds/xbmcHttp?command=GetCurrentlyPlaying()
W/System.err( 8224): java.net.SocketTimeoutException: The operation timed out
W/System.err( 8224):     at org.apache.harmony.luni.platform.OSNetworkSystem.receiveStreamImpl(Native Method)
W/System.err( 8224):     at org.apache.harmony.luni.platform.OSNetworkSystem.receiveStream(OSNetworkSystem.j​ava:478)
W/System.err( 8224):     at org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:565)
W/System.err( 8224):     at org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:61)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.readln(​HttpURLConnection.java:1178)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.readSer​verResponse(HttpURLConnection.java:1250)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.sendReq​uest(HttpURLConnection.java:1238)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doReque​stInternal(HttpURLConnection.java:1558)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doReque​st(HttpURLConnection.java:1551)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getInpu​tStream(HttpURLConnection.java:1052)
W/System.err( 8224):     at org.xbmc.httpapi.Connection.getInputStream(Connection.java:180)
W/System.err( 8224):     at org.xbmc.httpapi.client.Client.getCover(Client.java:91)
W/System.err( 8224):     at org.xbmc.httpapi.client.VideoClient.getCover(VideoClient.java:218)
W/System.err( 8224):     at org.xbmc.android.remote.business.DownloadThread$1.run(DownloadThread.java:100)
W/System.err( 8224):     at android.os.Handler.handleCallback(Handler.java:587)
W/System.err( 8224):     at android.os.Handler.dispatchMessage(Handler.java:92)
W/System.err( 8224):     at android.os.Looper.loop(Looper.java:123)
W/System.err( 8224):     at org.xbmc.android.remote.business.AbstractThread.run(AbstractThread.java:60)
W/System.err( 8224): java.io.IOException: Stream is closed
W/System.err( 8224):     at java.io.BufferedInputStream.read(BufferedInputStream.java:239)
W/System.err( 8224):     at org.xbmc.android.util.Base64$InputStream.read(Base64.java:1729)
W/System.err( 8224):     at org.xbmc.android.util.Base64$InputStream.read(Base64.java:1806)
W/System.err( 8224):     at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
W/System.err( 8224):     at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:459)
W/System.err( 8224):     at org.xbmc.httpapi.client.Client.getCover(Client.java:96)
W/System.err( 8224):     at org.xbmc.httpapi.client.VideoClient.getCover(VideoClient.java:218)
W/System.err( 8224):     at org.xbmc.android.remote.business.DownloadThread$1.run(DownloadThread.java:100)
W/System.err( 8224):     at android.os.Handler.handleCallback(Handler.java:587)
W/System.err( 8224):     at android.os.Handler.dispatchMessage(Handler.java:92)
W/System.err( 8224):     at android.os.Looper.loop(Looper.java:123)
W/System.err( 8224):     at org.xbmc.android.remote.business.AbstractThread.run(AbstractThread.java:60)
D/skia    ( 8224): ---- read threw an exception
W/System.err( 8224): java.io.IOException: Stream is closed

...

D/skia    ( 8224): ---- read threw an exception
W/System.err( 8224): java.io.IOException: Stream is closed

... Many more "Stream is closed" exepctions

D/skia    ( 8224): ------- available threw an exception
D/skia    ( 8224): --- SkImageDecoder::Factory returned null
I/Client  ( 8224): Fetch: Bitmap is null!!
I/DownloadThread( 8224): Download END.
I/DownloadThread( 8224): Adding null-value (-656561973) to mem cache in order to block future downloads
I/AbstractManager( 8224): [1] Download empty
I/DownloadThread( 8224): Downloading cover [2] A Clockwork Orange (1971)
I/DownloadThread( 8224): Download START..
I/Client  ( 8224): Starting download
I/Connection( 8224): Preparing input stream from http://192.168.1.90:8800/xbmcCmds/xbmcHttp?command=FileDownload(special%3A%2F%2Fmasterprofile%2FThumbnails%2FVideo​%2Fd%2Fdff738b0.tbn)
W/System.err( 8224): java.net.SocketTimeoutException: The operation timed out
W/System.err( 8224):     at org.apache.harmony.luni.platform.OSNetworkSystem.receiveStreamImpl(Native Method)
W/System.err( 8224):     at org.apache.harmony.luni.platform.OSNetworkSystem.receiveStream(OSNetworkSystem.j​ava:478)
W/System.err( 8224):     at org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:565)
W/System.err( 8224):     at org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:61)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.readln(​HttpURLConnection.java:1178)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.readSer​verResponse(HttpURLConnection.java:1250)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.sendReq​uest(HttpURLConnection.java:1238)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doReque​stInternal(HttpURLConnection.java:1558)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doReque​st(HttpURLConnection.java:1551)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getInpu​tStream(HttpURLConnection.java:1052)
W/System.err( 8224):     at org.xbmc.httpapi.Connection.getInputStream(Connection.java:180)
W/System.err( 8224):     at org.xbmc.httpapi.client.Client.getCover(Client.java:80)
W/System.err( 8224):     at org.xbmc.httpapi.client.VideoClient.getCover(VideoClient.java:218)
W/System.err( 8224):     at org.xbmc.android.remote.business.DownloadThread$1.run(DownloadThread.java:100)
W/System.err( 8224):     at android.os.Handler.handleCallback(Handler.java:587)
W/System.err( 8224):     at android.os.Handler.dispatchMessage(Handler.java:92)
W/System.err( 8224):     at android.os.Looper.loop(Looper.java:123)
W/System.err( 8224):     at org.xbmc.android.remote.business.AbstractThread.run(AbstractThread.java:60)
W/System.err( 8224): java.io.IOException: Stream is closed

... Many more "Stream is closed" exepctions

D/skia    ( 8224): ------- available threw an exception
D/skia    ( 8224): --- SkImageDecoder::Factory returned null
I/Client  ( 8224): Pre-fetch: -1x-1 => (154x154)
I/Client  ( 8224): Sample size: 1
I/Connection( 8224): Preparing input stream from http://192.168.1.90:8800/xbmcCmds/xbmcHttp?command=FileDownload(special%3A%2F%2Fmasterprofile%2FThumbnails%2FVideo​%2Fd%2Fdff738b0.tbn)
W/System.err( 8224): java.net.SocketTimeoutException: The operation timed out

...

W/System.err( 8224): java.io.IOException: Stream is closed

... Many more "Stream is closed" exepctions

D/skia    ( 8224): ------- available threw an exception
D/skia    ( 8224): --- SkImageDecoder::Factory returned null
I/Client  ( 8224): Fetch: Bitmap is null!!
I/DownloadThread( 8224): Download END.
I/DownloadThread( 8224): Adding null-value (-537446224) to mem cache in order to block future downloads
I/AbstractManager( 8224): [2] Download empty
I/DownloadThread( 8224): Downloading cover [3] A History of Violence (2005)
I/DownloadThread( 8224): Download START..
I/Client  ( 8224): Starting download
I/Connection( 8224): Preparing input stream from http://192.168.1.90:8800/xbmcCmds/xbmcHttp?command=FileDownload(special%3A%2F%2Fmasterprofile%2FThumbnails%2FVideo​%2Fb%2Fb4b962e7.tbn)
find quote
aldenpotamus Offline
Junior Member
Posts: 21
Joined: Apr 2010
Reputation: 0
Post: #2
As I mentioned before the remote control screen works just fine, and continues to work after these exceptions are thrown, but this removes the Movies and Music menus and replaces them with connect that doesn't work after that. I have the complete log file if you'd like it just let me know.

Cheers,
Alden
find quote
aldenpotamus Offline
Junior Member
Posts: 21
Joined: Apr 2010
Reputation: 0
Post: #3
Oh and one more thing. I assume this is caused by not being able to retreive the images, but this exception fired and caused the program to force close while I was continuing to play with it.

Code:
I/Connection( 8224): http://192.168.1.90:8800/xbmcCmds/xbmcHttp?command=GetSystemInfo(120)
I/ActivityManager( 1017): Starting activity: Intent { cmp=org.xbmc.android.remote/.presentation.activity.MovieLibraryActivity }
D/HostProvider( 8224): SQLite database version: 4
I/ActivityManager( 1017): Process com.android.calendar (pid 8370) has died.
I/ActivityManager( 1017): Displayed activity org.xbmc.android.remote/.presentation.activity.MovieLibraryActivity: 641 ms (total 641 ms)
D/dalvikvm( 8224): GC freed 6297 objects / 419200 bytes in 59ms
W/dalvikvm( 8224): threadid=13: thread exiting with uncaught exception (group=0x4001b180)
E/AndroidRuntime( 8224): Uncaught handler: thread ManagerThread exiting due to uncaught exception
E/AndroidRuntime( 8224): java.lang.NullPointerException
E/AndroidRuntime( 8224):     at org.xbmc.android.remote.presentation.activity.MovieDetailsActivity$MovieDetailsC​ontroller$3.run(MovieDetailsActivity.java:150)
E/AndroidRuntime( 8224):     at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 8224):     at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 8224):     at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 8224):     at org.xbmc.android.remote.business.ManagerThread.run(ManagerThread.java:78)
I/Process ( 1017): Sending signal. PID: 8224 SIG: 3
I/dalvikvm( 8224): threadid=7: reacting to signal 3
I/dalvikvm( 8224): Wrote stack trace to '/data/anr/traces.txt'
find quote
freezy Offline
Team-XBMC Android Remote Developer
Posts: 885
Joined: Dec 2006
Reputation: 15
Location: Switzerland
Post: #4
Which version of XBMC are you running?

Running XBMC on my HTPC, tablet, phone and pinball machine.
Always read the XBMC online-manual, FAQ and search the forums before posting. Do NOT e-mail Team-XBMC members asking for support. For troubleshooting and bug reporting, make sure you read this first.
find quote
aldenpotamus Offline
Junior Member
Posts: 21
Joined: Apr 2010
Reputation: 0
Post: #5
I'm running 9.11-karmic1 and the lastest version of XBMC remote from the SVN. Also this problem cropped up post the switch in methodology for getting album art I believe, and when I roll back to revision before that things work again.

-Alden
find quote
freezy Offline
Team-XBMC Android Remote Developer
Posts: 885
Joined: Dec 2006
Reputation: 15
Location: Switzerland
Post: #6
And you're using latest SVN build of XBMC Remote?

Running XBMC on my HTPC, tablet, phone and pinball machine.
Always read the XBMC online-manual, FAQ and search the forums before posting. Do NOT e-mail Team-XBMC members asking for support. For troubleshooting and bug reporting, make sure you read this first.
find quote
the_alien Offline
Team-XBMC Android Remote Developer
Posts: 423
Joined: May 2008
Reputation: 0
Post: #7
Yeah, 9.11 final and latest SVN remote doesn't work. The http api seems to has a bug with the new cover loading.

XBMCLive Dharma beta 2 running on an ASRock ION 330 HT
find quote
freezy Offline
Team-XBMC Android Remote Developer
Posts: 885
Joined: Dec 2006
Reputation: 15
Location: Switzerland
Post: #8
And I should have read your whole response. Indeed Camelot's HTTPAPI will go bye bye on latest SVN, so grab a newer release of XBMC.

Running XBMC on my HTPC, tablet, phone and pinball machine.
Always read the XBMC online-manual, FAQ and search the forums before posting. Do NOT e-mail Team-XBMC members asking for support. For troubleshooting and bug reporting, make sure you read this first.
find quote
aldenpotamus Offline
Junior Member
Posts: 21
Joined: Apr 2010
Reputation: 0
Post: #9
Ah, so the remote api has changed on the XBMC side? I'm running the most current stable release of XBMC, but if I understand correctly I have to be running either a nightly build or SVN release to be able to use all the functionality of the remote?

Can you recommend a specific tag or revision number of XBMC that will be reasonably bug free, I'm a little hesitant to move off the stable version since I don't know of any features on the SVN of XBMC that I want other than your remote (which I definitely want).

Also currently I think that your current APK 0.6.7 (?) isn't compatible with the current stable version of XBMC, might be a good idea to make a branch of the remote that works with XBMC's SVN and keep the released APK compatible with the stable version of XBMC... just thinking that way non-coders can still enjoy the remote.

All that said, love the remote and keep up the good work!
find quote
freezy Offline
Team-XBMC Android Remote Developer
Posts: 885
Joined: Dec 2006
Reputation: 15
Location: Switzerland
Post: #10
As near but not higher than r28276 is recommended (though v0.6.7 will still work, changes were introduces after that).

While being compatible to latest XBMC stable is surely a goal, XBMC Remote is still bleeding edge. Given the compatibility issues with libgoahead in Camelot, the latest stable for XBMC Remote will probably start at 10.5.

Running XBMC on my HTPC, tablet, phone and pinball machine.
Always read the XBMC online-manual, FAQ and search the forums before posting. Do NOT e-mail Team-XBMC members asking for support. For troubleshooting and bug reporting, make sure you read this first.
find quote
aldenpotamus Offline
Junior Member
Posts: 21
Joined: Apr 2010
Reputation: 0
Post: #11
Ah thanks, looks like I'll be replacing my copy of XBMC with the SVN version you mentioned tonight... Would probably be a good idea to list on the front page what the revision range that the remote is meant to work with is, just so people know what to expect.

Thanks!
find quote
icewall Offline
Junior Member
Posts: 5
Joined: Apr 2010
Reputation: 0
Location: Copenhagen, Denmark
Post: #12
Installed latest stable from svn rep and everything seems to work fine now. Smile

(XBMC PRE-10.5 r28256)
find quote
freezy Offline
Team-XBMC Android Remote Developer
Posts: 885
Joined: Dec 2006
Reputation: 15
Location: Switzerland
Post: #13
We'll announce it properly with the next release. SVN builds are too bleeding edge to announce every time it's not working 100%...

Running XBMC on my HTPC, tablet, phone and pinball machine.
Always read the XBMC online-manual, FAQ and search the forums before posting. Do NOT e-mail Team-XBMC members asking for support. For troubleshooting and bug reporting, make sure you read this first.
find quote
Requiem Offline
Junior Member
Posts: 30
Joined: May 2009
Reputation: 0
Post: #14
Strange. If I understand correctly, 0.6.7 apk does not work with XBMC Stable from XBMC.org?

Well, I am using this combination, and have not encountered a single error. Library browsing, remote mode, auto pause on incoming call and sms preview at least works...
find quote
the_alien Offline
Team-XBMC Android Remote Developer
Posts: 423
Joined: May 2008
Reputation: 0
Post: #15
No you missunterstood it. The latest SVN aka next upcoming version, is not working with XBMC 9.11.

XBMCLive Dharma beta 2 running on an ASRock ION 330 HT
find quote