[Galaxy S II General] Karpfenhai:
Apollo Crash

Hey there, today i tried Apollo the first time (No Music addict)

And it crashed.. clean app cache solved it exactly one tIme, second call --> crash..

Anyone got an idea why?

I/dalvikvm-heap(12295): Grow heap (frag case) to 23.961MB for 506480-byte allocation
I/ActivityManager( 2191): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.andrew.apollo/.activities.MusicLibrary} from pid 12295
I/ActivityManager( 2191): Start proc com.andrew.apollo:main for activity com.andrew.apollo/.activities.MusicLibrary: pid=713 uid=10000 gids={50000, 3003, 1015, 1028}
E/Trace ( 713): error opening trace file: No such file or directory (2)
D/dalvikvm( 2191): GC_CONCURRENT freed 2313K, 28% free 23333K/31968K, paused 6ms+12ms, total 216ms
I/AudioService( 2191): Remote Control registerMediaButtonIntent() for PendingIntent{4303be90: PendingIntentRecord{42ce2af0 com.andrew.apollo broadcastIntent}}
D/TinyALSA-Audio Output(15929): audio_out_get_latency(0x41181d58)
D/AndroidRuntime( 713): Shutting down VM
W/dalvikvm( 713): threadid=1: thread exiting with uncaught exception (group=0x42059930)
E/AndroidRuntime( 713): FATAL EXCEPTION: main
E/AndroidRuntime( 713): java.lang.RuntimeException: Unable to create service com.andrew.apollo.service.ApolloService: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
E/AndroidRuntime( 713):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2666)
E/AndroidRuntime( 713):	at android.app.ActivityThread.access$1600(ActivityThread.java:153)
E/AndroidRuntime( 713):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1329)
E/AndroidRuntime( 713):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 713):	at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 713):	at android.app.ActivityThread.main(ActivityThread.java:5226)
E/AndroidRuntime( 713):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 713):	at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 713):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime( 713):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
E/AndroidRuntime( 713):	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 713): Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
E/AndroidRuntime( 713):	at android.database.AbstractCursor.checkPosition(AbstractCursor.java:424)
E/AndroidRuntime( 713):	at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
E/AndroidRuntime( 713):	at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:74)
E/AndroidRuntime( 713):	at android.database.CursorWrapper.getLong(CursorWrapper.java:106)
E/AndroidRuntime( 713):	at com.andrew.apollo.service.ApolloService.openCurrentAndNext(ApolloService.java:1136)
E/AndroidRuntime( 713):	at com.andrew.apollo.service.ApolloService.reloadQueue(ApolloService.java:680)
E/AndroidRuntime( 713):	at com.andrew.apollo.service.ApolloService.onCreate(ApolloService.java:463)
E/AndroidRuntime( 713):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2656)
E/AndroidRuntime( 713):	... 10 more
W/ActivityManager( 2191): Force finishing activity com.andrew.apollo/.activities.MusicLibrary
W/ActivityManager( 2191): Activity pause timeout for ActivityRecord{42a12718 u0 com.andrew.apollo/.activities.MusicLibrary}
W/dalvikvm( *802): threadid=1: thread exiting with uncaught exception (group=0x42059930)
E/AndroidRuntime( *802): FATAL EXCEPTION: main
E/AndroidRuntime( *802): java.lang.RuntimeException: Unable to create service com.andrew.apollo.service.ApolloService: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
E/AndroidRuntime( *802):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2666)
E/AndroidRuntime( *802):	at android.app.ActivityThread.access$1600(ActivityThread.java:153)
E/AndroidRuntime( *802):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1329)
E/AndroidRuntime( *802):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( *802):	at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( *802):	at android.app.ActivityThread.main(ActivityThread.java:5226)
E/AndroidRuntime( *802):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( *802):	at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( *802):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime( *802):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
E/AndroidRuntime( *802):	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( *802): Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
E/AndroidRuntime( *802):	at android.database.AbstractCursor.checkPosition(AbstractCursor.java:424)
E/AndroidRuntime( *802):	at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
E/AndroidRuntime( *802):	at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:74)
E/AndroidRuntime( *802):	at android.database.CursorWrapper.getLong(CursorWrapper.java:106)
E/AndroidRuntime( *802):	at com.andrew.apollo.service.ApolloService.openCurrentAndNext(ApolloService.java:1136)
E/AndroidRuntime( *802):	at com.andrew.apollo.service.ApolloService.reloadQueue(ApolloService.java:680)
E/AndroidRuntime( *802):	at com.andrew.apollo.service.ApolloService.onCreate(ApolloService.java:463)
E/AndroidRuntime( *802):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2656)
E/AndroidRuntime( *802):	... 10 more

I/ActivityManager( 2191): Process com.andrew.apollo:main (pid 802) has died.
W/ActivityManager( 2191): Service crashed 2 times, stopping: ServiceRecord{43538378 u0 com.andrew.apollo/.service.ApolloService}

EDIT:

i think i can reproduce it (maybe)

got 2 ideas here, first it crashes after playing sound out of a system folder.

means, i played some mp3 from sdcard, no issues, closed appolo works open again , still works,

Then i playes a ringtone out of the system folder, works as well, closed apollo, tried to reopen, --> crash

Idea 2, It crashes after some minutes of inactivity (alsa drivers / mixer unloaded??) or if the device was in sleepmode

Will verify Idea 2 now.

Thx in advance!