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

Windows displays poorly, moves abnormally, and cannot be docked in Linux Wayland environments #13

Closed
crisqyxw opened this issue Jan 14, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@crisqyxw
Copy link

crisqyxw commented Jan 14, 2024

1

Every ReaImGui plugin I've encountered has behaved like this so I think it might be a ReaImGui's problem...

@cfillion
Copy link
Owner

Both the display problem (same as #15) and the unstable window position are caused by HiDPI scaling being enabled on your system. Fixing!

@cfillion
Copy link
Owner

Here's a patched x86_64 build with the two fixes: https://ci.appveyor.com/api/buildjobs/408hj95a8de18df3/artifacts/build%2Freaper_imgui-x86_64.so. Let me know if there are remaining issues.

@cfillion cfillion added the bug Something isn't working label Jan 22, 2024
@crisqyxw
Copy link
Author

crisqyxw commented Jan 25, 2024

Everything was fixed and now it works fine (there is a slight jitter when zooming the window, but it doesn't affect the experience) , thanks for your excellent work.

cfillion added a commit that referenced this issue Feb 4, 2024
cfillion added a commit that referenced this issue Mar 23, 2024
Stack trace of the ~1s hang on the second call to GDKOpenGL::render:

    #0  0x00007ffff7a080bf in __GI___poll
        (fds=fds@entry=0x7fffffffc388, nfds=nfds@entry=1, timeout=timeout@entry=-1)
        at ../sysdeps/unix/sysv/linux/poll.c:29
    #1  0x00007ffff76d620b in poll (__timeout=-1, __nfds=1, __fds=0x7fffffffc388)
        at /usr/include/bits/poll2.h:39
    #2  _xcb_conn_wait
        (c=c@entry=0x11c0140, vector=vector@entry=0x0, count=count@entry=0x0, cond=<optimized out>)
        at /usr/src/debug/libxcb/libxcb-1.16.1/src/xcb_conn.c:510
    #3  0x00007ffff76d829b in _xcb_conn_wait
        (count=0x0, vector=0x0, cond=<optimized out>, c=0x11c0140)
        at /usr/src/debug/libxcb/libxcb-1.16.1/src/xcb_conn.c:476
    #4  xcb_wait_for_special_event (c=0x11c0140, se=0x35bca30)
        at /usr/src/debug/libxcb/libxcb-1.16.1/src/xcb_in.c:806
    #5  0x00007ffff5dad3bf in dri3_wait_for_event_locked ()
        at ../mesa-24.0.3/src/loader/loader_dri3_helper.c:591
    #6  dri3_wait_for_event_locked () at ../mesa-24.0.3/src/loader/loader_dri3_helper.c:572
    #7  0x00007ffff5dada12 in loader_dri3_wait_for_sbc ()
        at ../mesa-24.0.3/src/loader/loader_dri3_helper.c:664
    #8  loader_dri3_swapbuffer_barrier () at ../mesa-24.0.3/src/loader/loader_dri3_helper.c:2343
    #9  0x00007fffc48308da in dri_st_framebuffer_flush_swapbuffers ()
        at ../mesa-24.0.3/src/gallium/frontends/dri/dri_drawable.c:143
    #10 0x00007fffc48f6a99 in st_manager_flush_swapbuffers ()
        at ../mesa-24.0.3/src/mesa/state_tracker/st_manager.c:1270
    #11 st_finish () at ../mesa-24.0.3/src/mesa/state_tracker/st_cb_flush.c:85
    #12 0x00007fffc4a36421 in st_glFinish ()
        at ../mesa-24.0.3/src/mesa/state_tracker/st_cb_flush.c:109
    #13 _mesa_Finish () at ../mesa-24.0.3/src/mesa/main/context.c:1660
    #14 0x00007ffff6de8e8c in gdk_x11_gl_context_end_frame
        (context=0x32f8650 [GdkX11GLContext], painted=0x372ee50, damage=<optimized out>)
        at ../gtk/gdk/x11/gdkglcontext-x11.c:263
    #15 0x00007ffff6da4f6d in gdk_gl_context_end_frame
        (damage=0x0, painted=0x372ee50, context=0x32f8650 [GdkX11GLContext])
        at ../gtk/gdk/gdkglcontext.c:396
    #16 gdk_window_end_paint_internal (window=window@entry=0x3037a50 [GdkX11Window])
        at ../gtk/gdk/gdkwindow.c:3072
    #17 0x00007ffff6da50f7 in gdk_window_end_draw_frame
        (context=0x35bde50 [GdkDrawingContext], window=0x3037a50 [GdkX11Window])
        at ../gtk/gdk/gdkwindow.c:3311
    #18 gdk_window_end_draw_frame
        (window=0x3037a50 [GdkX11Window], context=0x35bde50 [GdkDrawingContext])
        at ../gtk/gdk/gdkwindow.c:3294
    #19 0x00007fffd782938e in GDKOpenGL::render (this=0x30134b0, userData=0x0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants