-
Notifications
You must be signed in to change notification settings - Fork 23
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
Screenshot crash #73
Comments
Thanks reporting this issue; unfortunately I am not able to reproduce it. SysReq also takes a screenshot, so the issue is likely with the Screenshot() function itself (or the SaveScreenshotPNG() function it calls). Does this crash happen both when you are playing with OpenGL rendering enabled, and when it is disabled? |
The crash only happens with OpenGL rendering enabled. As it turns out, it was taking screenshots, but I was expecting to find them in my Pictures folder where screenshots normally go. I hadn't thought to look in ~/Wyrmgus. The ones that resulted in crashes turned out rather oddly, while the ones with OpenGL disabled turned out fine. |
Thanks, that's helpful :) So the issue is likely in the following piece of code in SaveScreenshotPNG() (in \video\png.cpp):
|
timfel has made an update to fix this issue, which I've implemented into Wyrmgus here: Does it fix the problem for you? |
The game no longer crashes upon taking a screenshot most of the time, but the screenshot is still gray and distorted as before (or a corrupted file), and the game freezes upon trying to exit if I previously took a screenshot during that session. It still sometimes causes the game to freeze, which seems to occur more when I've switched from windowed to fullscreen. I also still managed to crash it once by just taking a screenshot in the opening menu (output below). As before, everything is fine with OpenGL disabled.
In this case ./launch refers to |
Unfortunate that it didn't fix the problem, but at least there was some improvement. There was a further update from upstream on this issue which I've implemented into Wyrmgus, maybe it will help: |
That doesn't seem to have made any difference. |
This should be fixed now with the following commit: |
When attempting to take a screenshot during play or in the main menu, the game immediately crashes without saving the image. I'm on 64-bit Linux Mint and the print screen command on my laptop is fn+insert. This only happens when playing in fullscreen; it does not happen in windowed mode. I can take screenshots in other fullscreen games with no issues.
I tested out some other keys to see if they would cause a crash. The volume LEDs and the brightness commands (fn+f9 and fn+f10) do not work but don't cause a crash. The SysRq key combination (fn+delete) causes a crash with similar output to the screenshot.
The text was updated successfully, but these errors were encountered: