Connection Trouble
#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.java: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.readServerResponse(HttpURLConnection.java:1250)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.sendRequest(HttpURLConnection.java:1238)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequestInternal(HttpURLConnection.java:1558)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequest(HttpURLConnection.java:1551)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getInputStream(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.java: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.readServerResponse(HttpURLConnection.java:1250)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.sendRequest(HttpURLConnection.java:1238)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequestInternal(HttpURLConnection.java:1558)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequest(HttpURLConnection.java:1551)
W/System.err( 8224):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getInputStream(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)
Reply
#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
Reply
#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$MovieDetailsController$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'
Reply
#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.
Reply
#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
Reply
#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.
Reply
#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
Reply
#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.
Reply
#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!
Reply
#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.
Reply
#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!
Reply
#12
Installed latest stable from svn rep and everything seems to work fine now. Smile

(XBMC PRE-10.5 r28256)
Reply
#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.
Reply
#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...
Reply
#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
Reply

Logout Mark Read Team Forum Stats Members Help
Connection Trouble0