#526 Screenshots do not release their file handle


After taking screenshots, at least with using the lua binding, the file handle (using Ubuntu 12.04 64 bit) is not closed and the file remains open until emulator shutdown. Proof:



  • Lukas Sabota

    Lukas Sabota - 2012-07-19

    I'm not able to reproduce this by taking screenshots by pressing the hotkey. The output of lsof do not show that the snapshots remain open on my machine. I took a look at the code (src/video.cpp) and the relevant functions (SaveSnapshot SaveSnapshotAs) should close the file handle in all instances.

    FWIW, I'm running on Arch Linux 64 bit (current).

    Could you attach the LUA script that you were using to reproduce this issue?

    Thanks in advance!

  • Lukas Sabota

    Lukas Sabota - 2012-07-19

    Thanks for attaching the script. I'm also unable to reproduce when running that script. The file count has passed 20k files at this point, and I do not see any of the screenshots open in the "lsof" output. Are you able to try using a different directory to store the snapshot? Storing these files to the "/dev/shm" directory may have something to do with this issue (although I am still unable to reproduce when saving the snapshot to that directory). On my system, "/dev/shm" is mounted as tmpfs FWIW.

    Are you able to reproduce this issue when saving the snapshots to another location on another filesytem?

  • Lukas Sabota

    Lukas Sabota - 2012-08-04

    Do you have an updates for this? I'm still unable to reproduce this


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks