racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
444 stars 93 forks source link

DrRacket crashes to desktop on Windows 10 and 11 64 bit #596

Open rasteric opened 1 year ago

rasteric commented 1 year ago

Both on my physical copy with Windows 10 (latest update) and in the Virtualbox developer image of Windows 11 "WinDev2211Eval" DrRacket 8.7 crashes to desktop at unspecified times after a racket source file has been loaded. The bug might require clicking into an editor window with a source file first. The crash happens sometimes immediately, sometimes after a while (a few seconds to a few minutes). Since this might make a difference: In each test, the language was set to Custom: no debugging or profiling. The crash does not appear on my machines when no external source file is loaded.

No diagnostic messages or bug report forms appear, they are immediate crashes to desktop. DrRacket version is 8.7, downloaded from racket-lang.org and freshly installed.

To repeat: Open a source file in a fresh install of Racket. Click into the editor window a few times. Wait a few minutes, maybe click into the editor again later. It happens every time I try, although each time after a different time interval.

Workaround: The 64-bit x64 BC release works in my tests without problems.

spdegabrielle commented 1 year ago

Hi thanks for the report

can I ask you to launch DrRacket from the command prompt? This should provide some more info when the crash happens

rasteric commented 1 year ago

This is what happens when I start on the command line (cmd.exe):

Microsoft Windows [Version 10.0.19045.2251]
(c) Microsoft Corporation. All rights reserved.

C:\Windows\System32>"C:\Program Files\Racket\DrRacket.exe"

C:\Windows\System32>

I load the source file and then DrRacket crashes. Nothing is printed when the crash happens (nothing is printed at all). I suppose there is a way to get more verbose error tracing on the command line? How?

RolfStinner commented 1 year ago

On Windows 11 Home 22H2 build 22621.963 I also experience that DrRacket GUI version 8.6 and 8.7 crashes when I start entering some definitions in the editor window. But with DrRacket version 8.5 everything works fine without crashes if I enter something in the editor window but version 8.5 crashes when I tried to enter something in the REPL. In any case there are no additional informations if I start DrRacket GUI from the command line. When I start drracket from a WSL2 terminal everything works fine with DrRacket version 8.7. So there must be an issue with DrRacket on Windows 11 OS.

RolfStinner commented 1 year ago

Today I uninstalled DrRacket on my Windows 11, deleted the folder C:\Users\rolf\AppData\Roaming\Racket, restarted Windows and installed DrRacket version 8.7 again. Now everything works fine, no crashes happened yet.