Godot: Android: GLES2 project crash if WorldEnvironment has Background in Sky mode ( Fatal signal 7 (SIGBUS))

Created on 27 Sep 2019  路  11Comments  路  Source: godotengine/godot

Godot version: 3.1.1.stable

OS/device including version: Xiaomi Redmi 4 Android 6.0.1

Issue description: Game on android crash after bootsplash logo if scene have WorldEnvironment with sky setup(only in GLES2, on GLES3 game works fine).

Steps to reproduce:

  1. Create empty project
  2. Delete default_env.tres (it's causes same crash after bootsplash(i think it's cause it's have sky setup))
  3. Make simple scene with Spatial and WorldEnvironment inside.
  4. Set up WorldEnvironment node with procedural sky.
  5. Turn on GLES2 mode.
  6. Export and lanuch game on android.

Minimal reproduction project:

minimal reproduction project.zip

Also here some cut from adb logcat log:
logcat.txt

In log you can see Fatal signal 7 (SIGBUS) error that appears only if scene have WorldEnvironment with sky and if project is in GLES2

archived bug crash core rendering

Most helpful comment

given minimal reproduction project does not crash for me
tested on master b0f0e0e2fc95743adccf76ce82696be5b9553536 on real gles2 android device with mali450
crash.apk.zip
(btw. redmi 4 is not gles2 device its adreno 505 with gles3.1)

All 11 comments

Could be a data alignment issue, does it occur in an x86 emulator?

Could be a data alignment issue, does it occur in an x86 emulator?

need to be tested

Also I would try it with the latest 3.2:
https://hugo.pro/projects/godot-builds/

You are unlikely to get interest in investigating unless it occurs in latest master, it may be a bug that was previously fixed.

given minimal reproduction project does not crash for me
tested on master b0f0e0e2fc95743adccf76ce82696be5b9553536 on real gles2 android device with mali450
crash.apk.zip
(btw. redmi 4 is not gles2 device its adreno 505 with gles3.1)

Try setting the procedural sky's texture size to lower than 1024, and please test that way as well, maybe that phone doesn't like big textures.

I'm at the moment not sure if I just read about issues like this, or had a phone in the past that didn't like 1024x1024-ish textures, but looking at the crash log my first guess is that this might be a driver issue. (More than half of it is in the opengl driver, manipulating textures).

~I'll simbolify the crashlog later, I only have the downloaded templates for 3.1.1 at the moment.~
Edit: Nevermind, my setup differs too much and I get weird results like this. If I figure it out I'll post it though.

Just checked Godot 3.1.2 - bug still here.
Also as @lawnjelly suggested - tryed it on last Godot 3.2(Godot 3.2 beta 2) - bug still exist.

@legendiguess did you try lowering your radiance map size as Relintai suggested? On lower-end hardware sizes of 1024 and above can cause crashes.

@clayjohn just checked with those settings on Godot 3.2(Godot 3.2 beta 2) still crash with Fatal signal 7 (SIGBUS), code 1, fault addr 0x2751 in tid 4012 (GLThread 6084) error.
image

Can anyone still reproduce this bug in Godot 3.2.3 or any later release?

Can anyone still reproduce this bug in Godot 3.2.3 or any later release?

I no longer have access to the phone on which I encountered this bug, so i can't try to reproduce it.

Doesn't look like anyone else had this issue, so closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ducdetronquito picture ducdetronquito  路  3Comments

bojidar-bg picture bojidar-bg  路  3Comments

SleepProgger picture SleepProgger  路  3Comments

gonzo191 picture gonzo191  路  3Comments

blurymind picture blurymind  路  3Comments