question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Taking screenshot or recording crashes the game

See original GitHub issue

My Ubuntu is in Portuguese and when I try to take a screenshot or record a gif, the game crashes trying to create a file: File "/home/jean/Documentos/pyxel-debug/lib/python3.6/site-packages/PIL/Image.py", line 1947, in save fp = builtins.open(filename, "w+b") FileNotFoundError: [Errno 2] No such file or directory: '/home/jean/Desktop/pyxel-180731-095749.gif'

If I create a Desktop folder on my home directory the problem is solved, but I don’t that’s a good solution. An alternative would be creating a subfolder inside the game’s current directory. I would do a pull request, but even that being pretty simple, I think that’s more like a design decision, so it’s up to you ☺️

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
Godzilcommented, Aug 2, 2018

If you use that, please add a fallback, an external tool like xdg-user-dir is not necessarily installed:

godzil@box4 ~ $ xdg-user-dir
-bash: xdg-user-dir: command not found
0reactions
JeanAraujocommented, Aug 4, 2018

Changed, tested and solved on #32. Tested on Ubuntu 18.04.1 LTS

Read more comments on GitHub >

github_iconTop Results From Across the Web

Game Crash (File I/O error 5) on taking Screenshot - Reddit
Game Crash (File I/O error 5) on taking Screenshot. I used to be able to take in-game screenshots with Photo Mode on Windows...
Read more >
Game crashes when taking a screenshot with F12
game crashes sometimes when you are in Photo Taking Mode and take a little bit longer to adjust the shot (no effects, just...
Read more >
PC Crashing with Screen Capture | OBS Forums
If I set screen capture to "Windows 10", the crash is gone. OBS Does not have to be recording for the crash to...
Read more >
Steam freezes games when taking screenshots :: Help and Tips
Sometimes the game can freeze for 4-6 seconds when taking a screenshot. Usually happens when taking multiple screenshots in quick succession ...
Read more >
How to fix the “Android emulator crashes when I take a ...
The Android emulator for Android Studio “Arctic Fox” (version 2020.30.1) crashes when you take screenshots. Here's how you fix it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found