No graphics working on Huawei P7-L10 with SDL 2.24.0

you should have much more… didn’t you say that you app was reacting (like sound is playing for instance). so this is only a black screen appearing ?

The game carries on (with no graphics) and I can tap on things and sounds happen. But nothing else appears in my Logcat

… could this be an issue with audio ? (libOpenSLES)
src/audio/SDL_audio.c : comment out: &openslES_bootstrap

The audio seems to be fine though

you can update your
compileSdkVersion 31
to 33

APP_PLATFORM=android-10
to “android-19” (eg it’s your minSdk)

you shouldn’t need.
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
(but may depend on you java installed, not sure …)

APP_API:
remove armeabi
keep:
APP_ABI := armeabi-v7a x86 arm64-v8a x86_64

but nothing here should be the cause of a black screen…

are you on window?mac?linux?
you should be able to open a console and run “adb logcat” to get the log from your device

Thanks for those tips, and you’re right that that doesn’t fix the issue.

I’m on Windows. Here’s the output from adb logcat:

logcat.txt (727.9 KB)

some attempt … can you update your AndroidManifest.xmk

                  android:configChanges="keyboardHidden|orientation|screenSize"
with:
                  android:configChanges="mcc|mnc|layoutDirection|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode|screenSize

there’s still not enough message.
adb filters out some message.
(Logcat command-line tool  |  Android Developers)

I think this should display all verbose message:

adb logcat *:V

Thanks, but it still gives a blank screen. Here’s the verbose logcat:

logcat2.txt (344.7 KB)

not sure, but debug log doesn’t show up.
maybe:

adb logcat '*:V'

or maybe:

adb shell stop
adb shell setprop log.tag.MY_APP_TAG VERBOSE
adb shell start

…or maybe huawei issue:

Dial

*#*#2846579#*#*

and you will see a hidden menu. Go to the Project Menu > Background Setting > Log setting and define the log availability (log switch) and level (log level setting).

I tried SDL from this revision: [571ff1a3a96f03a3c1e2e01479077c5d61eadfa0]
Date: 30.10.2022 8:19:09
“wayland: Prepare cursor implementation for reconnect support
Co-authored-by: David Edmundson kde@davidedmundson.co.uk

My issue IS NOT reproduced in this version. It seems there was an issue with openglES shaders connected to floating point precision fixed few commits earlier.