Project

General

Profile

Actions

Emulator Issues #10287

closed

Android: Crash in java when selecting "Video Backend"

Added by JonnyH almost 7 years ago. Updated almost 7 years ago.

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

0%

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

Description

Game Name?

No game - the settings UI

What's the problem? Describe what went wrong.

Crash window pops up when selecting any video backend - backtrace from logcat:

05-17 16:07:15.207 2199 2199 D AndroidRuntime: Shutting down VM
05-17 16:07:15.207 2199 2199 E AndroidRuntime: FATAL EXCEPTION: main
05-17 16:07:15.207 2199 2199 E AndroidRuntime: Process: org.dolphinemu.dolphinemu.debug, PID: 2199
05-17 16:07:15.207 2199 2199 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.dolphinemu.dolphinemu.model.settings.SettingSection.putSetting(org.dolphinemu.dolphinemu.model.settings.Setting)' on a null object reference
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at org.dolphinemu.dolphinemu.ui.settings.SettingsFragmentPresenter.putSetting(SettingsFragmentPresenter.java:85)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at org.dolphinemu.dolphinemu.ui.settings.SettingsFragment.putSetting(SettingsFragment.java:150)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at org.dolphinemu.dolphinemu.ui.settings.SettingsAdapter.putVideoBackendSetting(SettingsAdapter.java:410)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at org.dolphinemu.dolphinemu.ui.settings.SettingsAdapter.onClick(SettingsAdapter.java:271)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at android.support.v7.app.AlertController$AlertParams$3.onItemClick(AlertController.java:1045)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at android.widget.AdapterView.performItemClick(AdapterView.java:310)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at android.widget.AbsListView.performItemClick(AbsListView.java:1164)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at android.widget.AbsListView$PerformClick.run(AbsListView.java:3132)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at android.widget.AbsListView$3.run(AbsListView.java:4047)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6121)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
05-17 16:07:15.207 2199 2199 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
05-17 16:07:15.208 513 1022 W ActivityManager: Force finishing activity org.dolphinemu.dolphinemu.debug/org.dolphinemu.dolphinemu.ui.settings.SettingsActivity

What steps will reproduce the problem?

Press the 'graphics settings' button, select 'video backend', select 'software' (or any other), crash

Which versions of Dolphin did you test on? Does using an older version of Dolphin solve your issue? If yes, which versions of Dolphin used to work?

All of "dolphin-master-5.0-3768.apk" from the nightly autobuild and local built dolphin-5.0-3755-debug and dolphin-5.0-3768-debug fail

What are your PC specifications? (CPU, GPU, Operating System, more)

Fails on both nexus 5x (arm64 w/android 7.1.2) and an x86_64 aosp build (7.1.2 too) with the same APKs

Is there any other relevant information? (e.g. logs, screenshots,
configuration files)

[Anything else here]

Actions #1

Updated by JonnyH almost 7 years ago

This doesn't happen if you create a new /storage/emulated/0/dolphin-emu/Config/Dolphin.ini with the contents:

[Core]
GFXBackend = OGL

After that it seems to correctly select the backend, and the corresponding setting correctly stored in the Dolphin.ini file.

Actions #2

Updated by JosJuice almost 7 years ago

  • Operating system Android added
  • Operating system deleted (N/A)

Thanks for the well made issue report.

Actions #3

Updated by JosJuice almost 7 years ago

  • Status changed from New to Fix pending
  • Regression changed from No to Yes
Actions #4

Updated by JosJuice almost 7 years ago

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

Should be fixed in 5.0-3770 on git, but there's reportedly a problem with the Android buildbot right now so that you won't get the latest changes if you try to download the 5.0-3770 APK.

Actions

Also available in: Atom PDF