1. Nimm jetzt an unserem Uhans - 3. ADVENT - Gewinnspiel teil - Alle Informationen findest Du hier!

Problem mit dem media Player

Dieses Thema im Forum "Android App Entwicklung" wurde erstellt von anonymous123, 23.08.2011.

  1. anonymous123, 23.08.2011 #1
    anonymous123

    anonymous123 Threadstarter Neuer Benutzer

    Beiträge:
    9
    Erhaltene Danke:
    0
    Registriert seit:
    24.07.2011
    Ich habe am Wochende ein SoundModul für mein kleines Spiel programmiert. In dem erstelle ich ein soundpool für die Soundeffekte und einen MediaPlayer um Hintergrundmusik abzuspielen.


    Code:
    	SoundModul(Context context)
    	{
    		mediaPlayer = new MediaPlayer();
    		this.context=context;
            soundPool = new SoundPool( 5, AudioManager.STREAM_MUSIC, 0);
            AssetFileDescriptor descriptor;
    		try {
    			descriptor = context.getAssets().openFd("button-9.wav");
                turnSound = soundPool.load( descriptor, 1 );
                
                descriptor = context.getAssets().openFd("beep-7.wav");
                plopSound1 = soundPool.load( descriptor, 1 );
                
                descriptor = context.getAssets().openFd("beep-8.wav");
                plopSound2 = soundPool.load( descriptor, 1 );            
                
                descriptor = context.getAssets().openFd("a.mp3");
                mediaPlayer.setDataSource(descriptor.getFileDescriptor() );
                mediaPlayer.prepare();
                mediaPlayer.start();
                
    		} catch (IOException e) {
    			// TODO Auto-generated catch block
    			e.printStackTrace();
    		}	
    	}
    
    

    Im Normalfall klappt dies auch einwanfdrei. Wenn ich nun aber die Gameview immer wieder neu aufrufe oder zwischen hochformat / querformat wechsle (entspricht im Prinzip auch einem Neuaufruf) bekomme ich oft nach drei Versuchen einen Fehler (siehe Ende des Posts).


    Aufgrund des Auftreten des Fehlers habe/hatte ich vermutet, dass der MediaPlayer nicht richtig geschlossen wird und es deshalb nach x-Neuöffnungen zu dem Fehler kommt.

    Allerdings hat auch der Aufruf von:

    Code:
    		mediaPlayer.release();
    		soundPool.release();
    
    .. nicht geholfen.


    Hat wer eine Idee woran dies ansonsten liegen könnte???



    Log:
    Code:
    08-23 18:23:15.473: ERROR/MediaPlayer(25491): Unable to to create media player
    08-23 18:23:15.473: WARN/System.err(25491): java.io.IOException: setDataSourceFD failed.: status=0x80000000
    08-23 18:23:15.478: WARN/AudioSystem(25491): AudioFlinger server died!
    08-23 18:23:15.478: WARN/IMediaDeathNotifier(25491): media server died
    08-23 18:23:15.478: ERROR/MediaPlayer(25491): error (100, 0)
    08-23 18:23:15.478: WARN/System.err(25491):     at android.media.MediaPlayer.setDataSource(Native Method)
    08-23 18:23:15.478: WARN/System.err(25491):     at android.media.MediaPlayer.setDataSource(MediaPlayer.java:926)
    08-23 18:23:15.478: WARN/System.err(25491):     at de.game.SoundModul.<init>(SoundModul.java:44)
    08-23 18:23:15.478: WARN/System.err(25491):     at de.game.GameView$GameThread.init(GameView.java:203)
    08-23 18:23:15.478: WARN/System.err(25491):     at de.game.GameView$GameThread.doDraw(GameView.java:543)
    08-23 18:23:15.478: WARN/System.err(25491):     at de.game.GameView$GameThread.run(GameView.java:268)
    08-23 18:23:15.483: INFO/ServiceManager(2570): service 'media.yamahaplayer' died
    08-23 18:23:15.483: INFO/ServiceManager(2570): service 'media.audio_flinger' died
    08-23 18:23:15.483: INFO/ServiceManager(2570): service 'media.player' died
    08-23 18:23:15.483: INFO/ServiceManager(2570): service 'media.camera' died
    08-23 18:23:15.483: INFO/ServiceManager(2570): service 'media.audio_policy' died
    08-23 18:23:15.483: WARN/AudioSystem(2696): AudioFlinger server died!
    08-23 18:23:15.483: WARN/IMediaDeathNotifier(2696): media server died
    08-23 18:23:15.483: ERROR/MediaPlayer(2696): error (100, 0)
    08-23 18:23:15.483: WARN/MessageQueue(2696): Handler{40bbe128} sending message to a Handler on a dead thread
    08-23 18:23:15.483: WARN/MessageQueue(2696): java.lang.RuntimeException: Handler{40bbe128} sending message to a Handler on a dead thread
    08-23 18:23:15.483: WARN/MessageQueue(2696):     at android.os.MessageQueue.enqueueMessage(MessageQueue.java:196)
    08-23 18:23:15.483: WARN/MessageQueue(2696):     at android.os.Handler.sendMessageAtTime(Handler.java:457)
    08-23 18:23:15.483: WARN/MessageQueue(2696):     at android.os.Handler.sendMessageDelayed(Handler.java:430)
    08-23 18:23:15.483: WARN/MessageQueue(2696):     at android.os.Handler.sendMessage(Handler.java:367)
    08-23 18:23:15.483: WARN/MessageQueue(2696):     at android.media.MediaPlayer.postEventFromNative(MediaPlayer.java:1582)
    08-23 18:23:15.483: WARN/MessageQueue(2696):     at dalvik.system.NativeStart.run(Native Method)
    08-23 18:23:15.488: WARN/AudioSystem(2696): AudioPolicyService server died!
    08-23 18:23:15.488: ERROR/SoundPool(25491): Unable to load sample: (null)
    08-23 18:23:15.488: INFO/ServiceManager(25491): Waiting for service media.player...
    08-23 18:23:15.523: DEBUG/dalvikvm(25491): GC_EXTERNAL_ALLOC freed 14K, 56% free 2682K/6023K, external 5077K/5081K, paused 32ms
    08-23 18:23:15.583: ERROR/MediaPlayer(25491): Error (100,0)
    
    
    Komisch sieht kurz davor auch folgendes aus:

    Code:
    08-23 18:23:09.453: INFO/DEBUG(24235): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    08-23 18:23:09.453: INFO/DEBUG(24235): Build fingerprint: 'samsung/GT-I9100/GT-I9100:2.3.3/GINGERBREAD/XWKF3:user/release-keys'
    08-23 18:23:09.453: INFO/DEBUG(24235): pid: 25771, tid: 25890  >>> /system/bin/mediaserver <<<
    08-23 18:23:09.453: INFO/DEBUG(24235): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
    08-23 18:23:09.453: INFO/DEBUG(24235):  r0 00000027  r1 deadbaad  r2 a0000000  r3 00000000
    08-23 18:23:09.453: INFO/DEBUG(24235):  r4 00000001  r5 00000000  r6 000685e8  r7 0000a000
    08-23 18:23:09.453: INFO/DEBUG(24235):  r8 00000000  r9 40867c44  10 a39bb5ac  fp 40867b44
    08-23 18:23:09.453: INFO/DEBUG(24235):  ip afd46688  sp 40867a28  lr afd19471  pc afd15f40  cpsr 60000030
    08-23 18:23:09.453: INFO/DEBUG(24235):  d0  4040000000000000  d1  0000000000000003
    08-23 18:23:09.453: INFO/DEBUG(24235):  d2  0000000000000000  d3  0000000000000000
    08-23 18:23:09.453: INFO/DEBUG(24235):  d4  0000000000000000  d5  41a0000040400000
    08-23 18:23:09.453: INFO/DEBUG(24235):  d6  0000000000000000  d7  0000000000000000
    08-23 18:23:09.453: INFO/DEBUG(24235):  d8  0000000000000000  d9  0000000000000000
    08-23 18:23:09.453: INFO/DEBUG(24235):  d10 0000000000000000  d11 0000000000000000
    08-23 18:23:09.453: INFO/DEBUG(24235):  d12 0000000000000000  d13 0000000000000000
    08-23 18:23:09.453: INFO/DEBUG(24235):  d14 0000000000000000  d15 0000000000000000
    08-23 18:23:09.453: INFO/DEBUG(24235):  d16 0000000000000000  d17 0000000000000000
    08-23 18:23:09.453: INFO/DEBUG(24235):  d18 4000000000000000  d19 bfd7095ef9973807
    08-23 18:23:09.453: INFO/DEBUG(24235):  d20 3f1149942ce213d7  d21 bebba8a21867784d
    08-23 18:23:09.453: INFO/DEBUG(24235):  d22 3ff0000000000000  d23 3fe6c310da4e22ec
    08-23 18:23:09.453: INFO/DEBUG(24235):  d24 3e66376972bea4d0  d25 0000000000000000
    08-23 18:23:09.453: INFO/DEBUG(24235):  d26 0000000000000000  d27 0000000000000000
    08-23 18:23:09.453: INFO/DEBUG(24235):  d28 0000000000000000  d29 0000000000000000
    08-23 18:23:09.453: INFO/DEBUG(24235):  d30 0000000000000000  d31 0000000000000000
    08-23 18:23:09.453: INFO/DEBUG(24235):  scr 60000010
    08-23 18:23:09.568: INFO/DEBUG(24235):          #00  pc 00015f40  /system/lib/libc.so
    08-23 18:23:09.568: INFO/DEBUG(24235):          #01  pc 000138b0  /system/lib/libc.so
    08-23 18:23:09.568: INFO/DEBUG(24235):          #02  pc 00014776  /system/lib/libc.so
    08-23 18:23:09.568: INFO/DEBUG(24235):          #03  pc 00018422  /system/lib/libc.so
    08-23 18:23:09.568: INFO/DEBUG(24235):          #04  pc 00030710  /system/lib/libopencore_common.so
    08-23 18:23:09.568: INFO/DEBUG(24235):          #05  pc 0002f254  /system/lib/libopencore_common.so
    08-23 18:23:09.568: INFO/DEBUG(24235):          #06  pc 0002fb6c  /system/lib/libopencore_common.so
    08-23 18:23:09.573: INFO/DEBUG(24235):          #07  pc 0002fbc0  /system/lib/libopencore_common.so
    08-23 18:23:09.573: INFO/DEBUG(24235):          #08  pc 00036548  /system/lib/libopencore_common.so
    08-23 18:23:09.573: INFO/DEBUG(24235):          #09  pc 00085fa2  /system/lib/libopencore_player.so
    08-23 18:23:09.573: INFO/DEBUG(24235):          #10  pc 00086802  /system/lib/libopencore_player.so
    08-23 18:23:09.573: INFO/DEBUG(24235):          #11  pc 0008350a  /system/lib/libopencore_player.so
    08-23 18:23:09.573: INFO/DEBUG(24235):          #12  pc 00083a82  /system/lib/libopencore_player.so
    08-23 18:23:09.573: INFO/DEBUG(24235):          #13  pc 000857ce  /system/lib/libopencore_player.so
    08-23 18:23:09.578: INFO/DEBUG(24235):          #14  pc 0008fc90  /system/lib/libopencore_player.so
    08-23 18:23:09.578: INFO/DEBUG(24235):          #15  pc 0008fe80  /system/lib/libopencore_player.so
    08-23 18:23:09.578: INFO/DEBUG(24235):          #16  pc 0001d836  /system/lib/libutils.so
    08-23 18:23:09.578: INFO/DEBUG(24235):          #17  pc 00011b80  /system/lib/libc.so
    08-23 18:23:09.578: INFO/DEBUG(24235):          #18  pc 0001174c  /system/lib/libc.so
    08-23 18:23:09.578: INFO/DEBUG(24235): code around pc:
    08-23 18:23:09.578: INFO/DEBUG(24235): afd15f20 2c006824 e028d1fb b13368db c064f8df 
    08-23 18:23:09.578: INFO/DEBUG(24235): afd15f30 44fc2401 4000f8cc 49124798 25002027 
    08-23 18:23:09.583: INFO/DEBUG(24235): afd15f40 f7f57008 2106eb46 ecbaf7f6 460aa901 
    08-23 18:23:09.583: INFO/DEBUG(24235): afd15f50 f04f2006 95015380 95029303 e820f7f6 
    08-23 18:23:09.583: INFO/DEBUG(24235): afd15f60 462aa905 f7f62002 f7f5e82c 2106eb32 
    08-23 18:23:09.583: INFO/DEBUG(24235): code around lr:
    08-23 18:23:09.583: INFO/DEBUG(24235): afd19450 4a0e4b0d e92d447b 589c41f0 26004680 
    08-23 18:23:09.583: INFO/DEBUG(24235): afd19460 686768a5 f9b5e006 b113300c 47c04628 
    08-23 18:23:09.583: INFO/DEBUG(24235): afd19470 35544306 37fff117 6824d5f5 d1ef2c00 
    08-23 18:23:09.583: INFO/DEBUG(24235): afd19480 e8bd4630 bf0081f0 000280cc ffffff88 
    08-23 18:23:09.583: INFO/DEBUG(24235): afd19490 b086b570 f602fb01 9004460c a804a901 
    08-23 18:23:09.583: INFO/DEBUG(24235): stack:
    08-23 18:23:09.583: INFO/DEBUG(24235):     408679e8  afd42684  
    08-23 18:23:09.583: INFO/DEBUG(24235):     408679ec  0005f8b8  
    08-23 18:23:09.583: INFO/DEBUG(24235):     408679f0  00000e85  
    08-23 18:23:09.583: INFO/DEBUG(24235):     408679f4  afd18539  /system/lib/libc.so
    08-23 18:23:09.583: INFO/DEBUG(24235):     408679f8  afd4272c  
    08-23 18:23:09.583: INFO/DEBUG(24235):     408679fc  afd426d8  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a00  00000000  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a04  afd19471  /system/lib/libc.so
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a08  00000001  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a0c  40867a3c  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a10  000685e8  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a14  0000a000  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a18  00000000  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a1c  afd18793  /system/lib/libc.so
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a20  df002777  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a24  e3a070ad  
    08-23 18:23:09.583: INFO/DEBUG(24235): #00 40867a28  afd46628  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a2c  00000001  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a30  afd467a4  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a34  ffffffff  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a38  000685e8  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a3c  fffffbdf  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a40  00000000  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a44  afd46470  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a48  ffffffff  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a4c  afd138b5  /system/lib/libc.so
    08-23 18:23:09.583: INFO/DEBUG(24235): #01 40867a50  afd467a4  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a54  ffffffff  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a58  00000040  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a5c  40867dd4  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a60  00000000  
    08-23 18:23:09.583: INFO/DEBUG(24235):     40867a64  afd14779  /system/lib/libc.so
    08-23 18:23:10.343: INFO/DEBUG(24235): dumpstate /data/log/dumpstate_app_native.txt
    08-23 18:23:10.343: INFO/BootReceiver(2696): Copying /data/tombstones/tombstone_02 to DropBox (SYSTEM_TOMBSTONE)
    08-23 18:23:10.348: INFO/dumpstate(25893): begin
    08-23 18:23:10.353: INFO/dalvikvm(2696): threadid=4: reacting to signal 3
    08-23 18:23:10.368: INFO/dalvikvm(2696): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.368: INFO/dalvikvm(2820): threadid=4: reacting to signal 3
    08-23 18:23:10.368: INFO/dalvikvm(2820): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.368: INFO/dalvikvm(2842): threadid=4: reacting to signal 3
    08-23 18:23:10.368: INFO/dalvikvm(2842): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.368: INFO/dalvikvm(2843): threadid=4: reacting to signal 3
    08-23 18:23:10.373: INFO/dalvikvm(2843): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.373: INFO/dalvikvm(2848): threadid=4: reacting to signal 3
    08-23 18:23:10.373: INFO/dalvikvm(2848): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.373: INFO/dalvikvm(2851): threadid=4: reacting to signal 3
    08-23 18:23:10.378: INFO/dalvikvm(2851): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.378: INFO/dalvikvm(2854): threadid=4: reacting to signal 3
    08-23 18:23:10.378: INFO/dalvikvm(2854): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.378: INFO/dalvikvm(2874): threadid=4: reacting to signal 3
    08-23 18:23:10.378: INFO/dalvikvm(2874): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.378: INFO/dalvikvm(2884): threadid=4: reacting to signal 3
    08-23 18:23:10.378: INFO/dalvikvm(2884): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.378: INFO/dalvikvm(2912): threadid=4: reacting to signal 3
    08-23 18:23:10.383: INFO/dalvikvm(2912): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.383: INFO/dalvikvm(2927): threadid=4: reacting to signal 3
    08-23 18:23:10.388: INFO/dalvikvm(2927): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.388: INFO/dalvikvm(3151): threadid=4: reacting to signal 3
    08-23 18:23:10.388: INFO/dalvikvm(3151): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.388: INFO/dalvikvm(4452): threadid=4: reacting to signal 3
    08-23 18:23:10.393: INFO/dalvikvm(4452): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.393: INFO/dalvikvm(10679): threadid=4: reacting to signal 3
    08-23 18:23:10.413: INFO/dalvikvm(10679): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.413: INFO/dalvikvm(13896): threadid=4: reacting to signal 3
    08-23 18:23:10.413: INFO/dalvikvm(13896): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.413: INFO/dalvikvm(16095): threadid=4: reacting to signal 3
    08-23 18:23:10.418: INFO/dalvikvm(16095): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.418: INFO/dalvikvm(16102): threadid=4: reacting to signal 3
    08-23 18:23:10.418: INFO/dalvikvm(16102): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.418: INFO/dalvikvm(17047): threadid=4: reacting to signal 3
    08-23 18:23:10.423: INFO/dalvikvm(17047): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.423: INFO/dalvikvm(17641): threadid=4: reacting to signal 3
    08-23 18:23:10.423: INFO/dalvikvm(17641): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.423: INFO/dalvikvm(17657): threadid=4: reacting to signal 3
    08-23 18:23:10.423: INFO/dalvikvm(17657): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.423: INFO/dalvikvm(18055): threadid=4: reacting to signal 3
    08-23 18:23:10.428: INFO/dalvikvm(18055): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.428: INFO/dalvikvm(18113): threadid=4: reacting to signal 3
    08-23 18:23:10.428: INFO/dalvikvm(18113): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.428: INFO/dalvikvm(19322): threadid=4: reacting to signal 3
    08-23 18:23:10.428: INFO/dalvikvm(19322): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.428: INFO/dalvikvm(19702): threadid=4: reacting to signal 3
    08-23 18:23:10.433: INFO/dalvikvm(19702): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.433: INFO/dalvikvm(20729): threadid=4: reacting to signal 3
    08-23 18:23:10.433: INFO/dalvikvm(20729): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.433: INFO/dalvikvm(20736): threadid=4: reacting to signal 3
    08-23 18:23:10.433: INFO/dalvikvm(20736): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.433: INFO/dalvikvm(20761): threadid=4: reacting to signal 3
    08-23 18:23:10.433: INFO/dalvikvm(20761): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.433: INFO/dalvikvm(20855): threadid=4: reacting to signal 3
    08-23 18:23:10.433: INFO/dalvikvm(20855): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.438: INFO/dalvikvm(20875): threadid=4: reacting to signal 3
    08-23 18:23:10.438: INFO/dalvikvm(20875): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.438: INFO/dalvikvm(21347): threadid=4: reacting to signal 3
    08-23 18:23:10.438: INFO/dalvikvm(21347): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.438: INFO/dalvikvm(23466): threadid=4: reacting to signal 3
    08-23 18:23:10.438: INFO/dalvikvm(23466): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.438: INFO/dalvikvm(23560): threadid=4: reacting to signal 3
    08-23 18:23:10.438: INFO/dalvikvm(23560): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.438: INFO/dalvikvm(23809): threadid=4: reacting to signal 3
    08-23 18:23:10.443: INFO/dalvikvm(23809): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.443: INFO/dalvikvm(23827): threadid=4: reacting to signal 3
    08-23 18:23:10.443: INFO/dalvikvm(23827): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.443: INFO/dalvikvm(23846): threadid=4: reacting to signal 3
    08-23 18:23:10.443: INFO/dalvikvm(23846): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.443: INFO/dalvikvm(23854): threadid=4: reacting to signal 3
    08-23 18:23:10.443: INFO/dalvikvm(23854): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.448: INFO/dalvikvm(23870): threadid=4: reacting to signal 3
    08-23 18:23:10.448: INFO/dalvikvm(23870): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.448: INFO/dalvikvm(23908): threadid=4: reacting to signal 3
    08-23 18:23:10.448: INFO/dalvikvm(23908): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.448: INFO/dalvikvm(24021): threadid=4: reacting to signal 3
    08-23 18:23:10.448: INFO/dalvikvm(24021): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.448: INFO/dalvikvm(24081): threadid=4: reacting to signal 3
    08-23 18:23:10.453: INFO/dalvikvm(24081): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.453: INFO/dalvikvm(24176): threadid=4: reacting to signal 3
    08-23 18:23:10.453: INFO/dalvikvm(24176): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.453: INFO/dalvikvm(24358): threadid=4: reacting to signal 3
    08-23 18:23:10.453: INFO/dalvikvm(24358): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.453: INFO/dalvikvm(24366): threadid=4: reacting to signal 3
    08-23 18:23:10.453: INFO/dalvikvm(24366): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.453: INFO/dalvikvm(24531): threadid=4: reacting to signal 3
    08-23 18:23:10.458: INFO/dalvikvm(24531): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.458: INFO/dalvikvm(24741): threadid=4: reacting to signal 3
    08-23 18:23:10.458: INFO/dalvikvm(24741): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.458: INFO/dalvikvm(25272): threadid=4: reacting to signal 3
    08-23 18:23:10.458: INFO/dalvikvm(25272): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.458: INFO/dalvikvm(25400): threadid=4: reacting to signal 3
    08-23 18:23:10.458: INFO/dalvikvm(25400): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.458: INFO/dalvikvm(25416): threadid=4: reacting to signal 3
    08-23 18:23:10.463: INFO/dalvikvm(25416): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.463: INFO/dalvikvm(25445): threadid=4: reacting to signal 3
    08-23 18:23:10.463: INFO/dalvikvm(25445): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.463: INFO/dalvikvm(25459): threadid=4: reacting to signal 3
    08-23 18:23:10.463: INFO/dalvikvm(25459): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.463: INFO/dalvikvm(25472): threadid=4: reacting to signal 3
    08-23 18:23:10.463: INFO/dalvikvm(25472): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.463: INFO/dalvikvm(25483): threadid=4: reacting to signal 3
    08-23 18:23:10.463: INFO/dalvikvm(25483): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.463: INFO/dalvikvm(25491): threadid=4: reacting to signal 3
    08-23 18:23:10.468: INFO/dalvikvm(25491): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.468: INFO/dalvikvm(25527): threadid=4: reacting to signal 3
    08-23 18:23:10.468: INFO/dalvikvm(25527): Wrote stack traces to '/data/anr/traces.txt'
    08-23 18:23:10.468: INFO/dalvikvm(30126): threadid=4: reacting to signal 3
    08-23 18:23:10.473: INFO/dalvikvm(30126): Wrote stack traces to '/data/anr/traces.txt'
    
    
     
  2. anonymous123, 28.08.2011 #2
    anonymous123

    anonymous123 Threadstarter Neuer Benutzer

    Beiträge:
    9
    Erhaltene Danke:
    0
    Registriert seit:
    24.07.2011
    Habe den Fehler leider noch nicht gefunden ...
     
  3. anonymous123, 20.09.2011 #3
    anonymous123

    anonymous123 Threadstarter Neuer Benutzer

    Beiträge:
    9
    Erhaltene Danke:
    0
    Registriert seit:
    24.07.2011
    push...
     
  4. Tom299, 21.09.2011 #4
    Tom299

    Tom299 Android-Experte

    Beiträge:
    602
    Erhaltene Danke:
    120
    Registriert seit:
    31.08.2011
    wäre es nicht besser, die klasse statisch zu machen, dann brauchst du auch nicht jedes mal die songs neu zu laden usw.?
     
  5. anonymous123, 21.09.2011 #5
    anonymous123

    anonymous123 Threadstarter Neuer Benutzer

    Beiträge:
    9
    Erhaltene Danke:
    0
    Registriert seit:
    24.07.2011
    Ich glaube zwar nicht, dass dies mein Problem beheben würde, wollte es aber umsetzen da static dort theoretisch echt Sinn macht.

    Allerdings sagt Eclipse mir immer. Illegal modifier static. Ist eine statische Methode nur als inner class erlaubt? Dies wollte ich aus Übersichtsgründen eig. vermeiden.
     
  6. Kaisky007, 21.09.2011 #6
    Kaisky007

    Kaisky007 Neuer Benutzer

    Beiträge:
    14
    Erhaltene Danke:
    0
    Registriert seit:
    20.09.2011
    Vielleicht schließt sich dein mediaplayer echt nicht, so ein problem hatte ich auchmal und gelöst indem ich den mediaplayer bei onBackPressed() / onDestroy() der activity mit stop() getötet hab.
     
  7. anonymous123, 23.09.2011 #7
    anonymous123

    anonymous123 Threadstarter Neuer Benutzer

    Beiträge:
    9
    Erhaltene Danke:
    0
    Registriert seit:
    24.07.2011
    Meine Methode zum Beenden des MediaPlayers wird bei mir in onSurfaceDestroyed() aufgerufen.
    Hab einen zusätzlichen Aufruf in onDestroy() eingefügt. Hat aber nicht geholfen. onBackPressed wird eh nicht helfen, da der Fehler ja auch schon nur bei Änderung der Ausrichtung auftritt.

    PS: Die Fehlermeldung sieht manchmal auch ein wenig anders aus.

    z.B. so:

    Code:
    09-23 18:18:02.325: ERROR/SoundPool(31489): Unable to load sample: (null)
    09-23 18:18:02.325: ERROR/SoundPool(31489): Unable to load sample: (null)
    09-23 18:18:02.330: ERROR/SoundPool(31489): Unable to load sample: (null)
    09-23 18:18:02.330: ERROR/MediaPlayer(31489): Unable to to create media player
    09-23 18:18:02.330: WARN/System.err(31489): java.io.IOException: setDataSourceFD failed.: status=0x80000000
    09-23 18:18:02.330: WARN/System.err(31489):     at android.media.MediaPlayer.setDataSource(Native Method)
    09-23 18:18:02.330: WARN/System.err(31489):     at android.media.MediaPlayer.setDataSource(MediaPlayer.java:926)
    09-23 18:18:02.330: WARN/System.err(31489):     at de.game.SoundModul.<init>(SoundModul.java:50)
    09-23 18:18:02.330: WARN/System.err(31489):     at de.game.GameView$GameThread.init(GameView.java:205)
    09-23 18:18:02.330: WARN/System.err(31489):     at de.game.GameView$GameThread.doDraw(GameView.java:545)
    09-23 18:18:02.330: WARN/System.err(31489):     at de.game.GameView$GameThread.run(GameView.java:270)
    09-23 18:18:02.335: INFO/ServiceManager(2570): service 'media.yamahaplayer' died
    09-23 18:18:02.335: INFO/ServiceManager(2570): service 'media.audio_flinger' died
    09-23 18:18:02.335: INFO/ServiceManager(2570): service 'media.player' died
    09-23 18:18:02.335: INFO/ServiceManager(2570): service 'media.audio_policy' died
    09-23 18:18:02.335: INFO/ServiceManager(2570): service 'media.camera' died
    09-23 18:18:02.335: WARN/AudioSystem(31489): AudioFlinger server died!
    09-23 18:18:02.335: WARN/IMediaDeathNotifier(31489): media server died
    09-23 18:18:02.335: ERROR/MediaPlayer(31489): error (100, 0)
    09-23 18:18:02.335: WARN/AudioSystem(2816): AudioFlinger server died!
    09-23 18:18:02.335: WARN/AudioSystem(2816): AudioPolicyService server died!
    09-23 18:18:02.335: WARN/AudioSystem(2696): AudioFlinger server died!
    09-23 18:18:02.335: WARN/IMediaDeathNotifier(2696): media server died
    09-23 18:18:02.335: ERROR/MediaPlayer(2696): error (100, 0)
    09-23 18:18:02.340: WARN/MessageQueue(2696): Handler{408af7a0} sending message to a Handler on a dead thread
    09-23 18:18:02.340: WARN/MessageQueue(2696): java.lang.RuntimeException: Handler{408af7a0} sending message to a Handler on a dead thread
    09-23 18:18:02.340: WARN/MessageQueue(2696):     at android.os.MessageQueue.enqueueMessage(MessageQueue.java:196)
    09-23 18:18:02.340: WARN/MessageQueue(2696):     at android.os.Handler.sendMessageAtTime(Handler.java:457)
    09-23 18:18:02.340: WARN/MessageQueue(2696):     at android.os.Handler.sendMessageDelayed(Handler.java:430)
    09-23 18:18:02.340: WARN/MessageQueue(2696):     at android.os.Handler.sendMessage(Handler.java:367)
    09-23 18:18:02.340: WARN/MessageQueue(2696):     at android.media.MediaPlayer.postEventFromNative(MediaPlayer.java:1582)
    09-23 18:18:02.340: WARN/MessageQueue(2696):     at dalvik.system.NativeStart.run(Native Method)
    09-23 18:18:02.350: WARN/AudioSystem(2696): AudioPolicyService server died!
    09-23 18:18:02.510: ERROR/MediaPlayer(31489): Error (100,0)
    
    
     

Diese Seite empfehlen