Coder Social home page Coder Social logo

PCSX core crashes on rotate about ludere HOT 27 OPEN

tytydraco avatar tytydraco commented on May 17, 2024
PCSX core crashes on rotate

from ludere.

Comments (27)

tytydraco avatar tytydraco commented on May 17, 2024 1

In the original upload, the config was done through the gradle variables. This meant we were allowed to set the orientation through the Android manifest file. Now, since we use a config from the resources folder, the orientation is set on app start.

Which core are you referencing? I did an update last night that fixed a crashing issue on snes9x.

from ludere.

tytydraco avatar tytydraco commented on May 17, 2024 1

Yknow what, I just noticed there's a bug: I forgot to set the system directory to the new location! That means the bios was never getting detected. Sadly even after fixing this issue it still crashes on rotating with PCSX :(

I'll continue to work on this.

from ludere.

tytydraco avatar tytydraco commented on May 17, 2024 1

By the way, just wanted to say I really appreciate the testing <3

from ludere.

redthista avatar redthista commented on May 17, 2024 1

Hey man, I will try get an answer this week for you :)

from ludere.

redthista avatar redthista commented on May 17, 2024

It was the https://docs.libretro.com/library/pcsx_rearmed/ with the core option: pcsx_rearmed_neon_enhancement_no_main=enabled

from ludere.

tytydraco avatar tytydraco commented on May 17, 2024

I think the better approach is to try and fix this issue from the source instead of putting a bandaid on it with locking rotation. Have you tried bundling a BIOS for the PCSX core in the system folder? The system folder acts exactly like RetroArch's, so follow the PCSX instructions for adding a BIOS and see if that fixed the issue.

from ludere.

redthista avatar redthista commented on May 17, 2024

Good point, I will try with the bios and get back to you.

from ludere.

redthista avatar redthista commented on May 17, 2024

i have tried this with a few different roms and with bios and all of them crash on rotate.

from ludere.

tytydraco avatar tytydraco commented on May 17, 2024

Thanks for taking the time to test. Could you possibly try another core besides PCSX? I wonder if there are other PSX emulators in libretro that don't have this issue. If I recall correctly, even retroarch crashed on exiting the core with PCSX. I'll see if I can find a way to not reinitialize the core on rotate or at least catch the exception.

from ludere.

redthista avatar redthista commented on May 17, 2024

No problem man, happy to help! and I'm struggling to find the Beetle PSX HW core in and of the folders in: http://buildbot.libretro.com/nightly/android/latest/

I can get it in the retro arch android app.

from ludere.

tytydraco avatar tytydraco commented on May 17, 2024

I think it goes by mednafen_psx and mednafen_psx_hw, not sure why though. Give that a shot :D

from ludere.

redthista avatar redthista commented on May 17, 2024

I haven't been able to get them working, seems they rely on the bios more than pcsx. but i have used the bios files i have and cant get the game to start.

from ludere.

tytydraco avatar tytydraco commented on May 17, 2024

@MrThista Would you be able to confirm that the bug still indeed occurs on the latest tag? I did a large number of changes that could have perhaps fixed this issue.

from ludere.

tytydraco avatar tytydraco commented on May 17, 2024

Awesome, thanks! I'm speaking with the LibRetroDroid developer to try to resolve this as well, as for my device, the PCSX and Beetle cores both crash, even in the sample app. It's super helpful to have multiple testers :D

from ludere.

redthista avatar redthista commented on May 17, 2024

Hey, tried to run another build and I cant work out where to place the rom. Also where have the options for R1 and R2 gone from the config?

from ludere.

tytydraco avatar tytydraco commented on May 17, 2024

Place it here: app/src/main/res/raw/rom

The L2 and R2 buttons are removed temporarily as I am working on improving the on-screen controls.

from ludere.

redthista avatar redthista commented on May 17, 2024

can I manually add the buttons back in? and into a folder called rom or in the raw folder? and do you no longer specify the rom name in the config ? :)

from ludere.

tytydraco avatar tytydraco commented on May 17, 2024

You can internally revert this commit: c1c6b48

And you want to put it in a folder called raw, but the file is called rom. I'll specify this in the README

from ludere.

redthista avatar redthista commented on May 17, 2024

and rom.[filetype] or rom with no file type?

from ludere.

tytydraco avatar tytydraco commented on May 17, 2024

Just rom. The reason is that using this method lets Ludere load the ROM into RAM directly from the APK so we don't need to extract it internally.

from ludere.

redthista avatar redthista commented on May 17, 2024

Got an error trying to build: Rom is about 500mb

Task :app:mergeReleaseResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeReleaseResources'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-4.1.0-6503028-windows Daemon #0: Compile 'W:\Android Dev\ROMAPK\PS1 - Diskworld Noir\app\src\main\res\raw\rom' timed out, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

from ludere.

tytydraco avatar tytydraco commented on May 17, 2024

Interesting, how large is the ROM? What happens if you try instead to just put an empty file called "rom" instead of the real file?

from ludere.

redthista avatar redthista commented on May 17, 2024

500mb and with a blank romfile its a success.

from ludere.

tytydraco avatar tytydraco commented on May 17, 2024

Looks like it's an issue with the ROM size; Android Studio's heap can't package it into the APK. This is one of the reasons I was considering saving the analog controls for the Standalone branch of Ludere. You can try with a smaller ROM file, or I can let you know when the standalone branch is ready. I appreciate your help by the way <3

from ludere.

redthista avatar redthista commented on May 17, 2024

I was able to package a 1.6gb rom previously that worked. and sure man keep me posted :P. I appreciate all your work on the app. some great stuff man.

from ludere.

tytydraco avatar tytydraco commented on May 17, 2024

The LibretroDroid developer told me it's due to loading the file as bytes instead of directly from a file. I'm going to need to workaround this by copying a temporary cached rom to the device.

from ludere.

redthista avatar redthista commented on May 17, 2024

Let me know when its ready to test :)

from ludere.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.