4ian / GDevelop

:video_game: Open-source, cross-platform game engine designed to be used by everyone.
https://gdevelop.io
Other
6.62k stars 724 forks source link

Latest android app crashes (since after version 5.3.181-mobile) #6643

Open pkoretic opened 1 week ago

pkoretic commented 1 week ago

Is there an existing issue for this?

Describe the bug

Latest Android app crashes after starting and showing home page for few seconds. Using different available apks I traced it down to first starting in apk 1.0.81 (version code 81).

Version 1.0.75 (version code 75) works without issues. Any version afterwards doesn't.

If you can point me to some docs on how to build the android app I'm happy to try to bisect and find the commit that started this. Otherwise please see adb logcat output.

Steps to reproduce

  1. install latest Gdevelop from android app store
  2. run it
  3. wait a few seconds after opening and it will freeze and close by itself

GDevelop platform

Mobile

GDevelop version

5.3.201

Platform info

HarmonyOS 4.2.0 HUAWEI MatePad 11.5''S

As many might know this is based on forked Android code so it runs Android apps.

Additional context

adb logcat https://justpaste.it/gdevelop_crash

ClementPasteau commented 1 week ago

Hey @pkoretic thanks for reporting, I can confirm I see weird things on the Android app too. We'll look into it

AlexandreSi commented 1 week ago

Hi @pkoretic, thanks for investigating this! Is the crash consistent? Do you think you could record the screen while you start the app?

pkoretic commented 1 week ago

Hi @AlexandreSi It happens every time on launch. I tried all the usual things but made no difference. Please find the video attached.

https://github.com/4ian/GDevelop/assets/1131063/b9cbadc0-0974-4641-83e9-722832ddaabb

4ian commented 6 days ago

Thanks @pkoretic for reporting this and sending the video. We want to verify something, as we wonder if the crash is coming from a request that loads the data for the asset store. Would you be able to try this debug version? https://drive.google.com/file/d/175CVl8fuRHTARdXvKso1IdMcdRLgsGU8/view?usp=sharing - You can request access with a Google account and mention it's you (It's not super critical, but I just want to avoid people downloading the app outside of the app store).

It's a debug version of the app, but with the loading that I mentioned removed (so the "shop" tab won't work).

4ian commented 6 days ago

(shared with you, thanks again for taking the time to try this)

pkoretic commented 6 days ago

Hi @4ian happy to have tried this out. Unfortunately result is the same. I did clean install and it crashes already during the welcome popup (after ~2 seconds) regardless if I try to do something or not. Let me know if you need logs or if there is something else I could do.

4ian commented 6 days ago

Bad luck! At least it's not related to the asset store loading.. The logcat you sent was just mentionned out of memory errors for the renderer process. It's a bit hard to pinpoint what could be causing this. I'll try to think about something else or we could try to give you a few version to bisect when the problem started (we checked at the commit but nothing obvious)

pkoretic commented 6 days ago

Sounds good, happy to try few different versions.