nekruz2 / kwaak3

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

Crashes on G1 w/o of memory (I think) w/Cyanogenmod #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
First of all-- it worked on my g1 1 w/cyanogenmod (overclocked to 528MHz
w/SetCPU), using the demo pak0 (that is, all legit) files.

I get the id logo animation and menu (keyboard input works, sound works but
is stuttery, and the mouse ball moves the cursor).  Seemed to take anything
for CD-Key.  Most menu options (setup, etc.) work, but I can't start a game
though because after selecting the level and "I can win" I get

I/ActivityManager(  143): Low Memory: No more background processes.

Then a bunch of these:

D/dalvikvm( 1942): GC freed 63 objects / 501224 bytes in 487ms

Then..

I/WindowManager(  143): WIN DEATH: Window{43cbd9a8
org.kwaak3/org.kwaak3.Game paused=false}
I/ActivityManager(  143): Process org.kwaak3 (pid 1942) has died.
I/WindowManager(  143): WIN DEATH: Window{43cbe618 SurfaceView paused=false}
W/UsageStats(  143): Unexpected resume of com.android.launcher while
already resumed in org.kwaak3
I/ActivityManager(  143): Low Memory: No more background processes.

Back to home.  I doubt this will ever run flawlessly on the g1, but it
would be cool to see what kind of fps it gets on a rooted Dream w/overclock.

Pretty amazing to see this even starting up :)  Congrats.

W

Original issue reported on code.google.com by vva...@gmail.com on 25 Feb 2010 at 9:32

GoogleCodeExporter commented 8 years ago
I tried killing widgets and other apps thinking it might save some memory, but 
no go.
 Looks like maybe it got further though.  Here's another death log:

D/Quake_DEBUG( 2509): ----- finished R_Init -----
D/Quake_DEBUG( 2509): Loading vm file vm/ui.qvm...
D/Quake_DEBUG( 2509): Architecture doesn't have a bytecode compiler, using 
interpreter
I/ActivityManager(  143): Process com.android.inputmethod.latin (pid 2391) has 
died.
W/ActivityManager(  143): Scheduling restart of crashed service
com.android.inputmethod.latin/.LatinIME in 5000ms
I/ActivityManager(  143): Low Memory: No more background processes.
D/Quake_DEBUG( 2509): ui loaded in 2348480 bytes on the hunk
D/Quake_DEBUG( 2509): 9 arenas parsed
D/Quake_DEBUG( 2509): 6 bots parsed
D/Quake_DEBUG( 2509): Loading vm file vm/cgame.qvm...
D/dalvikvm( 2509): GC freed 70 objects / 501608 bytes in 305ms
I/ActivityManager(  143): Process org.kwaak3 (pid 2509) has died.
I/WindowManager(  143): WIN DEATH: Window{43df9ef8 SurfaceView paused=false}
I/WindowManager(  143): WIN DEATH: Window{43e53d28 org.kwaak3/org.kwaak3.Game
paused=false}
I/ActivityManager(  143): Start proc android.process.acore for activity
com.android.launcher/.Launcher: pid=2531 uid=10007 gids={3003, 3002, 3001, 
1006, 1015}
I/ActivityManager(  143): Low Memory: No more background processes.

Original comment by vva...@gmail.com on 25 Feb 2010 at 9:37

GoogleCodeExporter commented 8 years ago
A guy I worked with ran it on his G1. I have no idea what firmware he is using. 
He
has issues with sound though (the game is more sensitive to crash then) but 
without
the game gets about 10fps in a timedemo and with some tweaking he can sometimes 
reach
about 20fps in game. I'll forward him to here.

Original comment by thunderb...@gmail.com on 25 Feb 2010 at 10:09

GoogleCodeExporter commented 8 years ago
I have a HTC Dream G1 running Cyanogen 4.2.14.1. The installer quits because it 
cant 
seem to access the sdcard. I then find an application called kwaak3. When it 
starts up, 
I get two options: Start game and Visit website. When I click Start game it 
quits with 
"unable to locate /sdcard/quake3".  When I browse the sdcard I dont find this 
folder 
either. Seems that the installer cant install to the sdcard.

Can any one help? Is this an issue to do with applications installing to the 
sdcard?

Original comment by jojo...@gmail.com on 25 Feb 2010 at 10:19

GoogleCodeExporter commented 8 years ago
I'd be curious about the firmware + any background apps he may have going.

So I tried some stuff to free up RAM.  First I killed extra tasks/processes 
including
syncing, then I went to "Spare Parts" and turned off "Home App In Memory".  I 
also
turned Compcache on.

This time it got way further:

D/Quake_DEBUG( 3807): Architecture doesn't have a bytecode compiler, using 
interpreter
D/Quake_DEBUG( 3807): cgame loaded in 5773216 bytes on the hunk
D/dalvikvm( 3807): GC freed 62 objects / 493008 bytes in 361ms
D/Quake_DEBUG( 3807): ^1ERROR: Could not open 
"sound/weapons/grenade/hgrenb1a.wav"
D/Quake_DEBUG( 3807): ^3WARNING: could not find 
sound/weapons/grenade/hgrenb1a.wav -
using default
D/Quake_DEBUG( 3807): ^1ERROR: Could not open 
"sound/weapons/grenade/hgrenb2a.wav"
D/Quake_DEBUG( 3807): ^3WARNING: could not find 
sound/weapons/grenade/hgrenb2a.wav -
using default
D/dalvikvm( 3807): GC freed 62 objects / 493008 bytes in 242ms
D/Quake_DEBUG( 3807): ^1ERROR: Could not open 
"sound/weapons/grenade/hgrenb1a.wav"
D/Quake_DEBUG( 3807): ^3WARNING: could not find 
sound/weapons/grenade/hgrenb1a.wav -
using default
D/Quake_DEBUG( 3807): ^1ERROR: Could not open 
"sound/weapons/grenade/hgrenb2a.wav"
D/Quake_DEBUG( 3807): ^3WARNING: could not find 
sound/weapons/grenade/hgrenb2a.wav -
using default
I/ActivityManager(  143): Process com.android.inputmethod.latin (pid 3803) has 
died.
W/ActivityManager(  143): Scheduling restart of crashed service
com.android.inputmethod.latin/.LatinIME in 5000ms
I/ActivityManager(  143): Low Memory: No more background processes.
D/dalvikvm( 3807): GC freed 69 objects / 493392 bytes in 235ms
D/dalvikvm( 3807): GC freed 64 objects / 493064 bytes in 167ms
I/ActivityManager(  143): Start proc com.android.inputmethod.latin for service
com.android.inputmethod.latin/.LatinIME: pid=3860 uid=10007 gids={3003, 3002, 
3001,
1006, 1015}
D/dalvikvm(  124): GC freed 303 objects / 11528 bytes in 668ms
D/dalvikvm(  124): GC freed 57 objects / 2624 bytes in 348ms
D/dalvikvm(  124): GC freed 2 objects / 48 bytes in 185ms
D/dalvikvm( 3807): GC freed 62 objects / 493008 bytes in 293ms
D/dalvikvm( 3807): GC freed 62 objects / 493008 bytes in 768ms
D/skia    ( 3807): purging 6K from font cache [1 entries]
D/dalvikvm( 3807): GC freed 6 objects / 16552 bytes in 807ms
D/skia    (  143): purging 7K from font cache [1 entries]
D/dalvikvm( 3860): Trying to load lib /system/lib/libjni_latinime.so 0x43a64ee0
D/dalvikvm( 3860): Added shared lib /system/lib/libjni_latinime.so 0x43a64ee0
D/dalvikvm(  143): GC freed 6211 objects / 641728 bytes in 1305ms
W/ActivityManager(  143): Timeout executing service: ServiceRecord{43e611f8
com.android.inputmethod.latin/.LatinIME}
D/dalvikvm(  223): GC freed 125 objects / 4944 bytes in 1232ms
I/Process (  143): Sending signal. PID: 3860 SIG: 9
I/ActivityManager(  143): Process com.android.inputmethod.latin (pid 3860) has 
died.
W/ActivityManager(  143): Scheduling restart of crashed service
com.android.inputmethod.latin/.LatinIME in 26136ms
I/ActivityManager(  143): Low Memory: No more background processes.
D/Quake_DEBUG( 3807): stitched 0 LoD cracks
D/Quake_DEBUG( 3807): ...loaded 1942 faces, 113 meshes, 42 trisurfs, 0 flares
I/WindowManager(  143): WIN DEATH: Window{43d26900 SurfaceView paused=false}
I/ActivityManager(  143): Process org.kwaak3 (pid 3807) has died.
I/WindowManager(  143): WIN DEATH: Window{43e42600 org.kwaak3/org.kwaak3.Game
paused=false}
I/ActivityManager(  143): Start proc android.process.acore for activity
com.android.launcher/.Launcher: pid=3866 uid=10007 gids={3003, 3002, 3001, 
1006, 1015}
I/ActivityManager(  143): Low Memory: No more background processes.
W/UsageStats(  143): Unexpected resume of com.android.launcher while already 
resumed
in org.kwaak3

Turning compcache off resulted in faster performance in the animation of the 
logo,
but it crashed faster.

Jojo786:  you need to create /sdcard/quake3 and /sdcard/quake3/baseq3 on your 
sdcard.
 Then you need to download the q3 demo from id at
ftp://ftp.idsoftware.com/idstuff/quake3/linux/linuxq3ademo-1.11-6.x86.gz.sh and
install, then copy pak0.pk3 and put it in /quake3/baseq3.  Finally you need to 
get
the Quake3 1.32 update for your OS (I used OS X) to get the other pk3 files and 
put
them there next to the pak0.pk3 file.  Then it should work.

W

Original comment by vva...@gmail.com on 25 Feb 2010 at 10:33

GoogleCodeExporter commented 8 years ago
jojo786-- one last note on installing that demo.  It's straightforward in 
Linux, but
if you're on Mac, you can do it like this:

Let's say you download it to your Desktop.

Run Applications>Utilities>Terminal and type:

cd Desktop
chmod a+x linuxq3ademo-1.11-6.x86.gz.sh
./linuxq3ademo-1.11-6.x86.gz.sh -confirm -target ~/Desktop/q3

After it verifies the image and uncompresses, say "no" to "install?" (or just 
close
the terminal).  Then, you'll find what you're looking for on the desktop in the 
"q3"
folder.  Look inside "demoq3".

I'm curious if you can get to the playable part.

W

Original comment by vva...@gmail.com on 25 Feb 2010 at 10:40

GoogleCodeExporter commented 8 years ago
I also have OP's problem, T-Mobile G1 (not rooted and unmodded), runs out of 
memory if playing with 
sound enabled.
D/Quake_DEBUG(  550): Loading dll file cgame.
D/Quake_DEBUG(  550): Sys_LoadDll(///data/data/org.kwaak3/lib/libcgamearm.so)...

D/Quake_DEBUG(  550): Sys_LoadDll(///data/data/org.kwaak3/lib/libcgamearm.so): s
ucceeded ...
D/Quake_DEBUG(  550): Sys_LoadDll(cgame) found vmMain function at 0x8400c7d8
[... random apps dieing because of low ram ...]
I/ActivityManager(  167): Low Memory: No more background processes.
I/ActivityManager(  167): Process android.process.acore (pid 205) has died.
I/WindowManager(  167): WIN DEATH: Window{431929f8 com.android.launcher/com.andr
oid.launcher.Launcher paused=false}
I/ActivityManager(  167): Low Memory: No more background processes.
D/skia    (  550): purging 51K from font cache [7 entries]
D/dalvikvm(  550): GC freed 1440 objects / 100760 bytes in 230ms

It is somewhat playable without sound though :) Even multiplayer works, great 
work!

Original comment by schuman...@gmail.com on 25 Feb 2010 at 12:22

GoogleCodeExporter commented 8 years ago
I plan to make some changes to the audio code soon which will improve 
performance and
might lead to less memory consumption.

In case of performance really play with some quake settings. E.g. use vertex
lighting, lower texture quality and geometry. In the game menu set 2d items and
disable some more stuff.

Original comment by thunderb...@gmail.com on 25 Feb 2010 at 1:25

GoogleCodeExporter commented 8 years ago
G1 owner here (without Cyanogen). I had to turn off sound to get it to run, or 
it
would continually crash back to the home screen.

Nicely ported though! Good stuff!  :o)

Original comment by e...@waxworlds.org on 25 Feb 2010 at 3:43

GoogleCodeExporter commented 8 years ago
Turning off sound worked :)  It now runs and is semi-playable (the controls 
aren't
ideal for this kind of game...)

Using "/cg_drawFPS 1" from the menu, I get about 8-20 fps depending on what I'm
looking at.

Pretty amazing.  I'm looking forward to the audio code improvements.

W

Original comment by vva...@gmail.com on 25 Feb 2010 at 7:37

GoogleCodeExporter commented 8 years ago
I uploaded an experimental version with the new audio code. On my Milestone I 
get
0.5fps extra (from 20 to 20.5). On the G1 the boost could even be a little more 
since
memory was scarce. I'm not sure if the code is any more stable though. On 
Milestone I
now encountered some stability issues during the timedemo with sound enabled 
and I'm
not sure if I had those before.

Original comment by thunderb...@gmail.com on 25 Feb 2010 at 11:32

GoogleCodeExporter commented 8 years ago
I have uploaded a new test build which might be more stable. It decreases 
performs a
little but the previous code had some nasty bug. It is available at
http://kwaak3.googlecode.com/files/kwaak3_test_v11b.apk

Original comment by thunderb...@gmail.com on 27 Feb 2010 at 11:32

GoogleCodeExporter commented 8 years ago
A new test again which is stable at least on my Milestone:
http://kwaak3.googlecode.com/files/kwaak3_test_v11c.apk

Original comment by thunderb...@gmail.com on 2 Mar 2010 at 10:51

GoogleCodeExporter commented 8 years ago
Sorry to dissapoint but its still low-memory dieing, with sound enabled, on my 
G1 ;)
Using kwaak3_test_v11c.apk and lowest-possible audio/video quality.

D/Quake_DEBUG( 3729): ----- finished R_Init -----
D/Quake_DEBUG( 3729): Loading vm file vm/ui.qvm...
D/Quake_DEBUG( 3729): Architecture doesn't have a bytecode compiler, using inter
preter
D/Quake_DEBUG( 3729): ui loaded in 2348480 bytes on the hunk
D/Quake_DEBUG( 3729): 35 arenas parsed
D/Quake_DEBUG( 3729): 32 bots parsed
D/Quake_DEBUG( 3729): Loading vm file vm/cgame.qvm...
I/ActivityManager(  167): Process com.android.inputmethod.latin (pid 1037) has 
died.
D/Quake_DEBUG( 3729): Architecture doesn't have a bytecode compiler, using 
interpreter
I/WindowManager(  167): WIN DEATH: Window{433546f0 InputMethod paused=false}
D/Quake_DEBUG( 3729): cgame loaded in 5773216 bytes on the hunk
W/ActivityManager(  167): Scheduling restart of crashed service 
com.android.inputmethod.latin/.LatinIME in 
5000ms
I/ActivityManager(  167): Low Memory: No more background processes.
I/ActivityManager(  167): Process org.kwaak3 (pid 3729) has died.
I/WindowManager(  167): WIN DEATH: Window{4321b260 
org.kwaak3/org.kwaak3.Launcher paused=false}
I/WindowManager(  167): WIN DEATH: Window{4323ead8 org.kwaak3/org.kwaak3.Game 
paused=false}
I/WindowManager(  167): WIN DEATH: Window{432782e8 SurfaceView paused=false}
I/ActivityManager(  167): Start proc org.kwaak3 for activity 
org.kwaak3/.Launcher: pid=3775 uid=10034 
gids={1015, 3003}
I/ActivityManager(  167): Low Memory: No more background processes.

Original comment by schuman...@gmail.com on 3 Mar 2010 at 5:26

GoogleCodeExporter commented 8 years ago
Still, I'm amazed by how well it runs. Also how annoyed people can be when your 
ping
is over 999, because you're roaming.

Original comment by superstu...@gmail.com on 6 Mar 2010 at 2:16

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
With audio off, it works perfectly on my G1. It's even normally playable. Just 
needs 
accelerometer to navigate. 

What I think is just Cyanogen's rom is not powerful enough. You could try 
SuperD 
193 (that's what I'm using, off course, with no swap, compcache and ramhack). 
All 
levels run pretty good (except demo). I don't even need to lower the 
textures... If you 
need more info contact me petrikas.m at google. I'll try to turn on fps and 
post the 
results. :)

Good luck.

(edit: I get 10-15fps with one bot in Q3DM1 and up to 27 while standing in the 
RLauncer spawn spot (woot!), so, once again, it's very playable) By the way, 
this test 
was performed in low textures conditions. :)

Original comment by Petrika...@gmail.com on 6 Mar 2010 at 9:36

GoogleCodeExporter commented 8 years ago
Yeah, I get about hte same as Petrikas M. with Cyanogenmod and no sound.  I'm
guessing the .wav files or whatever is taking up a ton of memory.  Wonder if
compressing or reducing the number of sound files would make a difference.

Original comment by vva...@gmail.com on 6 Mar 2010 at 10:01

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I fear this bug can't be fixed since the G1 just has unsufficient memory :( To 
be honest it is already a miracle that the game works on this phone and that it 
is somewhat playable. Typically the G1 runs at not that much more than 300MHz 
quite impressive and it has a very bad GPU.

Original comment by thunderb...@gmail.com on 11 Jul 2010 at 1:11