-
-
Notifications
You must be signed in to change notification settings - Fork 842
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
Crash when screenshoting #3527
Comments
Thanks for adding your first issue to Stellarium. If you have questions, please do not hesitate to contact us. |
I missed that hint when making this issue, but the fix did not work. I tried with ubuntu 20.04 on the same hardware, and that worked, which indicates that Mint might be to blame. |
Ctrl+S works perfect on Linux Kubuntu 23.10 and Stellarium 23.3.335 compiled with Qt6 on own computer. |
Probably has to do with (1) being an AppImage on (2) Mint. |
I can prepare an AppImage/Qt6 for testing |
@alex-w Both the qt5 and qt6 versions crash. I tested it on the same Mint system that failed originally. |
I don't know the internals of AppImages. The log indicates a crash after beginning of shader compilation. Is the shader cache location (and, where's that to begin with?) accessible? |
No it doesn't. This message doesn't normally end with any kind of a "closing message". So the log simply doesn't tell anything. @hflemmen Please get a stack trace from the crash. |
Pardon my ignorance, but how do I get a stack trace from the crash? |
No.
No. P.S. We can prepare AppImage for Stellarium in Debug mode, but I fear it can be not an easy (due an AppImage architecture) P.P.S. @hflemmen do you have installed standard Linux Mint 21.2 (what about DE)? |
Why? Isn't it just a matter of setting |
I wrote "after beginning", not "during". It tells us it came that far. Sure, it may be something else than shader cache accessibility. But it (and thus just configuration of that AppImage) can be one cause and (hopefully) simple item to check. I know however nothing about rules for SC locations within and outside of AppImage. |
The log ends even before zooming in to see any planet and trigger the message about planet shader compilation. |
|
So, I can't reproduce the issue. |
Then maybe it is just something wrong with just my system. I made the backtrace from the qt5-version, but there is something wrong with my gdbinit. I think you can just ignore it. These two lines appeared in gdb when i tried to screenshot:
|
In the log I see resolution 2560x1440 - please try switch to windowed mode and take a screenshot again. P.S. How many monitors had your computer? |
Why do we use |
With this we find the screen where the center of the window is. This may be helpful when moving the window from screen to screen. How does screen() determine partial visibility? |
The problem is that we determine the point from scene size, ignoring the position of the window. This then will bias the result towards the top-left screen.
The screen returned is the one that determines widget properties like the HiDPI scaling coefficient. Usually it switches when the center of the window crosses the border between the screens (assuming they are adjacent). |
If you can simplify code without breaking things, go ahead. |
Thank you! I can confirm that it works now. |
Hello @hflemmen! Please check the fresh version (development snapshot) of Stellarium: |
Hello @hflemmen! Please check the latest stable version of Stellarium: |
Expected Behaviour
Screenshot captured and saved.
Actual Behaviour
1 second freeze and then the program exits.
Steps to reproduce
System
Logfile
log.txt
The text was updated successfully, but these errors were encountered: