hiteshsuthar/rokon

Application crash during load RokonActivity thecond time

Closed this issue · 1 comments

What steps will reproduce the problem?
1. Create rokon activity
2. Finish activity
3. Create rokon activity

What is the expected output?
Correct loading of the game

What do you see instead?
Nothing has loaded and after click "Back" button application crash

What version of Rokon are you using?
r365

On which version of Android are you experiencing this?
8

Please provide any additional information below.
It is an a problem during finish app, the method onLoadComplete() will be 
executed thecond time during close activity. When loading new activity - there 
is nothing

It's try load engine again but i'm need to finish


After quick investigation found bug and make fix for it:

RokonRenderer.java

Line 52:
bug: if(!RokonActivity.engineLoaded) {
fix: if(!RokonActivity.engineLoaded && RokonActivity.engineCreated) {



also log contain next:

08-31 19:55:30.495: WARN/System.err(951): java.lang.NullPointerException
08-31 19:55:30.495: WARN/System.err(951):     at 
com.stickycoding.rokon.audio.RokonAudio.createSoundFile(RokonAudio.java:83)
08-31 19:55:30.495: WARN/System.err(951):     at 
*.GameEngine.initGame(GameEngine.java:135)
08-31 19:55:30.495: WARN/System.err(951):     at 
*.MultiPlayerGame.initGame(MultiPlayerGame.java:77)
08-31 19:55:30.495: WARN/System.err(951):     at 
*.GameScene.initGameScene(GameScene.java:67)
08-31 19:55:30.495: WARN/System.err(951):     at 
com.lentricasoftware.bowman.game.GameScene.<init>(GameScene.java:36)
08-31 19:55:30.495: WARN/System.err(951):     at 
*.PlayGame.onLoadComplete(PlayGame.java:50)
08-31 19:55:30.495: WARN/System.err(951):     at 
com.stickycoding.rokon.RokonRenderer.onDrawFrame(RokonRenderer.java:55)
08-31 19:55:30.495: WARN/System.err(951):     at 
com.stickycoding.rokon.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1130
)
08-31 19:55:30.495: WARN/System.err(951):     at 
com.stickycoding.rokon.GLSurfaceView$GLThread.run(GLSurfaceView.java:965)

Original issue reported on code.google.com by cih.exe...@gmail.com on 31 Aug 2010 at 7:58

Original comment by rtaylor205@gmail.com on 4 Sep 2010 at 3:19

  • Changed state: Duplicate