pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.62k stars 518 forks source link

Segmentation fault on start up - Ubuntu 19.04 x64 #1017

Closed dcsoftwaresystems closed 4 years ago

dcsoftwaresystems commented 5 years ago

I'm seeing a seg fault on starting zbstudio.sh. I'm running Ubuntu 19.04 x64 architecture. This installation ran fine until now. I recently upgraded the system to 19.04 and since then I'm seeing the SIGSEGV termination. I cloned the current repo into a new location and started ./zbstudio.sh with the same result. If you want me to upload a core or apport crash file let me know.

pkulchenko commented 5 years ago

@dcsoftwaresystems, thank you for the report. Can you load the core in gdb and run bt command? Does it not even open the IDE window? Does it happen on every launch?

dcsoftwaresystems commented 5 years ago

Output of gdb:

Core was generated by `bin/linux/x64/lua src/main.lua zbstudio -cwd /home/dcooper/Documents/Source/Zer'. Program terminated with signal SIGSEGV, Segmentation fault.

0 0x00007fb3e9364046 in ?? ()

[Current thread is 1 (LWP 23978)] (gdb) bt

0 0x00007fb3e9364046 in ?? ()

1 0x0000000001439050 in ?? ()

2 0x00007fb3e805b898 in ?? ()

3 0x00007fff7ea13cc0 in ?? ()

4 0x00007fb300000000 in ?? ()

5 0x0000000000000000 in ?? ()

pkulchenko commented 5 years ago

@dcsoftwaresystems, this is not a very informative stack trace. Can you try running the IDE from the upgrade branch (https://github.com/pkulchenko/ZeroBraneStudio/compare/upgrade-binaries-190)? If this still doesn't work, I'll have to install the same version and try to figure out what's going on.

dcsoftwaresystems commented 5 years ago

When I run the zbstudio from a desktop link, it pops up the ide window momentarily, but if I run it from the shell it never shows the IDE and exits with SIGSEGV in a few seconds.

pkulchenko commented 5 years ago

@dcsoftwaresystems, is this with the upgrade branch?

Can you try running bin/linux/x64/lua src/main.lua from the IDE folder (the same folder where zbstudio.sh is located)? There may be some errors reported to the stdout...

dcsoftwaresystems commented 5 years ago

First, the upgrade branch does not seg fault and appears to be working normally. Running the command above from the IDE folder of the 1.80 version results in the IDE briefly flashing on the screen and then exiting with the shell only displaying "Segmentation fault (core dumped)".

pkulchenko commented 5 years ago

Ok; thank you for the update. This should be fixed then when #999 is merged.

pkulchenko commented 4 years ago

This has been implemented as part of the changes in #999 that have been merged.