Schildkroet / Candle2

GRBL control interface in Qt.
GNU General Public License v3.0
203 stars 56 forks source link

graphical issues wayland #30

Closed unrealBob closed 2 years ago

unrealBob commented 2 years ago

Hey,

I have noticed some differences regarding wayland and xorg sessions. When using wayland, the tool path + coordinate system, etc. doesnt show up. Is there a way to fix this?

Wayland: image Xorg: xorg

System: Candle 2 version 2.4 ThinkPad E14 gen 2 (AMD Ryzen 5 4500U, Radeon graphics) Arch Linux 5.16.13 KDE Plasma 5.24.3

777Raim commented 2 years ago

Hi! I have same problem. By the way, if I run the self build version (2.3) - the problem is, but if I run the pre build version from git (2.3) - everything works fine. I can't make same test with 2.4, because pre build 2.4 doesn't run ('xcb' lib error). Self build version 2.4 has same problem.

System: Candle2 version 2.3 and 2.4 Fedora 36 Gnome 42.2

Schildkroet commented 2 years ago

There was a config file missing. I updated the download. 2.4 should run now. Can you provide more infos? On Ubuntu 22.04 it runs on Wayland.

777Raim commented 2 years ago

Yes, It runs now. Thanks!

But I can't understand, why self build Candle has wayland bug?

ps. some QT_DEBUG_PLUGINS=1 output info in attach (Candle 2.4) pre_build.log self_build.log

ps2. Self build Candle has that run output:

$./Candle2 
QSocketNotifier: Can only be used with threads started with QThread
QString::arg: Argument missing: <html><head/><body><p>Candle 2<br/>Version: 2.4<br/>License: GNU GENERAL PUBLIC LICENSE<a href="https://github.com/Schildkroet/Candle2/"><span style=" text-decoration: underline; color:#0000ff;"><br/></span></a>© 2015-2016 Hayrullin Denis Ravilevich<br/>© 2018-2022 Patrick F.</p><p>Visit: <a href="https://github.com/Schildkroet/Candle2/"><span style=" text-decoration: underline; color:#0000ff;">https://github.com/Schildkroet/Candle2/</span></a></p></body></html>, 2.2.0
QMetaObject::connectSlotsByName: No matching signal for on_cmdRefresh_clicked()

otherwise, Pre build:

locale: "ru"
style "Windows"
style "Fusion"
QString::arg: Argument missing: <html><head/><body><p>Candle 2<br/>Version: 2.4<br/>License: GNU GENERAL PUBLIC LICENSE<a href="https://github.com/Schildkroet/Candle2/"><span style=" text-decoration: underline; color:#0000ff;"><br/></span></a>© 2015-2016 Hayrullin Denis Ravilevich<br/>© 2018-2022 Patrick F.</p><p>Visit: <a href="https://github.com/Schildkroet/Candle2/"><span style=" text-decoration: underline; color:#0000ff;">https://github.com/Schildkroet/Candle2/</span></a></p></body></html>, 2.2.0
QMetaObject::connectSlotsByName: No matching signal for on_cmdRefresh_clicked()
Schildkroet commented 2 years ago

I build with oldest supported Ubuntu (currently 18.04). Maybe this is a problem with newer QT version? I will try building with a newer system and check.

777Raim commented 2 years ago

Found some info: if run Candle with --platform xcb or export QT_QPA_PLATFORM=xcb, the bug disappears.

Installed Ubuntu 18.04 on VBox and build Candle - on Ubuntu Wayland Candle works perfect. But on Fedora this Candle (builded on Ubuntu) has same wayland bug

Schildkroet commented 2 years ago

Can you test this build, if it runs for you:

https://github.com/Schildkroet/Candle2/actions/runs/2713737955

777Raim commented 2 years ago

Tried this build - AppImage runs perfect without bug