godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.24k stars 19.98k forks source link

gles2 crash on on a tv box #26424

Closed psoslash closed 5 years ago

psoslash commented 5 years ago

Godot version: 3.1 beta 8

OS/device including version: X96 (S905x) tv box (android 6.0.1) Mali 450 MP gpu

almost sure this is a device specific error but just in case i was testing compatibility on all my android devices and since the only working device with no gles3 support that i have around is a tv box, i wanted to try 3.1's gles2 on it (would be cool to be able to run my game on cheap tv boxes tho) i created a minimal project with just a label and the default godot icon, it loads the splash screen but then the app crashes

here's the logcat

02-28 22:52:43.660  5383  5396 E godot   : **WARNING**: Could not create framebu
ffer!!
02-28 22:52:43.660  5383  5396 E godot   :    At: drivers/gles2/rasterizer_stora
ge_gles2.cpp:4338:_render_target_allocate() - Could not create framebuffer!!
--------- beginning of crash
02-28 22:52:45.575  5383  5396 F libc    : Fatal signal 11 (SIGSEGV), code 2, fa
ult addr 0xeb7fe000 in tid 5396 (GLThread 147)
02-28 22:52:45.682  3754  3754 F DEBUG   : *** *** *** *** *** *** *** *** *** *
** *** *** *** *** *** ***
02-28 22:52:45.682  3754  3754 F DEBUG   : Build fingerprint: 'Amlogic/p212/p212
:6.0.1/MHC19J/20170725:userdebug/test-keys'
02-28 22:52:45.682  3754  3754 F DEBUG   : Revision: '0'
02-28 22:52:45.682  3754  3754 F DEBUG   : ABI: 'arm'
02-28 22:52:45.683  3754  3754 F DEBUG   : pid: 5383, tid: 5396, name: GLThread
147  >>> org.godot.minimal <<<
02-28 22:52:45.683  3754  3754 F DEBUG   : signal 11 (SIGSEGV), code 2 (SEGV_ACC
ERR), fault addr 0xeb7fe000
02-28 22:52:45.738  3754  3754 F DEBUG   :     r0 eb7fe000  r1 d7f14040  r2 0002
bf80  r3 3c8ea000
02-28 22:52:45.738  3754  3754 F DEBUG   :     r4 d859f2f0  r5 0000000c  r6 0000
0001  r7 00004000
02-28 22:52:45.738  3754  3754 F DEBUG   :     r8 00000000  r9 00000000  sl d85b
1da0  fp d85b1300
02-28 22:52:45.739  3754  3754 F DEBUG   :     ip e9f7bac8  sp ef47df98  lr e9e9
f10c  pc f70adc2e  cpsr 20030030
02-28 22:52:45.758  3754  3754 F DEBUG   :
02-28 22:52:45.758  3754  3754 F DEBUG   : backtrace:
02-28 22:52:45.759  3754  3754 F DEBUG   :     #00 pc 00017c2e  /system/lib/libc
.so (__memcpy_base+97)
02-28 22:52:45.759  3754  3754 F DEBUG   :     #01 pc 00044108  /system/lib/egl/
libGLES_mali.so
02-28 22:52:45.759  3754  3754 F DEBUG   :     #02 pc 0003fad4  /system/lib/egl/
libGLES_mali.so
02-28 22:52:45.760  3754  3754 F DEBUG   :     #03 pc 00040f94  /system/lib/egl/
libGLES_mali.so
02-28 22:52:45.760  3754  3754 F DEBUG   :     #04 pc 000411f0  /system/lib/egl/
libGLES_mali.so
02-28 22:52:45.760  3754  3754 F DEBUG   :     #05 pc 00041ec0  /system/lib/egl/
libGLES_mali.so
02-28 22:52:45.760  3754  3754 F DEBUG   :     #06 pc 00024b9c  /system/lib/egl/
libGLES_mali.so
02-28 22:52:45.760  3754  3754 F DEBUG   :     #07 pc 00014b14  /system/lib/egl/
libGLES_mali.so (glDrawArrays+76)
02-28 22:52:45.761  3754  3754 F DEBUG   :     #08 pc 007eff68  /data/app/org.go
dot.minimal-1/lib/arm/libgodot_android.so
02-28 22:52:45.761  3754  3754 F DEBUG   :     #09 pc 013768b0  /data/app/org.go
dot.minimal-1/lib/arm/libgodot_android.so
02-28 22:52:45.761  3754  3754 F DEBUG   :     #10 pc 002acbcc  /data/app/org.go
dot.minimal-1/lib/arm/libgodot_android.so
02-28 22:52:45.761  3754  3754 F DEBUG   :     #11 pc 019ffd14  /data/app/org.go
dot.minimal-1/lib/arm/libgodot_android.so
02-28 22:52:45.761  3754  3754 F DEBUG   :     #12 pc 019f2188  /data/app/org.go
dot.minimal-1/lib/arm/libgodot_android.so
02-28 22:52:45.761  3754  3754 F DEBUG   :     #13 pc 019f251c  /data/app/org.go
dot.minimal-1/lib/arm/libgodot_android.so
02-28 22:52:45.761  3754  3754 F DEBUG   :     #14 pc 00950a30  /data/app/org.go
dot.minimal-1/lib/arm/libgodot_android.so
02-28 22:52:45.762  3754  3754 F DEBUG   :     #15 pc 000df11c  /data/app/org.go
dot.minimal-1/lib/arm/libgodot_android.so
02-28 22:52:45.762  3754  3754 F DEBUG   :     #16 pc 000a1600  /data/app/org.go
dot.minimal-1/lib/arm/libgodot_android.so (Java_org_godotengine_godot_GodotLib_s
tep+204)
02-28 22:52:45.762  3754  3754 F DEBUG   :     #17 pc 002393ad  /data/app/org.go
dot.minimal-1/oat/arm/base.odex (offset 0x147000) (void org.godotengine.godot.Go
dotLib.step()+72)
02-28 22:52:45.762  3754  3754 F DEBUG   :     #18 pc 0023d0d1  /data/app/org.go
dot.minimal-1/oat/arm/base.odex (offset 0x147000) (void org.godotengine.godot.Go
dotView$Renderer.onDrawFrame(javax.microedition.khronos.opengles.GL10)+84)
02-28 22:52:45.762  3754  3754 F DEBUG   :     #19 pc 72d1a739  /data/dalvik-cac
he/arm/system@framework@boot.oat (offset 0x1f41000)
02-28 22:52:46.068  3754  3754 F DEBUG   :
02-28 22:52:46.068  3754  3754 F DEBUG   : Tombstone written to: /data/tombstone
s/tombstone_01
02-28 22:52:46.068  3754  3754 E DEBUG   : AM write failed: Broken pipe
02-28 22:52:46.071  3989  4027 I BootReceiver: Copying /data/tombstones/tombston
e_01 to DropBox (SYSTEM_TOMBSTONE)
02-28 22:52:46.078  3989  5428 W ActivityManager:   Force finishing activity org
.godot.minimal/org.godotengine.godot.Godot
02-28 22:52:46.087  3711  3815 D PermissionCache: checking android.permission.RE
AD_FRAME_BUFFER for uid=1000 => granted (637 us)
02-28 22:52:46.096  3756  4103 D AudioFlinger: mixer(0xf4500000) throttle end: t
hrottle time(10)
02-28 22:52:46.186  3989  5431 D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED
: false
02-28 22:52:46.234  3989  5431 I OpenGLRenderer: Initialized EGL, version 1.4
02-28 22:52:46.292  3989  4123 W InputDispatcher: channel 'ad8cd24 org.godot.min
imal/org.godotengine.godot.Godot (server)' ~ Consumer closed input channel or an
 error occurred.  events=0x9
02-28 22:52:46.292  3989  4123 E InputDispatcher: channel 'ad8cd24 org.godot.min
imal/org.godotengine.godot.Godot (server)' ~ Channel is unrecoverably broken and
 will be disposed!
02-28 22:52:46.293  3765  3765 I Zygote  : Process 5383 exited due to signal (11
)
02-28 22:52:46.299  3989  4007 I ActivityManager: Process org.godot.minimal (pid
 5383) has died
reduz commented 5 years ago

Fixed by 8799f69