rafaelvcaetano / melonDS-android

Android port of melonDS
GNU General Public License v3.0
728 stars 45 forks source link

DSi Camera crash on Redmi 9T with AOSPA 13 #1288

Open andrigamerita opened 3 months ago

andrigamerita commented 3 months ago

Hi, I was testing the DSi camera feature of this emulator and sadly noticed that it refuses to work in any way with the real cameras on my smartphone:

Problem: The app will crash (the first time, it just goes back to the ROM selection menu; in a second time, it pops up the Android system error box saying the app keeps crashing) every time I go into the shooting section of the DSi camera app, with the default setting of using the device's real cameras. I'm using an european DSi firmware dump, in case that matters.

Steps to reproduce:

  1. Open the melonDS app and boot into the DSi system firmware menu
  2. Open the DSi camera app and go to the shooting section
  3. Notice a really slight flash of green in the camera interface, and that the icon indicating an app is accessing the camera appears in the status bar
  4. Notice how then immediately the melonDS app crashes as described above

Here are the logcat dumps from my device, made by respectively starting the release version of the app in portrait mode, doing the reproduction steps, then after it crashes rotating the device in landscape and redoing the steps, then doing the same thing again with the nightly version of the app:

  1. 1-release-portrait.txt
  2. 2-release-landscape.txt
  3. 3-nightly-portrait.txt
  4. 4-nightly-landscape.txt

On a side note, I tested the nightly on my Samsung Galaxy Tab S6 Lite running Android 12, OneUI 4.1, and it works perfectly on there, so that's really nice and promising! Thank you for all the work up until now!