tkleisas / monolithandroid

Automatically exported from code.google.com/p/monolithandroid
0 stars 0 forks source link

Music doesn't stop when app goes to background. #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
App works good but every time app goes to background, music keeps playing
and looping, so doesn't stop at all. Annoying.

My device is:
Android Dev Phone 1, firmware version 1.0. 
Kernel version: 2.6.25-01843-gfea26b0 android build@apa27 #6
Build number: dream_devphone-userdebug 1.0 UNLOCKED 116222 test-keys

Application version: 1.0.2 beta

Original issue reported on code.google.com by szeldon.com@gmail.com on 7 Jan 2009 at 10:51

GoogleCodeExporter commented 9 years ago
Moreover, if I come back to this app, it sometimes makes a sound like "pff" 
(yeah,
very helpful onomatopoeia) and dies. Sometimes it doesn't stop, and shows only 
scores
(rest is black). Sometimes it starts playing music for the second time (it 
sounds
like two musics are played simultaneously but on is a little before the other 
one).
BACK button doesn't work (I don't know if this is intentional... I just don't 
like
not working BACK button). 

Original comment by szeldon.com@gmail.com on 7 Jan 2009 at 10:59

GoogleCodeExporter commented 9 years ago
Logcat output when I come back to app and it shows only scores (rest is black):
org.teacake.monolith.apk/org.teacake.monolith.apk.Monolith} }
D/PhoneWindow(   96): couldn't save which view has focus because the focused 
view
com.android.launcher.BubbleTextView@43490810 has no id.
D/SurfaceFlinger(   56): pid 1176 requesting gpu surface (current owner = 1176)
D/SurfaceFlinger(   56): gpu surface granted to pid 1176
D/SurfaceFlinger(   56): pid 1176 requesting gpu surface (current owner = 1176)
D/SurfaceFlinger(   56): gpu surface granted to pid 1176
E/GLLogger( 1176): validate_display_context:766 error 3006 (EGL_BAD_CONTEXT)
W/AudioTrack(   31): obtainBuffer timed out (is the CPU pegged?) user=00000301,
server=00000201
W/SurfaceFlinger(   56): executeScheduledBroadcasts() skipped, contention on the
client. We'll try again later...
W/SurfaceComposerClient( 1176): lock_layer timed out (is the CPU pegged?) 
layer=1,
lcblk=0x410180a0, state=00000003 (was 00000013)
W/SurfaceComposerClient( 1176): lock_layer() timed out but didn't appear to 
need to
be locked and we recovered (layer=1, lcblk=0x410180a0, state=00000003)
D/dalvikvm(   96): GC freed 395 objects / 19744 bytes in 481ms
D/dalvikvm( 1176): GC freed 17641 objects / 510384 bytes in 243ms
D/dalvikvm( 1176): GC freed 18459 objects / 524792 bytes in 140ms
W/SurfaceComposerClient( 1176): lock_layer timed out (is the CPU pegged?) 
layer=0,
lcblk=0x41018020, state=00000002 (was 00000043)
W/SurfaceComposerClient( 1176): lock_layer() timed out but didn't appear to 
need to
be locked and we recovered (layer=0, lcblk=0x41018020, state=00000002)
W/SurfaceFlinger(   56): executeScheduledBroadcasts() skipped, contention on the
client. We'll try again later...
W/SurfaceComposerClient( 1176): lock_layer timed out (is the CPU pegged?) 
layer=0,
lcblk=0x41018020, state=00000003 (was 00000042)
W/SurfaceComposerClient( 1176): lock_layer() timed out but didn't appear to 
need to
be locked and we recovered (layer=0, lcblk=0x41018020, state=00000003)
D/dalvikvm( 1176): GC freed 18836 objects / 524312 bytes in 224ms
W/AudioTrack(   31): obtainBuffer timed out (is the CPU pegged?) user=00000503,
server=00000403
D/dalvikvm( 1176): GC freed 18953 objects / 524288 bytes in 147ms
D/dalvikvm( 1176): GC freed 19167 objects / 524256 bytes in 124ms

After above case I came back to Home screen and then tried to come back to 
Monolith.
It showed me a second of welcome animation (yellow MonolithAndroid text was 
shown)
and started playing music for a second time (music is played two times... one 
over
another). Logcat for this case:
D/SurfaceFlinger(   56): About to give-up screen, flinger = 0x14f7e0
D/GLLogger( 1176): CONTEXT_LOST: Releasing GPU upon request from SurfaceFlinger.
W/ActivityManager(   56): Duplicate finish request for HistoryRecord{435856c0
{org.teacake.monolith.apk/org.teacake.monolith.apk.Monolith}}
D/dalvikvm( 1176): GC freed 2806 objects / 80872 bytes in 128ms
D/KeyguardViewMediator(   56): wakeWhenReadyLocked(3)
D/KeyguardViewMediator(   56): handleWakeWhenReady(3)
D/KeyguardViewMediator(   56): pokeWakelock(5000)
D/SurfaceFlinger(   56): Screen about to return, flinger = 0x14f7e0
D/KeyguardViewMediator(   56): pokeWakelock(5000)
I/ActivityManager(   56): Starting activity: Intent {
action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER}
flags=0x10100000 
comp={org.teacake.monolith.apk/org.teacake.monolith.apk.Monolith} }
D/SurfaceFlinger(   56): pid 1176 requesting gpu surface (current owner = -1)
D/SurfaceFlinger(   56): gpu surface granted to pid 1176
D/SurfaceFlinger(   56): pid 1176 requesting gpu surface (current owner = 1176)
D/SurfaceFlinger(   56): gpu surface granted to pid 1176
I/ActivityManager(   56): Displayed activity 
org.teacake.monolith.apk/.Monolith: 611 ms
I/ARMAssembler( 1176): generated scanline__00000097:03010144_00009501_00000000 
[126
ipp] (207 ins) at [0x1c8818:0x1c8b54] in 1892090 ns
I/ARMAssembler( 1176): generated scanline__00000097:03010144_00000000_00000000 
[ 20
ipp] (73 ins) at [0x1c92f8:0x1c941c] in 366211 ns
W/ActivityManager(   56): Duplicate finish request for HistoryRecord{43671ee0
{org.teacake.monolith.apk/org.teacake.monolith.apk.Monolith}}
D/dalvikvm( 1176): GC freed 949 objects / 40744 bytes in 84ms

Original comment by szeldon.com@gmail.com on 7 Jan 2009 at 11:07

GoogleCodeExporter commented 9 years ago
Same comments refer to 1.0.3 beta version.

Original comment by szeldon.com@gmail.com on 7 Jan 2009 at 2:35

GoogleCodeExporter commented 9 years ago

Original comment by Tasos.Kl...@gmail.com on 7 Jan 2009 at 5:36

GoogleCodeExporter commented 9 years ago
fixed on the 1.0.4 beta release

Original comment by Tasos.Kl...@gmail.com on 28 Jan 2009 at 2:43