TASEmulators / BizHawk

BizHawk is a multi-system emulator written in C#. BizHawk provides nice features for casual gamers such as full screen, and joypad support in addition to full rerecording and debugging tools for all system cores.
http://tasvideos.org/BizHawk.html
Other
2.2k stars 385 forks source link

System.NullReferenceException when creating a LUA script or editing one #3712

Closed AXDOOMER closed 1 year ago

AXDOOMER commented 1 year ago

Summary

Issue 1: In the Lua console, click "New LUA script", save the script and it will crash with an exception. Issue 2: In the Lua console, click "Open script". Once it's opened, click "edit script" and it will crash with an exception.

You don't have to put anything in the script. Just use the default one created in issue 1 for issue 2.

Output

When saving the script (issue 1):

System.NullReferenceException: Object reference not set to an instance of an object
  at BizHawk.Client.EmuHawk.LuaLibraries.Close () [0x00089] in <828628a610e44fa287bdfc7090f08a57>:0 
  at BizHawk.Client.EmuHawk.LuaConsole.<.ctor>b__30_0 (System.Object o, System.ComponentModel.CancelEventArgs e) [0x0003f] in <828628a610e44fa287bdfc7090f08a57>:0 
  at System.Windows.Forms.Form.OnClosing (System.ComponentModel.CancelEventArgs e) [0x0001c] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Form.FireClosingEvents (System.Windows.Forms.CloseReason reason, System.Boolean cancel) [0x00007] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.FireClosingEvents(System.Windows.Forms.CloseReason,bool)
  at System.Windows.Forms.Application.Exit (System.ComponentModel.CancelEventArgs e) [0x00035] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Application.Exit () [0x00005] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x0006e] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.NativeWindow.OnThreadException (System.Exception e) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x001d7] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.XplatUIX11.DoEvents () [0x00080] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.XplatUI.DoEvents () [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Application.DoEvents () [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at BizHawk.Client.EmuHawk.MainForm.CheckMessages () [0x00000] in <828628a610e44fa287bdfc7090f08a57>:0 
  at BizHawk.Client.EmuHawk.MainForm.ProgramRunLoop () [0x001e4] in <828628a610e44fa287bdfc7090f08a57>:0 
  at (wrapper remoting-invoke-with-check) BizHawk.Client.EmuHawk.MainForm.ProgramRunLoop()
  at BizHawk.Client.EmuHawk.Program.SubMain (System.String[] args) [0x0038c] in <828628a610e44fa287bdfc7090f08a57>:0 

When editing a script (issue 2):

System.NullReferenceException: Object reference not set to an instance of an object
  at BizHawk.Client.EmuHawk.LuaLibraries.Close () [0x00089] in <828628a610e44fa287bdfc7090f08a57>:0 
  at BizHawk.Client.EmuHawk.LuaConsole.<.ctor>b__30_0 (System.Object o, System.ComponentModel.CancelEventArgs e) [0x0003f] in <828628a610e44fa287bdfc7090f08a57>:0 
  at System.Windows.Forms.Form.OnClosing (System.ComponentModel.CancelEventArgs e) [0x0001c] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Form.FireClosingEvents (System.Windows.Forms.CloseReason reason, System.Boolean cancel) [0x00007] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.FireClosingEvents(System.Windows.Forms.CloseReason,bool)
  at System.Windows.Forms.Application.Exit (System.ComponentModel.CancelEventArgs e) [0x00035] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Application.Exit () [0x00005] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x0006e] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.NativeWindow.OnThreadException (System.Exception e) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x001d7] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.XplatUIX11.DoEvents () [0x00080] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.XplatUI.DoEvents () [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Application.DoEvents () [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at BizHawk.Client.EmuHawk.MainForm.CheckMessages () [0x00000] in <828628a610e44fa287bdfc7090f08a57>:0 
  at BizHawk.Client.EmuHawk.MainForm.ProgramRunLoop () [0x001e4] in <828628a610e44fa287bdfc7090f08a57>:0 
  at (wrapper remoting-invoke-with-check) BizHawk.Client.EmuHawk.MainForm.ProgramRunLoop()
  at BizHawk.Client.EmuHawk.Program.SubMain (System.String[] args) [0x0038c] in <828628a610e44fa287bdfc7090f08a57>:0 

Host env.

BizHawk 2.9.1, Linux 5.15.0 (Ubuntu 22.04.2 LTS); Intel CPU / Nvidia GPU

YoshiRulz commented 1 year ago

Is Lua installed? lua -v or lua5.4 -v should print "Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio".

AXDOOMER commented 1 year ago

Yes. I can run my Lua scripts. It's just that BizHawk has this problem when creating a new fille or editing a script that's already open.

> lua -v
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> lua5.4 -v
Lua 5.4.4  Copyright (C) 1994-2022 Lua.org, PUC-Rio
CasualPokePlayer commented 1 year ago

The NREs here are red herrings and indicate a deeper problem hidden somewhere. The stack trace only indicates NREs occuring on the LuaLibraries Close() function which might just happen due to some weird shutdown state (typically due to some crash in its ctor? but that can't be right here, so odd).

AXDOOMER commented 1 year ago

There are other exceptions that occur, for example, when clicking the two first menu items here:

image

Crash on OnlineHelpMenuItem_Click

cat /home/USER/BizHawk/EmuHawkMono_last*.txt
Killed
Using OpenTK 3 for host input (keyboard + gamepads)
Connected new gamepad X1: 03000000-4c05-0000-6802-000011810000 PS3 Controller
System.ComponentModel.Win32Exception (0x80004005): Cannot find the specified file
  at System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) [0x00129] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 
  at System.Diagnostics.Process.Start () [0x00038] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x0001e] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 
  at System.Diagnostics.Process.Start (System.String fileName) [0x00006] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 
  at BizHawk.Client.EmuHawk.MainForm.OnlineHelpMenuItem_Click (System.Object sender, System.EventArgs e) [0x00000] in <828628a610e44fa287bdfc7090f08a57>:0 
  at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x0001c] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e) [0x000a5] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.ToolStripMenuItem.HandleClick (System.Int32 mouse_clicks, System.EventArgs e) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00061] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem.FireEvent(System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
  at System.Windows.Forms.ToolStrip.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00057] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.ToolStripDropDown.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x0007e] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0016f] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.ToolStripDropDown.WndProc (System.Windows.Forms.Message& m) [0x0001a] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x0008e] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
BizHawk has completed its shutdown routines, killing process...

Crash on ForumsMenuItem_Click

cat /home/ax/BizHawk/EmuHawkMono_last*.txt
Could not set X locale modifiers
Killed
Using OpenTK 3 for host input (keyboard + gamepads)
Connected new gamepad X1: 03000000-4c05-0000-6802-000011810000 PS3 Controller
System.ComponentModel.Win32Exception (0x80004005): Cannot find the specified file
  at System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) [0x00129] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 
  at System.Diagnostics.Process.Start () [0x00038] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x0001e] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 
  at System.Diagnostics.Process.Start (System.String fileName) [0x00006] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 
  at BizHawk.Client.EmuHawk.MainForm.ForumsMenuItem_Click (System.Object sender, System.EventArgs e) [0x00000] in <828628a610e44fa287bdfc7090f08a57>:0 
  at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x0001c] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e) [0x000a5] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.ToolStripMenuItem.HandleClick (System.Int32 mouse_clicks, System.EventArgs e) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00061] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem.FireEvent(System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
  at System.Windows.Forms.ToolStrip.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00057] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.ToolStripDropDown.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x0007e] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0016f] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.ToolStripDropDown.WndProc (System.Windows.Forms.Message& m) [0x0001a] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x0008e] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
BizHawk has completed its shutdown routines, killing process...

I'm wondering if there are issues that were introduced because it was not meant to run on this mono version (e.g. could be that it was tested in Manjaro or Arch which have later versions). IMO file access should be pretty stable across versions.

mono --version
Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-3.2 Wed Jun 30 05:34:49 UTC 2021)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    Interpreter:   yes
    LLVM:          supported, not enabled.
    Suspend:       hybrid
    GC:            sgen (concurrent by default)
CasualPokePlayer commented 1 year ago

If Process.Start is just broken on your mono version that would explain the original 2 crashes, as those actions have code that does Process.Start.

CasualPokePlayer commented 1 year ago

Most likely just due to this: https://github.com/mono/mono/issues/17204

CasualPokePlayer commented 1 year ago

That version of mono would predate the fix in that mono issue and so is affected by it. Nothing we can do here, you will need to just have a more up to date mono in order to use this functionality.

YoshiRulz commented 1 year ago

Agreed, I'm not willing to debug with outdated Mono. That may seem a bit harsh when it was only 3 years ago, but then point-release distros like Ubuntu ship an LTS version every 2 years. If the newer Mono isn't packaged for your distro, you could install Nix and download the world to get a working copy, but for most people a release upgrade is the better option.

Nuxxian commented 10 months ago

I am having this issue on Linux Mint, with lua 5.4, mono 6.12 and latest version of Bizhawk ...

System.NullReferenceException: Object reference not set to an instance of an object
  at NLua.LuaState..ctor (System.Boolean openLibs) [0x00011] in <9897be86db534ba3abd03ea9ff5a9218>:0 
  at NLua.Lua..ctor (System.Boolean openLibs) [0x00011] in <9897be86db534ba3abd03ea9ff5a9218>:0 
  at BizHawk.Client.EmuHawk.LuaLibraries..ctor (BizHawk.Client.Common.LuaFileList scriptList, BizHawk.Client.Common.LuaFunctionList registeredFuncList, BizHawk.Emulation.Common.IEmulatorServiceProvider serviceProvider, BizHawk.Client.EmuHawk.MainForm mainForm, BizHawk.Client.Common.DisplayManagerBase displayManager, BizHawk.Client.Common.InputManager inputManager, BizHawk.Client.Common.Config config, BizHawk.Emulation.Common.IEmulator emulator, BizHawk.Emulation.Common.IGameInfo game) [0x00000] in <828628a610e44fa287bdfc7090f08a57>:0 
  at BizHawk.Client.EmuHawk.LuaConsole.Restart () [0x00137] in <828628a610e44fa287bdfc7090f08a57>:0 
  at BizHawk.Client.EmuHawk.ToolManager.Load[T] (System.Boolean focus, System.String toolPath) [0x0013a] in <828628a610e44fa287bdfc7090f08a57>:0 
  at BizHawk.Client.EmuHawk.MainForm.OpenLuaConsole () [0x00000] in <828628a610e44fa287bdfc7090f08a57>:0 
  at BizHawk.Client.EmuHawk.MainForm.LuaConsoleMenuItem_Click (System.Object sender, System.EventArgs e) [0x00000] in <828628a610e44fa287bdfc7090f08a57>:0 
  at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00019] in <25c2bdf9d79a43a599eb46bd15cd77fb>:0 
  at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e) [0x00090] in <25c2bdf9d79a43a599eb46bd15cd77fb>:0 
  at System.Windows.Forms.ToolStripMenuItem.HandleClick (System.Int32 mouse_clicks, System.EventArgs e) [0x00000] in <25c2bdf9d79a43a599eb46bd15cd77fb>:0 
  at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00054] in <25c2bdf9d79a43a599eb46bd15cd77fb>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem.FireEvent(System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
  at System.Windows.Forms.ToolStrip.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00048] in <25c2bdf9d79a43a599eb46bd15cd77fb>:0 
  at System.Windows.Forms.ToolStripDropDown.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] in <25c2bdf9d79a43a599eb46bd15cd77fb>:0 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00078] in <25c2bdf9d79a43a599eb46bd15cd77fb>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x001b4] in <25c2bdf9d79a43a599eb46bd15cd77fb>:0 
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <25c2bdf9d79a43a599eb46bd15cd77fb>:0 
  at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <25c2bdf9d79a43a599eb46bd15cd77fb>:0 
  at System.Windows.Forms.ToolStripDropDown.WndProc (System.Windows.Forms.Message& m) [0x00017] in <25c2bdf9d79a43a599eb46bd15cd77fb>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <25c2bdf9d79a43a599eb46bd15cd77fb>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <25c2bdf9d79a43a599eb46bd15cd77fb>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <25c2bdf9d79a43a599eb46bd15cd77fb>:0 
CasualPokePlayer commented 10 months ago

Please do ldconfig -p | grep lua and post the output.

Nuxxian commented 10 months ago
ldconfig -p | grep lua
    liblua5.3-luv.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblua5.3-luv.so.0
    liblua5.2.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblua5.2.so.0
    liblua5.2-luv.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblua5.2-luv.so.0
    liblua5.2-c++.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblua5.2-c++.so.0
    liblua5.1-luv.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblua5.1-luv.so.0
    libluajit-5.1.so.2 (libc6,x86-64) => /lib/x86_64-linux-gnu/libluajit-5.1.so.2
    liblua-5.4.so (libc6,x86-64) => /lib/x86_64-linux-gnu/liblua-5.4.so
CasualPokePlayer commented 10 months ago

Try the latest dev build.

Nuxxian commented 10 months ago

Do i download master branch and copy the Assets folder to my exisiting Bizhawk folder? Because that did not do it.

CasualPokePlayer commented 10 months ago

No, get a dev build. It is linked in the README.

Nuxxian commented 10 months ago

image

but lua is definitly installed

CasualPokePlayer commented 10 months ago

Strange, the liblua-5.4.so should just be able to be loaded up fine...

Nuxxian commented 10 months ago

Yeah the previous error doesnt even pop up

CasualPokePlayer commented 10 months ago

The previous error is just a generic exception which hides the real exception (the real exception in this case has nothing to do with original issue in this thread). The previous error for you was just caused by native lua unable to be loaded, and this more proper message box is again due to native lua unable to be loaded.

Nuxxian commented 10 months ago

Its weird that it is working on my fedora build, where i installed lua with dnf. Here i am using apt and it is installing 5.4.4 maybe thats the problem

YoshiRulz commented 10 months ago

Could you run MONO_LOG_LEVEL=debug MONO_LOG_MASK=dll ./EmuHawkMono.sh, open the Lua Console, and upload the EmuHawkMono_laststdout.txt file when you're done?

Nuxxian commented 10 months ago

2 recurring errors:

Mono: DllImport error loading library '/usr/lib/libdl.so.2.so': '/usr/lib/libdl.so.2.so: cannot open shared object file: No such file or directory'.

Mono: DllImport error loading library '/usr/lib/libc.so.6.so': '/usr/lib/libc.so.6.so: cannot open shared object file: No such file or directory'.

I did install glibc

CasualPokePlayer commented 10 months ago

Please just upload the entire stdout file. Those errors you mention sound benign if anything.

Nuxxian commented 10 months ago

EmuHawkMono_laststdout.txt

My apology. I noticed that there is no extra output when i click on the lua console button

CasualPokePlayer commented 10 months ago

What's output for lsb_release -i?

Nuxxian commented 10 months ago

Linux mint

CasualPokePlayer commented 10 months ago

What does lsb_release -i | head -n1 | cut -c17- | tr A-Z a-z output? It should be exactly linuxmint