hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.18k stars 2.17k forks source link

Android: Reported crashes and ANRs #19522

Open hrydgard opened 1 week ago

hrydgard commented 1 week ago

This will be another summary thread in which I'll paste various stack traces from the Play Console for later investigation, similar to previous pre-release threads, but this one will live longer.

First one:

ANR in ScreenManager::touch (mutex lock)

Looks touch related but is really just EmuThread blocked on org.ppsspp.ppsspp.PpssppActivity.contentUriGetFreeStorageSpace (PpssppActivity.java:448), so the mutex times out. We should avoid doing space checks on the main thread since they can be very expensive, it seems.

NOTE: A game that checks storage space (for testing) is ThrillVille.

IrfanH495 commented 2 days ago

sorry for commenting here outside the issue I really like the 1995 theme, but there are parts that I find difficult to see or read, especially for me. Screenshot_2024-10-13-18-56-09-460 Screenshot_2024-10-13-18-56-39-785 I saw v1.18.0 is about to be released and I dared to comment, I don't know what the original looks like.

hrydgard commented 2 days ago

Hm yeah, that's not great. Might have to do something properly about the popup color scheme...

hrydgard commented 23 hours ago

Running on an ancient Android device, I'm hitting:

I/DEBUG   (  190): Abort message: 'art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal start byte 0xf0'
I/DEBUG   (  190):     r0 00000000  r1 000012c7  r2 00000006  r3 00000000
I/DEBUG   (  190):     r4 a1634dd8  r5 00000006  r6 0000000b  r7 0000010c
I/DEBUG   (  190):     r8 00000000  r9 b7f92938  sl b81b7ca8  fp 00000001
I/DEBUG   (  190):     ip 000012c7  sp a16341d8  lr b6dc0989  pc b6de5e24  cpsr 60070010
I/DEBUG   (  190):     #11 pc 00d2e107  /data/app/org.ppsspp.ppssppgold-2/lib/arm/libppsspp_jni.so (_JNIEnv::NewStringUTF(char const*)+26)
I/DEBUG   (  190):     #12 pc 00db353b  /data/app/org.ppsspp.ppssppgold-2/lib/arm/libppsspp_jni.so (TextDrawerAndroid::DrawStringBitmap(std::__ndk1::vector<unsigned char, std::__ndk1::allocator<unsigned char> >&, TextStringEntry&, Draw::DataFormat, std::__ndk1::basic_string_view<char, std::__ndk1::char_traits<char> >, int, bool)+226)
I/DEBUG   (  190):     #13 pc 00daf641  /data/app/org.ppsspp.ppssppgold-2/lib/arm/libppsspp_jni.so (TextDrawer::DrawString(DrawBuffer&, std::__ndk1::basic_string_view<char, std::__ndk1::char_traits<char> >, float, float, unsigned int, int)+660)
I/DEBUG   (  190):     #14 pc 00dc5ac1  /data/app/org.ppsspp.ppssppgold-2/lib/arm/libppsspp_jni.so (UIContext::DrawText(std::__ndk1::basic_string_view<char, std::__ndk1::char_traits<char> >, float, float, unsigned int, int)+504)
I/DEBUG   (  190):     #15 pc 00e5fd3b  /data/app/org.ppsspp.ppssppgold-2/lib/arm/libppsspp_jni.so (LogoScreen::DrawForeground(UIContext&)+1334)

Hm... Maybe it's the emoji? Might have to clean them out of strings on really old devices :/