Title: Crashing issue immediately after 100% content import on Retroid Pocket G2 (Android 15)
Device Information
- Device: Retroid Pocket G2
- Android Version: Android 15
- D2R Mobile APK Version: 2.3.1
- Build Version: 2.3.1
Issue Description
The content import process completes successfully and reaches 100%.
However, when I launch the game after the import is completed, the application crashes immediately.
Expected Behavior
The game should launch and run normally after the content import is completed.
Actual Behavior
Content import completes successfully, but the game crashes immediately upon launch.
I have attached the Android logcat crash log for further investigation.
Thank you for your work on this project.
Activity
7Thank you for the quick investigation and fix!
After several crashes, the game eventually reached the loading screen.
After several more crashes, I was finally able to enter the game successfully.
I can confirm that gameplay is now working on my Retroid Pocket G2 (Android 15, D2R Mobile 2.3.1).
Your workaround worked!
However, I would like to ask: Is there still a possibility of further crashes as I continue playing the game?
Thank you again for your support and for looking into this issue.
Glad it's playable! On more crashes: it's possible, but unlikely and self-limiting.
- The crash happens when the driver builds a particular effect shader for the first time. On the same chip (#286), only two shaders ever did it, and those are the two your game now skips. Most likely you won't see it again.
- If a new area or skill does use another shader the driver can't handle, the game closes the first time it's built, and once more on the next start. After that it's skipped too, so just reopen. You'd lose that effect's visuals rather than the game.
- Your saves aren't affected. The game saves as you play, and a crash at most loses the last few seconds.
What's skipped now: fire and smoke may look odd, and in HD mode the light around your character may be missing (#286). Once a release includes #284 and #287:
- install it over your current app (a release APK keeps your saves);
- rebuild the import pack from the same release.
On first start it retries the skipped shaders with the compiler workaround, and they should come back.
He meet same trouble. So when the next version will release?
@khuongduyitvl, the release date is up to the maintainer (@jhaizhou-ops); I can't promise one. What's waiting: v2.3.3 is tagged but has no Android APK yet (asked in #250), and the fixes for these crashes are in open PRs #284 and #287.
For your Snapdragon 695 (#295), you can try what worked here: open the game several times in a row. If your crash is the shader-compiler one, the game skips the bad shader after two crashes and gets further each time. If it never gets past the same point after five or six tries, it's the other cause from #295. That one stops at every start and needs v2.3.3 or later.
v2.3.5 is out with the fix for this: devices that report no model number, like the Retroid Pocket G2 (Adreno (TM) 22), are now recognised by their device ID as an Adreno 735 and get the same inlining (#284 by @yyan160). @jjungu @khuongduyitvl install the new APK; the 2.3.4 import pack still works, or make one from the v2.3.5 source. The first start or two may close once while previously skipped shaders are retried; after that it settles.
v2.3.5 is out with the fix for this: devices that report no model number, like the Retroid Pocket G2 (
Adreno (TM) 22), are now recognised by their device ID as an Adreno 735 and get the same inlining (#284 by @yyan160). @jjungu @khuongduyitvl install the new APK; the 2.3.4 import pack still works, or make one from the v2.3.5 source. The first start or two may close once while previously skipped shaders are retried; after that it settles.
Hi bro. I don't have a console (Nintefo Switch). So how can i make the S2X folder to transfer to my Android Phone??
Thanks, the log pins it down. Your Retroid Pocket G2 reports its GPU as "Adreno (TM) 22", but its device ID is
0x43030b00, the same as the Adreno 735 (Snapdragon 8s Gen 3). It crashes the same way the 735 did in #169:SIGSEGV addr=0x48in Qualcomm's shader compiler (libllvm-qgl.so) while building one effect shader (098a126f92bf533a), on two starts in a row.The fix:
Until a release includes #284 and #287: with v2.3.1, the game has a safety net. A shader that crashes the driver on two starts in a row is skipped from then on. After about four crashing starts (two for each of two effect shaders, as #286 saw on the same chip), it should get into the game. The skipped effects mean fire and smoke may look wrong, and in HD mode the light around your character may be missing (#286). If it still won't start after five or six tries, post a new log here.