-
-
Notifications
You must be signed in to change notification settings - Fork 15
2.11.0 Keeps crashing from vscode #83
Comments
by the font I assume you are on ubuntu, can you open the developer tools (Ctrl-Shift-P -> Toggle Developer Tools) and send a screenshot from there? |
By the way, in case you are wondering, I'm not going out of memory! I have PLENTY of free memory. |
Any updates here? This made me switch to dlang-vscode for now! |
did you recompile it yet? I didn't push it to auto update in code-d yet |
Yes, I did recompile it. |
Still happening even with the new beta extension: 2017-08-11T17:04:21.304:extension.d:initialize:150 Starting dub...
|
can you post your |
4.10.0-32-generic Pure-D/serve-d#201~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux |
So I reverted back to the previous dmd compiler (DMD 2.074.1) and recompiled both workspace-d and serve-d and everything is now working as expected. It no longer crashes. So to be clear, this crash only happens when you compile with DMD 2.075.0 I'm surprised that no one else reported this crash. I assume it's because they already have workspace-d compiled from before using the previous dmd version and there's no need to recompile it. But this will certainly be an issue for your new users. It could be a compiler bug, but you'd probably need to confirm this and why and then file a bug against dmd. If you mainly develop on Windows, please consider reproducing this crash on an Ubuntu virtual machine or something. It happens all the time. |
I only develop on archlinux with dmd v2.075.0 and that bug never happens to me. Does it happen with every project (even a hello world project) or just with a few projects? Well it can't only be DMDs fault because I suppose your projects you compile with DMD work. Can you try disabling the memory error handler (remove source/app.d:359-361), recompile and send me the new stacktrace? |
It doesn't crash on a hello world project (though it doesn't work at all -- no autocomplete, no jump to definition, ... nothing), but it crashes on these projects I tried: tilix, dlangui, dlangide, tkd, ... etc. Removed the lines you suggested, but it doesn't produce any stack traces when it crashes. |
oh right now you need to run it using gdb... uh which isn't possible with code-d/workspace-d but only with serve-d, can you first try if serve-d: install code-d-beta in vscode) crashes and if it does try running it as extension host (install gdbserver, clone code-d, |
I haven't had a chance to do what you suggested, and likely I won't have time to do it soon. Please try to repro in a VM. It can easily be repro'd on Ubuntu and OpenSuse Tubmleweed. Just build with the most recent compiler by running |
no problem in a Ubuntu VM with 2GB memory + 2GB swap, memory usage is constantly around 800mb too |
Returned to VS Code and D after some time. This still happens under Windows. |
probably fixed with latest versions |
I compiled it with the new version of the compiler 2.075.0, and it doesn't work anymore! vscode keeps showing the following notifications:
Workspace-D crashed, please kill dcd-server if necessary.
screenshot
The text was updated successfully, but these errors were encountered: