Emulator Issues #13237
closedOpening emulator using Android file intent very often crashes
0%
Description
I open the emulator like this:
Intent launcher = context.getPackageManager().getLaunchIntentForPackage(EMULATOR_PACKAGE);
launcher.putExtra("AutoStartFiles", filePaths);
context.getApplicationContext().startActivity(launcher);
as a result the emulator crashes in more than 50% of the cases:
A/olphinemu.debu: java_vm_ext.cc:570] JNI DETECTED ERROR IN APPLICATION: can't call int android.view.InputDevice.getId() on null object
A/olphinemu.debu: java_vm_ext.cc:570] in call to CallIntMethodV
A/olphinemu.debu: java_vm_ext.cc:570] from boolean org.dolphinemu.dolphinemu.features.input.model.ControllerInterface.dispatchGenericMotionEvent(android.view.MotionEvent)
Files
Updated by JosJuice 12 months ago
- Status changed from New to Fix pending
I'm not sure why starting Dolphin using an intent would cause this to happen, but this PR should hopefully get rid of the crash: https://github.com/dolphin-emu/dolphin/pull/11819