Skip to content
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

SDL apps die when more than one are launched #3647

Open
Saviq opened this issue Oct 24, 2024 · 3 comments
Open

SDL apps die when more than one are launched #3647

Saviq opened this issue Oct 24, 2024 · 3 comments
Labels

Comments

@Saviq
Copy link
Collaborator

Saviq commented Oct 24, 2024

It's a regression within this commit range:

210d4c4...ecc4899

Steps to reproduce:

  • run a Mir server
  • run mir-kiosk-scummvm
  • run mir-kiosk-neverputt

Notice that scummvm segfaults.

@Saviq Saviq added the bug label Oct 24, 2024
@AlanGriffiths
Copy link
Contributor

Note that a starting a second instance of scummvm crashes the first

@AlanGriffiths
Copy link
Contributor

AlanGriffiths commented Oct 24, 2024

OK, so when any second application appears, we are sending an output.enter(). SDL2 crashes (similar to earlier problem).

WAYLAND_DEBUG=client mir-kiosk-neverputt 2>&1 | grep wl_output
[1698092.122] wl_registry@2.global(27, "wl_output", 4)
[1698092.126]  -> wl_registry@2.bind(27, "wl_output", 2, new id [unknown]@15)
[1698092.427] wl_output@15.geometry(0, 0, 340, 220, 0, "Fake manufacturer", "Fake model", 0)
[1698092.436] wl_output@15.mode(0, 2560, 1600, 165000)
[1698092.442] wl_output@15.mode(3, 2560, 1600, 60000)
[1698092.446] wl_output@15.mode(0, 1920, 1200, 165000)
[1698092.451] wl_output@15.mode(0, 1920, 1080, 165000)
[1698092.456] wl_output@15.mode(0, 1600, 1200, 165000)
[1698092.460] wl_output@15.mode(0, 1680, 1050, 165000)
[1698092.464] wl_output@15.mode(0, 1280, 1024, 165000)
[1698092.469] wl_output@15.mode(0, 1440, 900, 165000)
[1698092.474] wl_output@15.mode(0, 1280, 800, 165000)
[1698092.479] wl_output@15.mode(0, 1280, 720, 165000)
[1698092.484] wl_output@15.mode(0, 1024, 768, 165000)
[1698092.487] wl_output@15.mode(0, 800, 600, 165000)
[1698092.491] wl_output@15.mode(0, 640, 480, 165000)
[1698092.494] wl_output@15.scale(1)
[1698092.496] wl_output@15.done()
[1698125.023] wl_registry@20.global(27, "wl_output", 4)
[1698144.866] wl_registry@21.global(27, "wl_output", 4)
[1698858.634] wl_surface@24.enter(wl_output@15)
[1717678.068] wl_output@15.geometry(0, 0, 340, 220, 0, "Fake manufacturer", "Fake model", 0)
[1717678.078] wl_output@15.mode(0, 2560, 1600, 165000)
Segmentation fault (core dumped)

@AlanGriffiths
Copy link
Contributor

I don't see why we are sending another "enter" (we can likely address that), but I think SDL will crash when crossing screens anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants