Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

[Solved] mupen64plus crashes back to EmulationStation (x86 system)



  • When trying to run N64 it crashes back to ES with one of the mupen64plus emulators.
    With lr-mupen64plus there is no problem at all.

    Running Ubuntu 18.04.2 with the latest RetroPie.

    runcommand.log:

    Parameters:
    Executing: /opt/retropie/emulators/mupen64plus/bin/mupen64plus.sh mupen64plus-video-GLideN64 "/home/retropie/RetroPie/roms/n64/Super Mario 64 (USA).z64"
    /opt/retropie/emulators/mupen64plus/bin/mupen64plus.sh: line 448:  1778 Floating point exception(core dumped) SDL_AUDIODRIVER=pulse "$rootdir/emulators/mupen64plus/bin/mupen64plus" --noosd --fullscreen --rsp ${RSP_PLUGIN}.so --gfx ${VIDEO_PLUGIN}.so --audio mupen64plus-audio-sdl.so --configdir "$configdir/n64" --datadir "$configdir/n64" "$ROM"
    

    Is it because I'm using ALSA and not Pulse for Audio?
    If so is there a way to change mupen64plus to use Alsa?


  • Global Moderator

    Try un-zipping the ROM or use a .n64 ROM.



  • I'm not using zipped files, I unzipped them.
    These are verified roms...
    z64 should be compatible as per wiki.

    I can try .n64 when I get back to my machine.
    But I don't think that's the issue to be honest.



  • I don't want to sound rude but I really think the z64 file is not the problem.
    As far as I know z64 is supported with all emulators and is the prefered extension for N64 games.

    No-Intro and other rom rips are all Big Endian rips:
    Little Endian (.n64)
    Byte Swapped (.v64)
    Big Endian (.z64)

    So the error and crash should be coming from something different.


  • Global Moderator

    @Panja said in mupen64plus crashes back to EmulationStation (x86 system):

    I don't want to sound rude but I really think the z64 file is not the problem.

    You're right, for some reason I thought .z64 is a zipped .n64. I tested initially with the .n64 ROM version and didn't get an errors. But I also got a .z64 - validated it against the No-Intro .dat file - and I get no errors also. The game starts the same message shows in the log file for both ROMs.

    Executing: /opt/retropie/emulators/mupen64plus/bin/mupen64plus.sh mupen64plus-video-glide64mk2 "/home/pi/RetroPie/roms/n64/Super Mario 64 (U) [!].z64"
     __  __                         __   _  _   ____  _
    |  \/  |_   _ _ __   ___ _ __  / /_ | || | |  _ \| |_   _ ___
    | |\/| | | | | '_ \ / _ \ '_ \| '_ \| || |_| |_) | | | | / __|
    | |  | | |_| | |_) |  __/ | | | (_) |__   _|  __/| | |_| \__ \
    |_|  |_|\__,_| .__/ \___|_| |_|\___/   |_| |_|   |_|\__,_|___/
                 |_|         https://mupen64plus.org/
    Mupen64Plus Console User-Interface Version 2.5.9
    
    UI-Console: attached to core library 'Mupen64Plus Core' version 2.5.9
    UI-Console:             Includes support for Dynamic Recompiler.
    Core: Using full mem base
    Core: Goodname: Super Mario 64 (U) [!]
    Core: Name: SUPER MARIO 64
    Core: MD5: 20B854B239203BAF6C961B850A4A51A2
    Core: CRC: 635A2BFF 8B022326
    Core: Imagetype: .z64 (native)
    Core: Rom size: 8388608 bytes (or 8 Mb or 64 Megabits)
    Core: Version: 1444
    Core: Manufacturer: Nintendo
    Core: Country: USA
    ....
    

    Do all your N64 Roms behave similarly or it's just one (Super Mario 64) ?



  • Thanks for checking!
    It's all roms I've tried (around 6).



  • Indeed it's the problem I'm using ALSA instead of Pulse.
    Edited /etc/pulse/client.conf and changed back to ;autospawn = yes
    Now mupen64plus runs.

    The thing is I need to disable Pulse on my machine because it's not working properly.
    After a while playing and changing emulators the sounds begins to lag behind.
    Running only ALSA fixed this problem for me.

    Is there a way I can run mupen64plus with Alsa instead of Pulse?


  • Global Moderator

    I can see 2 options you can try:



  • @mitu

    I’ve tried to make it work and did not succeed.
    I can give that link a try though.

    The second option is maybe better for me.
    Though when changing the file will it be overwritten again if I do a RetroPie update?


  • Global Moderator

    @Panja said in mupen64plus crashes back to EmulationStation (x86 system):

    Though when changing the file will it be overwritten again if I do a RetroPie update?

    Yes, when mupen64plus will be updated, the file will be overwritten.



  • @mitu

    Ok. I’ll have to make a script than to change it to Alsa.

    But I’ll give Pulse another try with the link provided first.

    Thanks!



  • @mitu

    Quick update.
    Changing line 447 in /opt/retropie/emulators/mupen64plus/bin/mupen64plus.sh fixed my problem. I have changed pulse to alsa.

    Further more I've created a simple script, named n64audio to run at start/boot.
    In this script:

    #!/bin/sh
    
    sed -i 's/pulse/alsa/g' /opt/retropie/emulators/mupen64plus/bin/mupen64plus.sh
    

    Made the script executable sudo chmod +x n64audio
    After that sudo crontab -e
    And added the line @reboot /home/retropie/n64audio

    Now after every reboot pulse will be changed to alsa in the file /opt/retropie/emulators/mupen64plus/bin/mupen64plus.sh , if the line pulse exists.

    So if I update RetroPie and mupen64plus gets updated and overwrites my file (and put pulse back in to play) it will be overwritten on the next reboot.

    Again, thanks for all your help!



Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.