-
Notifications
You must be signed in to change notification settings - Fork 72
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
2025.1: Xschem closes and the Xming server crashes every 10 minutes #92
Comments
@simi1505 I haven't used Xming personally for the X-Server, so it is a bit hard to debug. To make it easier: Did you update Xming also or just the container? |
If it helps, I could come by tomorrow? Edit 1: The issues occurred with: https://sourceforge.net/projects/vcxsrv/ Edit 2: Edit 3: |
I have reported this to the Xschem maintainer: StefanSchippers/xschem#276 |
Do we already have some kind of error log? Or is this always lost due to the whole X-Server crashing? |
[Edit] Try to follow comments below starting from the last one and going up.... @hpretl @MrHighVoltage It's difficult me to reproduce the environment since I don't have windows computers here, however:
Running this older xschem will tell us something. If crash happens again then there is likely some issue with the Xserver, or a very long standing bug nobody reported to date. |
Another test you can do is using the 3 checkbuttons in the |
One test you should do is to go in the Xserver configuration and if possible disable Hardware acceleration for it. OpenGL (or the WIndows equivalent) and hardware acceleration is in general the mother of all graphical problems. |
It is possible to start xschem in debug mode and save all messages to a log file: |
I now tried out the three checkbuttons but it still crashes after some time. Most of the time it crashes during scrolling with the mouse wheel. Can this be a hint for something? |
I have tried this now. Where can I find the logfile? It is not located in the folder where I executed Xschem and also not in the installation folder |
Have you tried disabling it? |
the log file is in the directory where xschem is started. If opening the log file fails for whatever reason xschem will fall back using the default output.mp4 |
Okay, I setup a Windows-Workstation with the tools now and I can reproduce this error. The Logfile does not include any errors, I'm afraid Xschem crashes before it can write the last errors. |
Can you please try to zoom in/out with ctrl-z / Shift-Z ? does it crash too? |
I got some log-infos out of the X-Server, first it spams the following line a few hundret times:
followed by
Then the log file ends.
Yes, it does too. repeatedly clicking fast without waiting for the previous action to finish, seems to do the trick. |
Also this link contains some information about setting up VcXsrv in windows WSL2, may be it contains some useful info: also some other info I found lurking into the web:
Although I don't think this affects xschem as it does not use 3D acceleration. |
Another easy test is to disable the grid in an empty xschem window (Options --> Draw grid) and try to scroll / zoom. |
On an empty, grid only, or very simple schematic, it doesn't crash, no matter how fast I zoom/move etc... |
On an empty Xschem window with or without a grid, it does not crash. If I add only a symbol it crashes shortly after scrolling. |
Ok, thank you. The next step is to try a build of xschem without To do that edit With Cairo: Without Cairo: |
okay, 3.4.4, like you initially suggested, also crashes the same way. |
Thank you, so this is not related to any recent change / addition in xschem since 3.4.4 was tagged in Oct 2023.
|
Isn't that already disabled? |
If your config.h has this line already commented, then yes, it is disabled (configure did not find the needed cairo headers and disabled it already). If so it isn't cairo either causing the crash... |
Also I see lot of posts about VcXsrv crashes, so it should be nice to test the Cygwin (XWin.exe) Xserver. I used this server 15 years ago on windows 7, and for these pieces of software older is better in general. |
I think @simi1505 already tried it with Xming. Is that correct? |
I strongly suggest to go for the real thing. Also I see that : |
I also tried Cygwin/X now, same crash behavior, but I get more meaningful log outputs and it segfaults after the same messages as VcXsrv:
Anyways, we could not reproduce this error on Linux or MacOS (with XQuartz), only on Windows. The most promising solution right now seems to be WSLg, also because of reduced installation/maintance effort. But we do have rework the start scripts and documentation and we are currently held up with other important tasks. So for now, we keep it that way. It seems to only be an issue on huge XSchem-Schematics on Windows with X11 mode. If more reports of this error show up, we might revert to the last container release until this error is properly fixed. Thanks for your help, so far! |
As far as I can tell both Xservers fail when trying to create a DIB (Device independent Bitmap). These are areas where the Xserver draws into, the area is then handed over for displaying. Try to find settings in the WSL2 / Xserver about reserved Video memory and if you find anything increase the limit. |
Also try to see if the docker container is not enforcing some limits. (although xschem is really a small application) |
Can you also try to run xschem out of the container? I mean clone the repo, build and install, then execute outside of any container. |
Describe the bug
As the title says.
Tagging also bug report #91
Environment:
The text was updated successfully, but these errors were encountered: