Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game crashes when changing to landscape orientation #5

Open
bubblechuk opened this issue Mar 9, 2025 · 2 comments
Open

Game crashes when changing to landscape orientation #5

bubblechuk opened this issue Mar 9, 2025 · 2 comments

Comments

@bubblechuk
Copy link

Hello there. I have an issue that game instantly crashes when changing to landscape orientation. I tried both armv7 and armv8 game versions and they both have this problem.

Phone: Xiaomi Poco F5
OS: MIUI 14 Android 13
Resolution: 1080x2400

@RblSb
Copy link
Member

RblSb commented Mar 9, 2025

Cannot repro with my poco x4gt with miui 13 / android 12, can be related to newer android version.
You can try to lock orientation and see if it's still crashes on rotation and also see logcat if you curious about error. I will try to update and release game code in free time and target latest android sdk.

@bubblechuk
Copy link
Author

bubblechuk commented Mar 9, 2025

Unfortunately, orientation lock doesn't solve the issue. I am curious about error, I retrieved all logs from logcat which related to org.tankzors. There is only one error related to jdwp agent, and probably its all about outdated android sdk.

I pasted log I retrieved, I marked down below with '///', these four messages appear when phone changes orientation ingame.

03-09 18:27:50.000 5700 5700 I org.tankzors: Using CollectorTypeCMC GC.
03-09 18:27:50.002 5700 5700 E org.tankzors: Not starting debugger since process cannot load the jdwp agent.
03-09 18:27:50.034 5700 5700 D org.tankzors: JNI_OnLoad success
03-09 18:27:50.027 5700 5700 W org.tankzors: type=1400 audit(0.0:25323): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=387 scontext=u:r:untrusted_app_29:s0:c93,c257,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0 app=org.tankzors
03-09 18:27:50.078 5700 24848 W org.tankzors: Unsupported class loader
03-09 18:27:50.079 5700 24848 W org.tankzors: Unsupported class loader
03-09 18:27:50.079 5700 24848 W org.tankzors: Unsupported class loader
03-09 18:27:50.102 5700 24848 W org.tankzors: ClassLoaderContext type mismatch. expected=PCL, found=DLC (PCL[] | DLC[];PCL[/data/app/~~3yo7cMMmCopCG2OuEaijGg==/org.tankzors-cpfn_U-JoFsB8M8f7Ps_sA==/base.apk1080151488]{PCL[/system/framework/android.test.base.jar1628045883]})
03-09 18:27:50.130 5700 24878 I org.tankzors: DF org.tankzors Support Dynamic FPS.
03-09 18:27:50.152 5700 24878 D org.tankzors: PlayerBase::PlayerBase()
03-09 18:27:50.153 5700 24878 D org.tankzors: TrackPlayerBase::TrackPlayerBase()
03-09 18:27:50.265 5700 5700 W org.tankzors: Entry not found
///
03-09 18:27:53.836 5700 24878 D org.tankzors: PlayerBase::pause() from IPlayer
03-09 18:27:53.878 5700 25136 D org.tankzors: PlayerBase::PlayerBase()
03-09 18:27:53.879 5700 25136 D org.tankzors: TrackPlayerBase::TrackPlayerBase()
03-09 18:27:53.930 5700 5700 I org.tankzors: System.exit called, status: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants