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

refresh symbols crashing #507

Closed
CapsAdmin opened this issue Aug 3, 2015 · 1 comment
Closed

refresh symbols crashing #507

CapsAdmin opened this issue Aug 3, 2015 · 1 comment
Assignees
Labels

Comments

@CapsAdmin
Copy link
Contributor

This happens on the project symbol branch using linux x64. I've been trying to debug where and how but it seems almost random. I'm not experienced at all with how gdb works or debugging luajit from C.

I've disabled jit and attached this code:

local stack = io.open("/home/caps/goluwa/ZeroBraneStudio/last_stack", "wb") 
debug.sethook(function(event, line) 
    if event == "line" then 
        stack:write(debug.getinfo(2).source, ":", line, "\n") 
        stack:flush() 
    end 
end, "l")

inside the coroutine wrap in outline:RefreshSymbols

On the surface at least it seems that multiple calls to RefreshSymbols will cause this crash.

@pkulchenko pkulchenko self-assigned this Aug 3, 2015
@pkulchenko
Copy link
Owner

This appears to be related to #499, event though the stack traces don't show anything directly related to the symbol search. The issue happens when on idle event is called by the system from PopupMenu method (when the popup menu is displayed). If there is files re-indexing (related to symbol search) happening at this time, it leads to a crash with various stack traces, but always caused by a segmentation fault. This has only been noticed on Linux so far. I'm checking on a fix or a work-around.

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

No branches or pull requests

2 participants