Skip to content

wxLua crashes host app #143

@DBM89

Description

@DBM89

I passed parameter -DwxLuaBind_COMPONENTS="core;base" and I get wx.dll. dumpbin declares that wx.dll has 5 dependencies, base, core, aui, html and net.
I'm able to write a Lua script and I get the widgets I want, but issue is when it comes to closing.
In BizHawk emulator, I launch the Lua Console and run the script, when I close the Lua console window, the app gets shut down.
In DesMume emulator, I launch the Lua Console and run the script, when the script ends the app gets shut down.
Same thing happens in mGBA Lua console and i click on Reset.

Bizhawk uses Lua 5.4 and DesMume uses Lua 5.1, issue is present when compiling against WxWidgets 3.2.7. WxWidgets 3.3 master from GitHub gave me compilation errors, I commented out the functions until i successfully compiled against 3.3, but issue is still there, I think issue lies with wxLua.
I'm using C ffi for Lua to import the DLLs since standard Lua doesn't have ffi.
Just having wx = require "wx" in the script is enough to shut app down when script finishes

So questions are as followed

  1. Has wxLua been coded to forceibly close the host app when internal host Lua console is reset / Closed?
  2. According to the WxWidgets blog 3.3 stable will be release soon, is wxLua still being updated?
  3. I haven't tried a static build since everything works, apart from ending, is there any benefits if I use a static build?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions