-
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. |
@hpretl are there updates on this nasty crash? Just curious if there is something I can investigate on my side (although i don't have windows machines to test on) or if the problem was addressed somewhere else. |
No further action on our side meanwhile (busy on other stuff). Could this here have something to do with it: StefanSchippers/xschem@60d180d |
I don't think the fix above is related to a X server crash, but who knows. |
@simi1505 I have made a build with the latest Xschem, Docker image tag |
Unfortunately, it is still crashing. |
@simi1505 @hpretl One thing I do in these cases to debug graphic issues is to run a desktop (or better, just a window manager) in a VNC server on a different linux host on the same local network, set the DISPLAY variable to point to the VNC server and run xschem. in 100% of the cases I have dealt with so far all graphic glitches, garbage on screen, screen redraw issues, event handling, crashes related to graphic operations, errors due to off-spec graphic primitives go away (Nvidia, are you hearing me?). This does not resolve the problem, but hopefully gives some more information. It is also possible to directly connect to another X server but modern Linux boxes by default do not accept network connections and you probably need to reconfigure and restart the server and this is a super boring task (and also a temporary security hole). |
I had that problem, but after I have uninstalled the Xsrv and its data, then I have downloaded the latest version it works again without any crash! |
|
@EngGhaith Interesting find! @simi1505 Could you please try this on your computer as well? If it works, I will add it to the |
Hi everyone, I found a wide variety of problems among my students with both VcXsrv and Xming servers on Windows 11. We decided to switch to MobaXterm (Home Edition, portable) and it turned out to be a stable solution for all students. I hope this feedback helps. |
Hi everyone! I re-installed VcXsrv and also tried MobaXterm, but unfortunately, it is still crashing. With the Did you all use Anyway, thanks for the support! |
Hi, I have tested two versions of VcXsrv. The newest one, Version: 64.1.20.14.0 (website: https://sourceforge.net/projects/vcxsrv/, doesn’t work for me (crash). However, version 64.1.17.2.0 (website: https://vcxsrv.com/) works very well for me. I worked in xschem for more than half hour and there were no crashes. @simi1505 Can you check this as well? |
Interestingly, version 64.1.17.2.0 (website: https://vcxsrv.com/) works with I will also try the Edit: Thanks again, everyone. |
Findings added to |
As this is still an ongoing issue, I prepared the work to switch to WSLg as recommended by @StefanSchippers . Some tests showed very promising performance and no crashes. Also the setup gets significantly easier, as no third-party X-Server is used any more. The (currently untested) script is already pushed to |
I downloaded the IIC-OSIC-TOOLS repo, changed |
You have to download the "next_release" branch of the Repo, the container itself should be fine for now (although, there will be some updates, so stay on "next" here for now). I already tested it and pushed some more modifications. A rebuild of the container will be required, but most of the tools should already work out of the box! |
So far, everything, that doesn't require GPU acceleration, works fine and is really quick and seemingly stable. Although there might be some work to do on GPU acceleration, as the approach on WSLg is the forwarding of a "virtual GPU" that is based on the hosts GPU. For that, it basically forwards the commands to the physical GPU. And as of right now, this is not working and requires some work. |
Describe the bug
As the title says.
Tagging also bug report #91
Environment:
The text was updated successfully, but these errors were encountered: