Project

General

Profile

Actions

Emulator Issues #13237

closed

Opening emulator using Android file intent very often crashes

Added by lvonasek over 1 year ago. Updated over 1 year ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
Android
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:
5.0-19459

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

crash.txt (51.3 KB) crash.txt lvonasek, 04/21/2023 06:46 PM
Actions #1

Updated by lvonasek over 1 year ago

Actions #2

Updated by pokechu22 over 1 year ago

  • Operating system FreeBSD added
  • Operating system deleted (N/A)
Actions #3

Updated by pokechu22 over 1 year ago

  • Operating system Android added
  • Operating system deleted (FreeBSD)
Actions #4

Updated by JosJuice over 1 year 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

Actions #5

Updated by JosJuice over 1 year ago

  • Status changed from Fix pending to Fixed
  • Fixed in set to 5.0-19459
Actions

Also available in: Atom PDF