[Galaxy Tab 10.1 Android Development] zerong:
I didnt want say properly but safely ! unplug a sdcard or stick usb safely, not like a barbarian :) . There isnt an icon in notification task bar like before , where we can touch and it mentionned "usb can be unplug ...... ....."

Thanks

---------- Post added at 09:05 AM ---------- Previous post was at 08:53 AM ----------

So , i use a lot Plex media server and it seem there is a little compatibility trouble with AOKP and CM10 rom . Here a log from crash .

Trouble is cant forward , seek, resume during streaming server (all was perfect with official rom) :

'm on a Galaxy Tab 10.1 Google IO (GT-P7510) running CM10 Android 4.1.2 Kernel 3.1.10-cyanogen, latest public Plex Server (OS X).

Here is the interesting part of the logs:

D/PlexVideoView( 1078): Transitioning from PREPARED to PLAYING.

D/VideoPlayerActivity( 1078): Playback starting

W/LiveSession( 133): bandwidth estimated at 293.89 kbps

W/LiveSession( 133): fetchFile http://10.0.1.4:32400/video/:/trans...xxxx-726a-4d43-a2f8-62cf83545fcc/9/index.m3u8

V/ChromiumHTTPDataSource( 133): connect on behalf of uid 10067

I/ChromiumHTTPDataSource( 133): connect to http://10.0.1.4:32400/video/:/trans...xxxx-726a-4d43-a2f8-62cf83545fcc/9/index.m3u8 @0

V/MediaListActivity( 1078): MediaHierarchyObjectAdapter: Called onStop

W/LiveSession( 133): fetchFile http://10.0.1.4:32400/video/:/trans...xxxxxx-726a-4d43-a2f8-62cf83545fcc/9/00000.ts

V/ChromiumHTTPDataSource( 133): connect on behalf of uid 10067

I/ChromiumHTTPDataSource( 133): connect to http://10.0.1.4:32400/video/:/trans...xxxxxx-726a-4d43-a2f8-62cf83545fcc/9/00000.ts @0

W/LiveSession( 133): bandwidth estimated at 32045.11 kbps

W/LiveSession( 133): fetchFile http://10.0.1.4:32400/video/:/trans...xxxxxx-726a-4d43-a2f8-62cf83545fcc/9/00001.ts

V/ChromiumHTTPDataSource( 133): connect on behalf of uid 10067

I/ChromiumHTTPDataSource( 133): connect to http://10.0.1.4:32400/video/:/trans...xxxxxx-726a-4d43-a2f8-62cf83545fcc/9/00001.ts @0

I/avc_utils( 133): found AVC codec config (624 x 352, Baseline-profile level 3.0)

I/ESQueue ( 133): found AAC codec config (44100 Hz, 2 channels)

W/LiveSession( 133): Seeking to seq 79 new seek time 79.00 secs

W/LiveSession( 133): bandwidth estimated at 25306.23 kbps

W/LiveSession( 133): fetchFile http://10.0.1.4:32400/video/:/trans...xxxxxx-726a-4d43-a2f8-62cf83545fcc/9/00079.ts

V/ChromiumHTTPDataSource( 133): connect on behalf of uid 10067

I/ChromiumHTTPDataSource( 133): connect to http://10.0.1.4:32400/video/:/trans...xxxxxx-726a-4d43-a2f8-62cf83545fcc/9/00079.ts @0

E/OMXNodeInstance( 133): OMX_GetExtensionIndex failed

I/PlexVideoView( 1078): Seek completed.

D/PlexVideoView( 1078): Transitioning from PLAYING to PLAYING.

D/VideoPlayerActivity( 1078): Playback starting

I/SoftAAC2( 133): Reconfiguring decoder: 44100 Hz, 2 channels

I/AudioPolicyManager( 133): startOutput() output 4, stream 3, session 58

D/AudioSystem( 133): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!

D/AudioSystem( 133): audio_stream_type_t: 3

D/AudioSystem( 133): isSeparatedStream: false

I/AudioPolicyManager( 133): getDeviceForStrategy() strategy 0, device 2

D/AudioHardware( 133): AudioHardware pcm playback is exiting standby.

V/AudioHardware( 133): open pcm_out driver

I/AudioHardware( 133): openPcmOut_l() mPcmOpenCnt: 0

V/AudioHardware( 133): openPcmOut_l end

V/AudioHardware( 133): openMixer_l() mMixerOpenCnt: 0

V/AudioHardware( 133): openMixer_l end

V/AudioHardware( 133): open playback normal

V/AudioHardware( 133): write() wakeup setting route SPK

I/AudioHardware( 133): mSetVolumeIndex=0, mIsMusicPlaying=0, musicvolumeindex=-2

D/NvOsDebugPrintf( 133): Allocating new output: 624x352 (x 5)

D/PlexVideoView( 1078): Saw video size change.

D/PlexVideoView( 1078): Resizing: getHolder().setFixedSize(1280, 722)

D/PlexVideoView( 1078): Size changed from 1280x752 to 1280x722

D/PlexVideoView( 1078): Resizing: getHolder().setFixedSize(1280, 722)

I/PlexVideoView( 1078): Surface changed from width(1280), height(752) to width(1280), height(722)

D/PlexVideoView( 1078): Resizing: getHolder().setFixedSize(1280, 722)

D/VideoPlayerActivity( 1078): surfaceChanged called

V/HttpClientRequest( 1078): Download failed (exception will follow) for url : http://5.145.238.149:32400/

W/HttpClientRequest( 1078): Download failed no more retries - (attempt 1) after 15083 ms for url: http://5.145.238.149:32400/

V/HttpClientRequest( 1078): Problem during HttpClientRequest (stack trace follows).

V/HttpClientRequest( 1078): org.apache.http.conn.ConnectTimeoutException: Connect to /5.145.238.149:32400 timed out

V/HttpClientRequest( 1078): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:121)

V/HttpClientRequest( 1078): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144)

V/HttpClientRequest( 1078): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)

V/HttpClientRequest( 1078): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)

V/HttpClientRequest( 1078): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)

V/HttpClientRequest( 1078): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)

V/HttpClientRequest( 1078): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)

V/HttpClientRequest( 1078): at com.plexapp.http.HttpClientRequest.fetchAllData(HttpClientRequest.java:359)

V/HttpClientRequest( 1078): at com.plexapp.http.HttpClientRequest.invokeHttpRequest(HttpClientRequest.java:456)

V/HttpClientRequest( 1078): at com.plexapp.http.HttpClientRequest.call(HttpClientRequest.java:399)

V/HttpClientRequest( 1078): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)

V/HttpClientRequest( 1078): at java.util.concurrent.FutureTask.run(FutureTask.java:137)

V/HttpClientRequest( 1078): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)

V/HttpClientRequest( 1078): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)

V/HttpClientRequest( 1078): at java.lang.Thread.run(Thread.java:856)

V/PlexConnectivityManager( 1078): Reported connectivity problem on connection : 5.145.238.149:32400.

E/AudioHardware( 133): AudioStreamOutALSA::standby spdifenable =0

D/AudioHardware( 133): AudioHardware pcm playback is going to standby.

V/AudioHardware( 133): closeMixer_l() mMixerOpenCnt: 1

V/AudioHardware( 133): closeMixer_l mMixerOpenCnt = 0 end

I/AudioHardware( 133): closePcmOut_l() mPcmOpenCnt: 1

V/AudioHardware( 133): closePcmOut_l end

W/LiveSession( 133): bandwidth estimated at 24273.36 kbps

W/LiveSession( 133): fetchFile http://10.0.1.4:32400/video/:/trans...xxxxxx-726a-4d43-a2f8-62cf83545fcc/9/00080.ts

V/ChromiumHTTPDataSource( 133): connect on behalf of uid 100xx

I/ChromiumHTTPDataSource( 133): connect to http://10.0.1.4:32400/video/:/trans...xxxxxx-726a-4d43-a2f8-62cf83545fcc/9/00080.ts @0

E/ATSParser( 133): PES packet does not carry enough data to contain payload. (numBitsLeft = 7184, required = 9472)

E/HTTPLiveSource( 133): TS Parser returned error -1007

W/AudioTrack( 133): releaseBuffer() track 0x44321c48 name=0x2 disabled, restarting

D/AudioHardware( 133): AudioHardware pcm playback is exiting standby.

V/AudioHardware( 133): open pcm_out driver

I/AudioHardware( 133): openPcmOut_l() mPcmOpenCnt: 0

E/NuPlayer( 133): audio track encountered an error (-1007)

E/MediaPlayer( 1078): error (1, -1007)

E/MediaPlayer( 1078): Error (1,-1007)

D/PlexMediaPlayer( 1078): Transitioning from mediaPlayer.state Started to Error.

D/PlexVideoView( 1078): Error (1,-1007) : Badly formed media stream.

D/PlexVideoView( 1078): Transitioning from PLAYING to ERROR.

E/VideoPlayerActivity( 1078): Saw error when trying to display media : Badly formed media stream.

I/PlexVideoView( 1078): Stopping media player.

I/PlexVideoView( 1078): Resetting media player.

V/AudioHardware( 133): openPcmOut_l end

V/AudioHardware( 133): openMixer_l() mMixerOpenCnt: 0

V/AudioHardware( 133): openMixer_l end

V/AudioHardware( 133): open playback normal

V/AudioHardware( 133): write() wakeup setting route SPK

D/PlexMediaPlayer( 1078): mediaplayer.stopTranscode()

V/HttpClientRequest( 1078): Requesting url : http://10.0.1.4:32400/video/:/transcode/segmented/stop

D/PlexVideoView( 1078): Transitioning from ERROR to IDLE.

D/PlexVideoView( 1078): Transitioning from IDLE to IDLE.

E/VideoPlayerActivity( 1078): Ignoring error close to the end of video : Badly formed media stream.

V/HttpClientRequest( 1078): Tying duplicate request fetch underway for url : http://10.0.1.4:32400/video/:/transcode/segmented/stop

I/MediaViewerActivity( 1078): Percent complete: 0

D/Connection( 1078): buildUrlWithPlexParams: http://10.0.1.4:32400/:/progress?ke...lexapp.plugins.library&time=417&state=stopped

V/HttpClientRequest( 1078): Requesting url : http://10.0.1.4:32400/:/progress?ke...lexapp.plugins.library&time=417&state=stopped

D/PlexVideoView( 1078): Transitioning from IDLE to IDLE.

D/PlexVideoView( 1078): Transitioning from IDLE to IDLE.

D/VideoPlayerActivity( 1078): Shutting down resultCode = 5, errorMessage = null

D/MediaPlayerActivity( 1078): onCompletion called

D/VideoPlayerActivity( 1078): We were in the midst of watching something - targetProgress set to 0s.

I'm not sure why the app does that:

V/HttpClientRequest( 1078): Download failed (exception will follow) for url : http://5.145.238.149:32400/

The IP seems to be somewhere in Russia o_O, it should have gone to the local 10.0.1.4 ip.

Anyway, the exception seems to be rescued, the problem reported (I'm really curious about the data you send to Russia btw).

The the app tries to fetch the local transcoded stream and fails due to a bad payload:

W/LiveSession( 133): bandwidth estimated at 24273.36 kbps

W/LiveSession( 133): fetchFile http://10.0.1.4:32400/video/:/trans...xxxxxx-726a-4d43-a2f8-62cf83545fcc/9/00080.ts

V/ChromiumHTTPDataSource( 133): connect on behalf of uid 10067

I/ChromiumHTTPDataSource( 133): connect to http://10.0.1.4:32400/video/:/trans...xxxxxx-726a-4d43-a2f8-62cf83545fcc/9/00080.ts @0

E/ATSParser( 133): PES packet does not carry enough data to contain payload. (numBitsLeft = 7184, required = 9472)

E/HTTPLiveSource( 133): TS Parser returned error -1007

W/AudioTrack( 133): releaseBuffer() track 0x44321c48 name=0x2 disabled, restarting

Now the same file from the same server works fine on my other tablet (HP touchpad running CM9).

It could be a small change of protocol in JB that affects the API used by ATSParser which makes the payload assumption fail.

I dont know what to do ! last plex upgrade dont solve the trouble . Their developpers team seem to say it is CM and AOKP rom fault ! ?!

link : http://forums.plexapp.com/index.php...nywhere-other-than-the-beginning/page__st__20