-
Notifications
You must be signed in to change notification settings - Fork 518
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
IDE hangs (copy-paste) between files #673
Comments
@niziak, are you using ArchLinux? I presume the file copied is not large. Is it reproducible every time? |
@niziak, can you try the following path to see if it resolves the issue: diff --git a/src/editor/editor.lua b/src/editor/editor.lua
index 7bc87f1..f88a569 100644
--- a/src/editor/editor.lua
+++ b/src/editor/editor.lua
@@ -1117,17 +1117,17 @@ function CreateEditor(bare)
end
end)
- editor:Connect(wxstc.wxEVT_STC_SAVEPOINTREACHED,
- function ()
+ local function updateModified()
+ local update = function()
local doc = ide:GetDocument(editor)
- if doc then doc:SetModified(false) end
- end)
-
- editor:Connect(wxstc.wxEVT_STC_SAVEPOINTLEFT,
- function ()
- local doc = ide:GetDocument(editor)
- if doc then doc:SetModified(true) end
- end)
+ if doc then doc:SetModified(editor:GetModify()) end
+ end
+ -- delay update on Unix/Linux as it seems to hang the application on ArchLinux;
+ -- execute immediately on other platforms
+ if ide.osname == "Unix" then editor:DoWhenIdle(update) else update() end
+ end
+ editor:Connect(wxstc.wxEVT_STC_SAVEPOINTREACHED, updateModified)
+ editor:Connect(wxstc.wxEVT_STC_SAVEPOINTLEFT, updateModified)
-- "updateStatusText" should be called in UPDATEUI event, but it creates
-- several performance problems on Windows (using wx2.9.5+) when |
Other ArchLinux related issues: #506, #662, and #425 (with recent comment). |
@niziak, I pushed the diff I proposed earlier to the master branch and would be interested to know if it fixes the issue for you. Note that this change hasn't been merged into the upgrade branch yet. Thanks! |
It seems that patch helps for this issue. I'm working intensively fourth day on patched zbstudio and I cannot observe any crashes ('wxwidgets31x-upgrade' branch + patch). Now I will try on master branch. |
@niziak, that's great; thank you for the update. I've enabled a couple of checks in the wxlua code (will be included in the new binaries in the upgrade branch shortly), but was hoping that the patch may help. I'd be interested in the results you have on the master branch (it already includes the patch) as I'd like to confirm that the crashes are gone there as well. |
@niziak, closing this as the patch has been merged into master; please re-open if you still see this issue on master. |
I'm using zbstudio (8c82419) (wxwidgets31x-upgrade) started in gdb.
IDE hands with 100% CPU usage.
Just before hang, I've created new lua file and I was moving code from existing lua file to newly created. I was moving function by function using ctrl-x ctrl+v. After a while it hangs (during ctrl+v).
Backtrace after stopping program in gdb
I set breakpoints at
But it stops all the time on
Indicator::Draw
The text was updated successfully, but these errors were encountered: