Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DllNotFoundException: libbizhash when opening any rom on Linux AArch64 #3687

Closed
Filippogigante opened this issue Jun 18, 2023 · 10 comments
Closed

Comments

@Filippogigante
Copy link

Summary

I am trying to load a basic Fire Red ROM on BizHawk 2.9.1 on my ubuntu virtual machine. It throws this error when i load the ROM .

Output

Screenshot 2023-06-18 alle 19 07 39

Host env.

  • BizHawk 2.9.1 ; MacOS Ventura 13.3 (Host of the virtual machine) , Ubuntu 22.04.2 LTS (virtual machine where i'm running the emulator)
@YoshiRulz
Copy link
Member

YoshiRulz commented Jun 18, 2023

Can you confirm the file (libbizhash.so) exists in the dll dir?

@Filippogigante
Copy link
Author

Filippogigante commented Jun 18, 2023

Can you confirm the file (libbizhash.so) exists in the dll dir?

I confirm it exists in the dll dir, Yoshi.
The size of the ('libbizhash.so') file is 26.7 kB.

@YoshiRulz
Copy link
Member

Can you try launching EmuHawk from the terminal as BIZHAWK_INT_SYSLIB_PATH="/usr/lib/x86_64-linux-gnu" LD_LIBRARY_PATH="$PWD/dll:$PWD:/usr/lib/x86_64-linux-gnu" mono EmuHawk.exe?

@Filippogigante
Copy link
Author

Filippogigante commented Jun 18, 2023

Failed to load module "canberra-gtk-module"
Using OpenTK 3 for host input (keyboard + gamepads)
[ALSOFT] (WW) Failed to open playback device: Could not open /dev/dsp: No such file or directory
[ALSOFT] (WW) Error generated on device (nil), code 0xa004
[ALSOFT] (WW) Error generated on device (nil), code 0xa001
mono: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
[xcb] Unknown sequence number while processing reply
[xcb] You called XInitThreads, this is not your fault
[xcb] Aborting, sorry about that.
mono: ../../src/xcb_io.c:730: _XReply: Assertion `!xcb_xlib_threads_sequence_lost' failed.

=================================================================
	Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

@Filippogigante
Copy link
Author

Then it prints a lot of debugging lines, i can send them if you want.

@YoshiRulz
Copy link
Member

I believe that's due to missing drivers, but you clearly have them, and they should be under /usr/lib/x86_64-linux-gnu/dri. Check where virtio_gpu_dri.so is, and add it to LD_LIBRARY_PATH if necessary.

@Filippogigante
Copy link
Author

I don't really know how to do this. I tried setting LD_LIBRARY_PATH to /usr/lib/aarch64-linux-gnu/dri path and then executing the command : BIZHAWK_INT_SYSLIB_PATH="/usr/lib/x86_64-linux-gnu" LD_LIBRARY_PATH="$PWD/dll:$PWD:/usr/lib/x86_64-linux-gnu" mono EmuHawk.exe , it gave me less errors in stdout but still it cannot load the rom and prints the same error when i try executing the ROM.

@YoshiRulz
Copy link
Member

Just checking—is this an AArch64 VM? BizHawk is for x86_64 only (it's in the filename). The managed parts may run in Mono on ARM, but none of us have ever tested it, and we've had similar reports from someone who did test it. A quick search brings up the QEMU-based UTM for virtualising x86_64 on Apple Silicon Macs.

Going back to the start, please run MONO_LOG_LEVEL=debug MONO_LOG_MASK=dll ./EmuHawkMono.sh and upload EmuHawkMono_*.txt as Gists. That will clarify exactly what's happening w.r.t. lib loading.

@Filippogigante
Copy link
Author

Yes i'm running it on an AArch64 VM, i just went full retard mode and didn't see x86_64 at all. Sorry for the inconvenience but i am not used to do this kind of stuff. I don't think i will emulate x86_64 as it will get super slow. Thank you anyways for your fast replies.

@YoshiRulz YoshiRulz changed the title Running BizHawk emulator on a Ubuntu Virtual Machine using a MacOs host cannot load ROMS DllNotFoundException: libbizhash when opening any rom on Linux AArch64 Jan 29, 2024
@CasualPokePlayer
Copy link
Member

Note for non-x86_64 users: cd4e58e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants