yglukhov / nimx

GUI library
MIT License
1.1k stars 75 forks source link

Application crashed when use Alt + Tab multiple times #382

Open dmknght opened 5 years ago

dmknght commented 5 years ago

Steps:

  1. Open test application (run main)
  2. Use Alt + Tab to display other process
  3. Use Alt + Tab again to display main
  4. It crashed Output in terminal
    Unknown event: KeymapChanged
    Traceback (most recent call last)
    /tmp/nimx/test/main.nim(90) main
    /home/dmknght/.nimble/pkgs/nimx-0.1/nimx/private/windows/sdl_window.nim(552) runUntilQuit
    /home/dmknght/.nimble/pkgs/nimx-0.1/nimx/private/windows/sdl_window.nim(500) nextEvent
    /home/dmknght/.nimble/pkgs/nimx-0.1/nimx/private/windows/sdl_window.nim(432) handleEvent
    /home/dmknght/.nimble/pkgs/nimx-0.1/nimx/app.nim(91) handleEvent
    /home/dmknght/.nimble/pkgs/nimx-0.1/nimx/window_event_handling.nim(64) handleEvent
    /home/dmknght/.nimble/pkgs/nimx-0.1/nimx/window_event_handling.nim(72) handleEvent
    /home/dmknght/.nimble/pkgs/nimx-0.1/nimx/window_event_handling.nim(12) propagateEventThroughResponderChain
    /home/dmknght/.nimble/pkgs/nimx-0.1/nimx/view_event_handling.nim(197) processKeyboardEvent
    /home/dmknght/.nimble/pkgs/nimx-0.1/nimx/view_event_handling.nim(5) onKeyDown
    /home/dmknght/.nimble/pkgs/nimx-0.1/nimx/window_event_handling.nim(41) onKeyDown
    /home/dmknght/.nimble/pkgs/nimx-0.1/nimx/view.nim(525) bounds
    /home/dmknght/.nimble/pkgs/nimx-0.1/nimx/view.nim(525) bounds
    SIGSEGV: Illegal storage access. (Attempt to read from nil?)