Skip to content

init fails on x11 (winit 0.27) #2402

Closed

Description

@rukai

On the latest git master and in the recently released 0.27, when I run the window example via: cargo run --release --example window, it panics with:
image

0.26 did not have this issue

Activity

  1. changed the title [-]init fails on x11[/-] [+]init fails on x11 (0.27)[/+] on Jul 29, 2022
  2. changed the title [-]init fails on x11 (0.27)[/-] [+]init fails on x11 (winit 0.27)[/+] on Jul 29, 2022
  3. kchibisov commented on Jul 29, 2022

    @kchibisov
    Member

    I can't repro that in either XWayland or GNOME, what system are you using?

  4. kchibisov commented on Jul 29, 2022

    @kchibisov
    Member

    That's literally what changed by default. And instead of nothing we request None.

    picture

    So without extra logging from you it'll be impossible to fix it given that we're intentionally creating a context without any IME.

    Please try altering the create_none_ic (to previous state) and check whether it still fails.

  5. kchibisov commented on Jul 29, 2022

    @kchibisov
    Member

    Could also try setting it to just ffi::XIMPreeditNone.

  6. kchibisov commented on Jul 29, 2022

    @kchibisov
    Member

    I've tried to repro it on ubuntu,fedora,gentoo, and arch. On different GNOME, i3 versions without any success, so without any extra information it would be really hard to make a proper fix.

  7. rukai commented on Jul 29, 2022

    @rukai
    ContributorAuthor

    I am on arch and i3 and I have the uim-xim IME setup.

    As suggested by you, it no longer panics when I make this change:
    image

    Let me know if there is anything else I can get for you. I will be pretty busy this weekend though.

  8. kchibisov commented on Jul 29, 2022

    @kchibisov
    Member

    Could you try setting just ffi::XIMPreeditNone? It seems like there`s no way to disable IME or the IME is sort of strange.

  9. rukai commented on Jul 29, 2022

    @rukai
    ContributorAuthor

    image

  10. kchibisov commented on Jul 30, 2022

    @kchibisov
    Member

    Well, I guess we will tune the logic to handle a case when you can't disable IME for some wierd imes.

  11. added a commit that references this issue on Jul 30, 2022
    a15964c
  12. kchibisov commented on Jul 30, 2022

    @kchibisov
    Member

    Could you try #2404 ?

  13. added a commit that references this issue on Jul 30, 2022
    758a3d5
  14. added a commit that references this issue on Jul 30, 2022
    95246d8
  15. added a commit that references this issue on Aug 24, 2022
    5a72b99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions