SeaDve / Kooha

Elegantly record your screen
GNU General Public License v3.0
2.63k stars 70 forks source link

Gray grid instead of screen in SDL app only if fullscreen #258

Closed mefistotelis closed 9 months ago

mefistotelis commented 1 year ago

Affected version

2.2.4, ubuntu 22.03, wayland

Bug summary

The target is the game "Terraria". When running in windowed mode, screen recording works properly. But as soon as I switch to fullscreen, gray grid starts.

Steps to reproduce

  1. Run SDL fullscreen app
  2. atl-Tab and start recording
  3. Switch back to the fullscreen app
  4. Stop recording / close Kooha
  5. Play the video - only gray grid shows during the fullscreen part

Expected behavior

Record fullscreen apps properly.

Relevant logs, screenshots, screencasts, etc.

as soon as full screen is entered, the error messages start going:

plane 0, no memory at offset 0
gst_video_frame_map_id: failed to map video frame plane 0

looks like frame buffer cannot be mapped? Maybe SDL apps need to be run with some kind of switch to allow mapping output buffer? Or maybe the function just tries to do it incorrectly?

mefistotelis commented 1 year ago

This seem to be the same issue as in #214.

SeaDve commented 9 months ago

Thanks for the bug issue. Closing this in favor of https://github.com/SeaDve/Kooha/issues/270