klarrimore / monolithandroid

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

Sound and view problems. #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When I start an application, music starts playing right away but it takes
about 5 seconds to show something. When I hit BACK button, music doesn't
stop (stops after end of a loop). This happens with keyboard opened and
when it is closed.

Some LogCat output that might help:
1) When I start an app for the first time. I see only text intro. 
I/ActivityManager(   56): Starting activity: Intent {
action=android.intent.action.MAIN
categories={android.intent.category.LAUNCHER} flags=0x10200000
comp={org.teacake.monolith.apk/org.teacake.monolith.apk.Monolith} }
E/MediaPlayer(  623): prepareAsync called in state 8
E/MediaPlayer(  623): prepareAsync called in state 8
E/MediaPlayer(  623): prepareAsync called in state 8
E/MediaPlayer(  623): prepareAsync called in state 8
W/AudioFlinger(   32): write blocked for 101 msecs
I/ActivityManager(   56): Displayed activity
org.teacake.monolith.apk/.Monolith: 1536 ms
D/dalvikvm(  623): GC freed 413 objects / 298504 bytes in 91ms
D/dalvikvm(   94): GC freed 310 objects / 12584 bytes in 226ms
E/GLLogger(  623): validate_display_surface:779 error 300d (EGL_BAD_SURFACE)

Sometimes LogCat shows this (I don't think that I'm doing something
different than in case of previous LogCat output):
I/ActivityManager(   56): Displayed activity
org.teacake.monolith.apk/.Monolith: 1815 ms
D/EGL.oem (  678): SMI  region at virtual=0x4563c000, physical=0x0,
size=7340032 offset=0
D/EGL.oem (  678): EBI1 region at virtual=0x45d3c000, physical=0x16500000,
size=8388608 offset=1228800
D/EGL.oem (  678): REGS region at virtual=0x4553c000, physical=0xa0000000,
size=1048576, offset=0
E/GLLogger(  678): call to OpenGL ES API with no current context
E/GLLogger(  678): call to OpenGL ES API with no current context
E/GLLogger(  678): call to OpenGL ES API with no current context
E/GLLogger(  678): call to OpenGL ES API with no current context
E/GLLogger(  678): call to OpenGL ES API with no current context

Sometimes an app is closed by a system (out of memory?) and music is still
playing. Sometimes music stops. 

When I click "new monolith game", it sometimes shows only scores and music
plays. Sometimes it shows something for less than a second and app is
finished (music still plays). That's what LogCat shows in this case:
I/ActivityManager(   56): Starting activity: Intent {
action=android.intent.action.MAIN
categories={android.intent.category.LAUNCHER} flags=0x10200000
comp={org.teacake.monolith.apk/org.teacake.monolith.apk.Monolith} }
E/MediaPlayer(  678): prepareAsync called in state 8
E/MediaPlayer(  678): prepareAsync called in state 8
E/MediaPlayer(  678): prepareAsync called in state 8
E/MediaPlayer(  678): prepareAsync called in state 8
I/ActivityManager(   56): Displayed activity
org.teacake.monolith.apk/.Monolith: 1360 ms
W/AudioTrack(   32): obtainBuffer timed out (is the CPU pegged?)
user=0002bc00, server=0002bb00
W/AudioFlinger(   32): write blocked for 104 msecs
D/dalvikvm(  678): GC freed 403 objects / 298008 bytes in 88ms
D/dalvikvm(   94): GC freed 2103 objects / 130864 bytes in 235ms
W/ActivityManager(   56): Duplicate finish request for
HistoryRecord{435cca40
{org.teacake.monolith.apk/org.teacake.monolith.apk.Monolith}}
W/ActivityManager(   56): Duplicate finish request for
HistoryRecord{435cca40
{org.teacake.monolith.apk/org.teacake.monolith.apk.Monolith}}
W/ActivityManager(   56): Duplicate finish request for
HistoryRecord{435cca40
{org.teacake.monolith.apk/org.teacake.monolith.apk.Monolith}}

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.0 beta

Original issue reported on code.google.com by szeldon.com@gmail.com on 23 Dec 2008 at 12:22

GoogleCodeExporter commented 8 years ago
I should have mentioned that this app doesn't work normally at all. I've tried 
to run
it about 20-30 times, but it always done something that crashed it or I simply 
wasn't
able to see anything useful.

Original comment by szeldon.com@gmail.com on 23 Dec 2008 at 12:29

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
A new apk (monolithandroid1.0.1beta.apk) is on the downloads list. The problems 
were
due to the use of prepareAsync call in the MediaPlayer class, the use of big
textures, and the drawing of a very large number of 3d objects. This version may
correct some of your problems.

Original comment by Tasos.Kl...@gmail.com on 2 Jan 2009 at 11:55

GoogleCodeExporter commented 8 years ago
There was a missing flag during surface initialization, more specifically 
setType(SurfaceHolder.SURFACE_TYPE_GPU)
so the new apk 1.0.2 found on the downloads list should address this problem.

Original comment by Tasos.Kl...@gmail.com on 6 Jan 2009 at 11:52

GoogleCodeExporter commented 8 years ago

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