Open foureight84 opened 3 years ago
which commit of flycast are you using ? your logs look weird
00:00:436 rend/vulkan/vulkan_context.cpp:190 N[RENDERER]: GPU Supports Vulkan API: 1.1.66
since it's 1.1.X, it should be followed by a line like this using latest version :
00:00:436 rend/vulkan/vulkan_context.cpp:190 N[RENDERER]: GPU Supports vkGetPhysicalDeviceProperties2
I can reproduce this with the Play Store build, but NOT with the regular nightly from the buildbot.
Flycast on buildbot is 8954f06 and on the play store it's 8954f06
RetroArch version on the buildbot is 9a44722 (https://github.com/libretro/RetroArch/commit/9a44722) RetroArch version on the Play Store is d3eb9b6 (https://github.com/libretro/RetroArch/commit/d3eb9b6)
It doesn't matter if the Play Store version is Plus or non-Plus. The crash will always happen in this way:
(with the original BIOS) Crash happens after the Dreamcast BIOS animation swirl at the start (with HLE BIOS) Crash happens a few frames into the game's startup screens
Device I am testing is a Samsung Galaxy S10 Plus. Android version is 10.
I can reproduce this with the Play Store build, but NOT with the regular nightly from the buildbot.
Flycast on buildbot is 8954f06 and on the play store it's 8954f06
RetroArch version on the buildbot is 9a44722 (libretro/RetroArch@9a44722) RetroArch version on the Play Store is d3eb9b6 (libretro/RetroArch@d3eb9b6)
It doesn't matter if the Play Store version is Plus or non-Plus. The crash will always happen in this way:
(with the original BIOS) Crash happens after the Dreamcast BIOS animation swirl at the start (with HLE BIOS) Crash happens a few frames into the game's startup screens
Device I am testing is a Samsung Galaxy S10 Plus. Android version is 10.
The build I'm using doesn't even load bios. I will switch to nightly. Thanks for the tip 👍
EDIT: Nightly build does not have issues with Vulkan renderer.
which commit of flycast are you using ? your logs look weird
00:00:436 rend/vulkan/vulkan_context.cpp:190 N[RENDERER]: GPU Supports Vulkan API: 1.1.66
since it's 1.1.X, it should be followed by a line like this using latest version :
00:00:436 rend/vulkan/vulkan_context.cpp:190 N[RENDERER]: GPU Supports vkGetPhysicalDeviceProperties2
This was downloaded from the Retroarch website. The 64bit apk.
reopening, we still need to figure out why the playstore build is crashing
reopening, we still need to figure out why the playstore build is crashing
Let me know if you need additional information
The root cause of the issue is RetroArch being compiled with targetSdkVersion 29. This is the case for the Play Store versions of the app, due to Google's stringent policies. The standalone APKs downloadable from the buildbot are compiled with targetSdkVersion 28, so until a proper fix for this issue is found, please use the standalone APK for now.
Note that this crash doesn't occur on every device. I've tested on the Pixel 4a, Pixelbook and Nvidia Shield and all three of those devices do not exhibit this issue. It also appears to not be Vulkan-specific as we have gotten it to crash on OpenGL as well.
I suspected that in my case (specific to the LG V40 Sprint), it was due to my attempt to debloat the phone. Since I no longer use the cellular service, I removed a lot of features installed on the phone. I did a factory reset today and installed the playstore version, standalone, and also tried the nightly build (both 64bit) and flycast launches with the Vulkan renderer without issues. I suspect this is also why @barbudreadmon mentioned that the log I posted looks funny.
I did not install the playstore build prior to this. It has always been the standalone builds. However, neither are showing issues after I've factory reset and restored apps and services I removed.
Here are the packages I removed from the phone previously. I can't tell which is the culprit but perhaps one of you guys would be able to see it right away.
pm uninstall --user 0 com.sprint.zone
pm uninstall --user 0 com.sprint.w.prefact
pm uninstall --user 0 com.sprint.w.installer
pm uninstall --user 0 com.sprint.psdg.sw
pm uninstall --user 0 com.sprint.ms.smf.services
pm uninstall --user 0 com.sprint.ms.cdm
pm uninstall --user 0 com.sprint.ecid
pm uninstall --user 0 com.sprint.ce.updater
pm uninstall --user 0 com.pinsight.dw
pm uninstall --user 0 com.lookout
pm uninstall --user 0 com.lge.vrplayer
pm uninstall --user 0 com.lge.video.vr.wallpaper
pm uninstall --user 0 com.lge.updatecenter
pm uninstall --user 0 com.lge.sprintserver
pm uninstall --user 0 com.lge.sprintnativewfc.smf
pm uninstall --user 0 com.lge.snappage
pm uninstall --user 0 com.lge.mlt
pm uninstall --user 0 com.lge.lifetracker
pm uninstall --user 0 com.lge.lgpay.qlauncher
pm uninstall --user 0 com.lge.lgfota.permission
pm uninstall --user 0 com.lge.lgdms.clientspr
pm uninstall --user 0 com.lge.lgdms.clients
pm uninstall --user 0 com.lge.gdec.client
pm uninstall --user 0 com.lge.gcuv
pm uninstall --user 0 com.lge.gametuner
pm uninstall --user 0 com.lge.gallery.vr.wallpaper
pm uninstall --user 0 com.lge.gallery.collagewallpaper
pm uninstall --user 0 com.lge.exchange
pm uninstall --user 0 com.lge.email
pm uninstall --user 0 com.lge.carfinding
pm uninstall --user 0 com.lge.appbox.client
pm uninstall --user 0 com.lge.animal.resource
pm uninstall --user 0 com.lge.android.atservice
pm uninstall --user 0 com.ironsource.appcloud.oobe
pm uninstall --user 0 com.google.ar.core
pm uninstall --user 0 com.google.android.youtube
pm uninstall --user 0 com.google.android.videos
pm uninstall --user 0 com.google.android.inservice.recommendation
pm uninstall --user 0 com.google.android.music
pm uninstall --user 0 com.google.android.inputmethod.latin
pm uninstall --user 0 com.google.android.apps.work.oobconfic
pm uninstall --user 0 com.google.android.apps.walletnfcrel
pm uninstall --user 0 com.google.android.apps.tachyon
pm uninstall --user 0 com.google.android.apps.photos
pm uninstall --user 0 com.google.android.apps.magazines
pm uninstall --user 0 com.google.android.apps.docs.editors.slides
pm uninstall --user 0 com.google.android.apps.docs.editors.sheets
pm uninstall --user 0 com.google.android.apps.docs.editors.docs
pm uninstall --user 0 com.google.android.apps.cloudprint
pm uninstall --user 0 com.facebook.system
pm uninstall --user 0 com.facebook.katana
pm uninstall --user 0 com.facebook.appmanager
pm uninstall --user 0 com.coremobility.app.vnotes
pm uninstall --user 0 com.android.printspooler
pm uninstall --user 0 com.android.bips
pm uninstall --user 0 com.amazon.avod.thirdpartyclient
pm uninstall --user 0 com.amazon.appmanager
pm uninstall --user 0 com.amazon.mShop.android.shopping
pm uninstall --user 0 com.sprint.ecid
pm uninstall --user 0 com.nextradioapp.nextradio
pm uninstall --user 0 com.lge.cmas
pm uninstall --user 0 com.google.ar.lens
pm uninstall --user 0 com.google.android.apps.maps
pm uninstall --user 0 com.google.android.googlequicksearchbox
pm uninstall --user 0 com.google.android.gm
pm uninstall --user 0 com.lge.qhelp.application
pm uninstall --user 0 com.lge.lgworld
pm uninstall --user 0 com.lge.qhelp
pm uninstall --user 0 com.lge.qmemoplus
pm uninstall --user 0 com.lge.icecontacts
pm uninstall --user 0 com.android.contacts
pm uninstall --user 0 com.google.android.syncadapters.contacts
pm uninstall --user 0 com.google.android.apps.messaging
pm uninstall --user 0 com.android.providers.telephony
pm uninstall --user 0 com.qualcomm.qti.telephonyservice
pm uninstall --user 0 com.android.server.telecom
pm uninstall --user 0 com.android.mms.service
pm uninstall --user 0 com.sprint.extension
pm uninstall --user 0 com.android.stk
pm uninstall --user 0 com.android.incallui
pm uninstall --user 0 com.qualcomm.qti.callenhancement
pm uninstall --user 0 com.android.calllogbackup
pm uninstall --user 0 com.qti.confuridialer
pm uninstall --user 0 com.android.emergency
pm uninstall --user 0 com.android.carrierdefaultapp
pm uninstall --user 0 com.lge.gestureanswering
pm uninstall --user 0 com.android.carrierconfig
pm uninstall --user 0 org.codeaurora.btmultisim
pm uninstall --user 0 com.lge.hotspotprovision
pm uninstall --user 0 com.lge.cic.eden.service
pm uninstall --user 0 com.lge.lteconfig
pm uninstall --user 0 com.android.phone
pm uninstall --user 0 com.lge.networksettings
pm uninstall --user 0 com.lge.briefing
pm uninstall --user 0 com.lge.upsell
pm uninstall --user 0 com.google.android.ims
pm uninstall --user 0 com.lge.wfcsettings
pm uninstall --user 0 com.lge.wfcservice
pm uninstall --user 0 com.lge.wfcprovider
pm uninstall --user 0 com.lge.wfcconnectivity
pm uninstall --user 0 com.lge.ims
pm uninstall --user 0 com.lge.ims.nodeprovider
pm uninstall --user 0 com.quicinc.cne.CNEService
pm uninstall --user 0 com.android.providers.blockednumber
pm uninstall --user 0 com.lge.cloudhub
pm uninstall --user 0 com.lge.lgdmfcm
echo "Removing Root Checkers"
pm uninstall --user 0 com.lge.srtc
pm uninstall --user 0 com.lge.rctprovider
so that's some kind of android setup issue, thanks for letting us know
I wanted to include flycast into Lemuroid and I stumbled upon this very issue. I was almost sure it was related to the ashmem changes in API 29 (https://developer.android.com/about/versions/10/behavior-changes-10#shared-memory), but even after using the new ashmem APIs, it's still crashing.
I'm able to reproduce it consistently and it looks like an issue with the dynamic recompiler:
art_sigsegv_fault 0x00000070ce193864
art::FaultManager::HandleFault(int, siginfo*, void*) 0x00000070ce193d68
___lldb_unnamed_symbol24$$app_process64 0x00000056c1cc6ed0
<unknown> 0x000000715517e63c
::ngen_mainloop(void *) rec_arm64.cpp:79
This is on a Xiaomi 9T Pro, Android 10 using LibretroDroid with targetSdkVersion set to 29. Flycast runs through the OpenGL ES renderer with every option is set to default except "reicast_threaded_rendering" which is set to "disabled".
Sadly I'm not really knowledgeable when it comes to dynamic recompilers, but if you need help debugging it count me in.
Flycast crashes and forces Retroarch to close on game loading when using Vulkan video drivers. I've tried all 3 of Flycast's Alpha Sorting options to no avail. Game loads without issues using opengl drivers.
Phone: LG V40 ThinQ Chipset: Snapdragon 845 OS: Android 9, kernel 4.9.112, July 1 2020 security patch. (This is the latest build offered by Sprint) RetroArch: 1.9.0_GIT, Git Version: 6388872
Log: