Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Android bug (crash)  (Read 3374 times)

0 Members and 1 Guest are viewing this topic.

cvkfak

  • Newbie
  • *
  • Posts: 12
    • View Profile
Android bug (crash)
« on: December 19, 2016, 09:30:10 pm »
I tried on Windows 10 and Ubuntu
Compiling the example android  SFML 2.3.2 is ok, but when i try to compile the example android code with SFML 2.4.1 , crashes when i switch to another applicaction.

I compiled SFML 2.4.1 with android ndk r10e and tried with the lastest ndk version (r13b), with c++_shared and stlport_shared but the problems still exist.

The apk from http://www.sfml-dev.org/artifacts/by-branch/2.4.x/ has the same bug

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Android bug (crash)
« Reply #1 on: December 19, 2016, 11:43:30 pm »
Any chance for a logcat snippet regarding the crash?

cvkfak

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Android bug (crash)
« Reply #2 on: December 20, 2016, 06:30:54 am »
Any chance for a logcat snippet regarding the crash?
I hope that helps  :)
Code: [Select]
--------- log main
12-19 22:20:08.078 32278 32278 I art     : Late-enabling -Xcheck:jni
12-19 22:20:08.283 32278 32278 W linker  : /data/app/com.example.sfml-1/lib/arm/libopenal.so: unused DT entry: type 0xf arg 0x19ab
12-19 22:20:08.317 32278 32278 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 10/09/15, 6cbbf7d, I3193f6e94a
12-19 22:20:08.846 32278 32297 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
12-19 22:20:08.846 32278 32297 I sfml-error: Warning: The created OpenGL context does not fully meet the settings that were requested
12-19 22:20:08.846 32278 32297 I sfml-error:
12-19 22:20:08.846 32278 32297 I sfml-error: Requested: version = 1.1 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false ; sRGB = false
12-19 22:20:08.846 32278 32297 I sfml-error:
12-19 22:20:08.846 32278 32297 I sfml-error: Created: version = 0.0 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false ; sRGB = false
12-19 22:20:08.846 32278 32297 I sfml-error:
12-19 22:20:08.846 32278 32297 I sfml-error: Failed to activate the window's context
12-19 22:20:08.846 32278 32297 I sfml-error:
12-19 22:20:08.846 32278 32297 I sfml-error: Failed to activate the window's context
12-19 22:20:08.889 32278 32297 W AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by client; transfer 1, track 44100 Hz, output 48000 Hz
12-19 22:20:14.648 32278 32297 W Adreno-GSL: <sharedmem_gpumem_alloc_id:2260>: sharedmem_gpumem_alloc: mmap failed errno 16 Device or resource busy
12-19 22:20:14.648 32278 32297 E Adreno-GSL: <gsl_memory_alloc_pure:1971>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.

Tombstone written to: /data/tombstones/tombstone_00
I attached the full log in case it becomes necessary

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Android bug (crash)
« Reply #3 on: December 21, 2016, 09:13:04 am »
Somewhat - will have to take some time trying to reproduce it.

cvkfak

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Android bug (crash)
« Reply #4 on: December 22, 2016, 07:41:24 am »
I discovered that only happends con my cell phone (Moto g 2013 android 6.0.1 Cyanogenmod 13)
i tested the official apk build on a chinese tablet with android 4.4 and the crash not appear.
The strange thing is that apk build with SFML 2.3.2 dont crashes on both cell phones...

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Android bug (crash)
« Reply #5 on: December 22, 2016, 10:19:48 am »
Yeah, it's possibly due to some assumptions about how Android initializes things, sets up the render context etc. E.g. there's a fixed wait time to give the system enough time to setup everything, which I suspect to be the culprit right now, although I haven't tested it yet.

 

anything