У меня есть приложение Android, использующее библиотеку SDL, и у меня возникает проблема с черным экраном, когда я приостанавливаю и возобновляю приложение, но звук продолжает работать.
Я ищу быстрое решение, например, сохранениеприложение работает в фоновом режиме, не разрушая контекст SDL и не редактируя источник SDL, чтобы он мог предотвратить черный экран,
Также я использую более старую версию SDL, которая является SDL1.2, я знаю, если я обновлюсь до SDL2.0это решит проблему, но мне сложно сделать
Здесь logcat:
2019-02-21 19:48:16.418 24540-24540/com.androidproject D/fr.gameapp.activity.Main: 705: onPause: onPause()
2019-02-21 19:48:16.467 24540-24540/com.androidproject D/fr.gameapp.sdl.SDLSurface: 68: surfaceDestroyed: surfaceDestroyed()
2019-02-21 19:48:26.052 24540-24540/com.androidproject D/fr.gameapp.activity.Main: 713: onResume: onResume()
2019-02-21 19:48:26.064 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.086 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.090 24540-24540/com.androidproject D/fr.gameapp.sdl.SDLSurface: 77: surfaceChanged: surfaceChanged(): 224:384
2019-02-21 19:48:26.090 24540-24540/com.androidproject D/fr.gameapp.sdl.SDLSurface: 111: surfaceChanged: pixel format RGB_565
2019-02-21 19:48:26.091 24540-24540/com.androidproject E/BpSurfaceComposerClient: Failed to transact (-1)
2019-02-21 19:48:26.091 24540-24540/com.androidproject E/BpSurfaceComposerClient: Failed to transact (-1)
2019-02-21 19:48:26.098 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.100 24540-24540/com.androidproject D/fr.gameapp.sdl.SDLSurface: 150: onDraw: onDraw
2019-02-21 19:48:26.116 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.130 24540-24540/com.androidproject I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@b2ba554 time:61134267
2019-02-21 19:48:26.132 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.146 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.164 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.181 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.196 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.214 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.231 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.247 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.263 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.281 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.297 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.314 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.330 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.347 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.364 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.381 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.397 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.414 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.431 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.446 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.464 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.483 24540-24540/com.androidproject D/fr.gameapp.input.SoftwareInputView: 95: onMeasure: 1440x2560
2019-02-21 19:48:26.483 24540-24540/com.androidproject D/fr.gameapp.sdl.SDLSurface: 136: onMeasure: onMeasure
2019-02-21 19:48:26.485 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.486 24540-24540/com.androidproject D/fr.gameapp.input.SoftwareInputView: 95: onMeasure: 1440x2560
2019-02-21 19:48:26.487 24540-24540/com.androidproject D/fr.gameapp.sdl.SDLSurface: 136: onMeasure: onMeasure
2019-02-21 19:48:26.497 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.503 24540-24540/com.androidproject D/fr.gameapp.input.SoftwareInputView: 95: onMeasure: 1440x2560
2019-02-21 19:48:26.504 24540-24540/com.androidproject D/fr.gameapp.sdl.SDLSurface: 136: onMeasure: onMeasure
2019-02-21 19:48:26.505 24540-24540/com.androidproject D/fr.gameapp.input.SoftwareInputView: 95: onMeasure: 1440x2560
2019-02-21 19:48:26.506 24540-24540/com.androidproject D/fr.gameapp.sdl.SDLSurface: 136: onMeasure: onMeasure
2019-02-21 19:48:26.508 24540-24540/com.androidproject D/fr.gameapp.input.SoftwareInputView: 74: onLayout: false: 1440:2560
2019-02-21 19:48:26.508 24540-24540/com.androidproject D/fr.gameapp.input.SoftwareInputView: 76: onLayout: this view: 1440:2560
2019-02-21 19:48:26.510 24540-24540/com.androidproject E/fr.gameapp.utility.Utility: 223: unserialize: unserialize failed
2019-02-21 19:48:26.510 24540-24540/com.androidproject E/fr.gameapp.utility.Utility: 223: unserialize: unserialize failed
2019-02-21 19:48:26.510 24540-24540/com.androidproject D/fr.gameapp.input.CustomDrawable: 132: load: default configuration not found
2019-02-21 19:48:26.512 24540-24540/com.androidproject E/fr.gameapp.utility.Utility: 223: unserialize: unserialize failed
2019-02-21 19:48:26.513 24540-24540/com.androidproject E/fr.gameapp.utility.Utility: 223: unserialize: unserialize failed
2019-02-21 19:48:26.514 24540-24540/com.androidproject D/fr.gameapp.input.CustomDrawable: 132: load: default configuration not found
2019-02-21 19:48:26.514 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.518 24540-24540/com.androidproject D/fr.gameapp.sdl.SDLSurface: 150: onDraw: onDraw
2019-02-21 19:48:26.532 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.548 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.564 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.581 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed
2019-02-21 19:48:26.598 24540-24835/com.androidproject I/Adreno: DequeueBuffer: dequeueBuffer failed