BrunoLevy/geogram

Android app crashes when switching to other app and resuming

BrunoLevy opened this issue · 3 comments

To reproduce problem:

  • start Android app
  • switch to other app (using the button that shows list of running apps)
  • switch back to app

Need to implement app state change in command handler.

Pausing sequence:

07-30 11:00:09.310 20662 20679 V GEOGRAM : DBG: command: APP_CMD_PAUSE
07-30 11:00:09.315 20662 20679 V GEOGRAM : DBG: command: APP_CMD_LOST_FOCUS
07-30 11:00:09.345 20662 20679 V GEOGRAM : DBG: command: APP_CMD_STOP
07-30 11:00:09.347 20662 20679 V GEOGRAM : DBG: command: APP_CMD_SAVE_STATE
07-30 11:00:09.386 20662 20679 V GEOGRAM : DBG: command: APP_CMD_TERM_WINDOW

Resuming sequence:

07-30 14:03:59.894  4111  4130 V GEOGRAM : DBG: command: APP_CMD_START
07-30 14:03:59.896  4111  4130 V GEOGRAM : DBG: command: APP_CMD_RESUME
07-30 14:03:59.941  4111  4130 V GEOGRAM : DBG: command: APP_CMD_INIT_WINDOW
07-30 14:03:59.942  4111  4130 V GEOGRAM : DBG: command: APP_CMD_WINDOW_RESIZED
07-30 14:03:59.949  4111  4130 V GEOGRAM : DBG: command: APP_CMD_GAINED_FOCUS 

Fixed ! (no longer crashes)
Need also to delete/recreate textures (colormaps, normal maps)

Fixed texture deletion / creation in Application / SimpleApplication / SimpleMeshApplication / GeoBox