Amulet-Map-Editor icon indicating copy to clipboard operation
Amulet-Map-Editor copied to clipboard

[linux/macOS] Flickering UI on canvas

Open gentlegiantJGC opened this issue 3 years ago • 41 comments

Having potentially solved the renderer loading issue in #84 there is now a flicker from the canvas being redrawn.

This may solve the issue http://wxpython-users.1045709.n5.nabble.com/wxPython-glcanvas-flickers-on-linux-td2275735.html

gentlegiantJGC avatar Nov 08 '20 23:11 gentlegiantJGC

This thread on Nabble was opened in July 2000...

How much of it still applies to wxPython of 2020?

EvilSupahFly avatar Nov 12 '20 04:11 EvilSupahFly

It may not. I hadn't noticed how old is was. I couldn't find anything else about it

gentlegiantJGC avatar Nov 12 '20 07:11 gentlegiantJGC

I found this. Think you can make use of some of it?

EvilSupahFly avatar Nov 12 '20 14:11 EvilSupahFly

Another Linux user here, having the same issue on Ubuntu 20.04. The 3D view is rendered correctly, but all buttons and other overlays are flickering, making it basically impossible to use the editor. To give some idea about the used library versions:

$ python3 -m pip install amulet-map-editor
Requirement already satisfied: amulet-map-editor in ./lib/python3.8/site-packages (0.7.2.8)
Requirement already satisfied: pymctranslate~=1.0.0 in ./lib/python3.8/site-packages (from amulet-map-editor) (1.0.0.1)
Requirement already satisfied: amulet-nbt~=1.0.3 in ./lib/python3.8/site-packages (from amulet-map-editor) (1.0.3.4)
Requirement already satisfied: pyopengl==3.1.5 in ./lib/python3.8/site-packages (from amulet-map-editor) (3.1.5)
Requirement already satisfied: minecraft-resource-pack~=1.0.0 in ./lib/python3.8/site-packages (from amulet-map-editor) (1.0.2)
Requirement already satisfied: amulet-core~=1.0.0 in ./lib/python3.8/site-packages (from amulet-map-editor) (1.0.0.2)
Requirement already satisfied: numpy==1.17.4 in ./lib/python3.8/site-packages (from amulet-map-editor) (1.17.4)
Requirement already satisfied: wxPython==4.1.0 in ./lib/python3.8/site-packages (from amulet-map-editor) (4.1.0)
Requirement already satisfied: cython>=0.29.13 in ./lib/python3.8/site-packages (from amulet-nbt~=1.0.3->amulet-map-editor) (0.29.21)
Requirement already satisfied: Pillow>=7.1.0 in ./lib/python3.8/site-packages (from minecraft-resource-pack~=1.0.0->amulet-map-editor) (8.1.0)
Requirement already satisfied: six in ./lib/python3.8/site-packages (from wxPython==4.1.0->amulet-map-editor) (1.15.0)

Since I am already posting here: I also had some difficulties getting everything to compile, as there were some dependencies missing that were not resolved by pip. Installing python3-dev, libgtk-3-dev, libwxbase3.0-dev, libwxgtk3.0-gtk3-dev and python-sip-dev solved the issue. Might be handy to mention those on the setup guide as well ;-)

exo-core avatar Jan 30 '21 19:01 exo-core

I still get this bug. It makes Amulet very hard to use when you can’t see the toolbars.

OS: Manjaro Cinnamon Amulet: 0.8.7

Moilleadoir avatar Jun 09 '21 03:06 Moilleadoir

Having this on Ubuntu 18.04, Python 3.8, amulet 0.8.7

samdejong86 avatar Jun 11 '21 19:06 samdejong86

I think I have a similar issue but on macOS 10.13 High Sierra. The toolbars are only visible during the flickering that happens only when resizing the window.

https://user-images.githubusercontent.com/19847464/123715404-85f47e00-d878-11eb-968c-014f52406b6c.mp4

EnricoMonese avatar Jun 28 '21 23:06 EnricoMonese

Having this on Arch Linux, Python 3.9.6, Amulet 0.8.11

Neubulae avatar Jul 07 '21 12:07 Neubulae

Is there somebody who do not have this issue on linux?

leucome avatar Jul 10 '21 20:07 leucome

NixOS with mesa. python 3.8-3.9. invisible toolbox unless I am shaking cursor.

simisimis avatar Jul 25 '21 18:07 simisimis

Ubuntu 21.04 Python 3.9.5 Amulet 0.8.12 Menu items constantly flicker, tried both with and without virtual environment.

giray avatar Aug 09 '21 19:08 giray

I am looking to make the switch to Qt which will hopefully solve this issue and remove some other restrictions. Before I do I want to make sure that it is actually going to solve the issue. Please can all of you try running this demo that adds a button on top of the Qt opengl demo and let me know if it works or not. Before running you will need to install PySide6, PyOpenGL and numpy https://gist.github.com/gentlegiantJGC/3681c8eaa5e9707bf60d4c5ab0613595 image

gentlegiantJGC avatar Aug 29 '21 16:08 gentlegiantJGC

@gentlegiantJGC The demo renders fine for me.

cebtenzzre avatar Aug 29 '21 19:08 cebtenzzre

What OS are you using?

gentlegiantJGC avatar Aug 29 '21 19:08 gentlegiantJGC

@gentlegiantJGC The demo renders fine for me.

What OS are you using?

I'm curious as well. I'm using Cinnamon 5.0.5 with muffin and LightDM on Linux Mint 20.2, which is based on Ubuntu 20.04 focal and I'm running Kernel 5.13-051300-generic (x64). My GPU is an NVIDIA GeForce GTX 1660 and I'm running the official driver: nvidia 470.57.02

EvilSupahFly avatar Aug 29 '21 19:08 EvilSupahFly

@gentlegiantJGC Arch Linux, linux-ck 5.12.19, GTX 970 with nvidia 470.63.01, Qt 6.1.2.

cebtenzzre avatar Aug 30 '21 00:08 cebtenzzre

Runs fine for me in a virtual env with those prereqs.

Manjaro + Cinnamon desktop 5.0.5 Kernel 5.10.60-1 (LTS) NVIDIA GeForce GTX 1070 + driver 470.63.01

Moilleadoir avatar Aug 30 '21 04:08 Moilleadoir

I had the problem on Amulet, but the demo you gave works fine in env.

PopOs (=> Ubuntu) + Kde : Qt : 5.15.2 Kernel Linux 5.11.0-7620-generic x86_64 NVIDIA GTX 1050 + driver 470.57.02 from PopOs

uiytt avatar Aug 31 '21 22:08 uiytt

As you can see in my dual-monitor screenshot below, the demo runs fine on my Manjaro KDE VM, but not my Mint Gnome host, and I suspect my problem lies in there somewhere, as KDE is built using QT while my host is GTK+. I haven't had the time to really dig in to it to find out what's going on.

Screenshot from 2021-08-31 14-02-20

EvilSupahFly avatar Sep 01 '21 15:09 EvilSupahFly

Tested it on Ubuntu 20.4 and it works fine with both, Ubuntu's native Gnome desktop as well as Cinnamon. Hardware info below.

arne@T420:~$ neofetch
            .-/+oossssoo+/-.               arne@T420 
        `:+ssssssssssssssssss+:`           --------- 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 20.04.3 LTS x86_64 
    .ossssssssssssssssssdMMMNysssso.       Host: 4180PH3 ThinkPad T420 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 5.11.0-27-generic 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 3 days, 7 hours, 54 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 3613 (dpkg), 11 (snap) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.0.17 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 2560x1440 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: Cinnamon 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter (Muffin) 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: (Default) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Adwaita-dark [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Faenza-Darker [GTK2/3] 
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: Intel i7-2720QM (8) @ 3.300GHz 
    .ossssssssssssssssssdMMMNysssso.       GPU: NVIDIA Quadro NVS 4200M 
      -+sssssssssssssssssyyyssss+-         Memory: 2528MiB / 15963MiB 
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-.                                       
                                                                   

exo-core avatar Sep 01 '21 16:09 exo-core

Same issue here, using Manjaro Linux (sysinfo - Python 3.9 (VEnv packages).

Demo runs well

Dracon23 avatar Sep 06 '21 13:09 Dracon23

Overlays are all wrong on my Manjaro installation, the demo works fine. Specs:


██████████████████  ████████   
██████████████████  ████████   ---------- 
██████████████████  ████████   OS: Manjaro Linux x86_64 
██████████████████  ████████   Host: MS-7C56 1.0 
████████            ████████   Kernel: 5.10.61-1-MANJARO 
████████  ████████  ████████   Uptime: 1 day, 13 hours, 55 mins 
████████  ████████  ████████   Packages: 1588 (pacman), 19 (flatpak), 9 (snap) 
████████  ████████  ████████   Shell: zsh 5.8 
████████  ████████  ████████   Resolution: 3840x2160 
████████  ████████  ████████   DE: GNOME 40.4 
████████  ████████  ████████   WM: Mutter 
████████  ████████  ████████   WM Theme: Adwaita-maia-compact-dark 
████████  ████████  ████████   Theme: Adwaita-maia-compact [GTK2/3] 
████████  ████████  ████████   Icons: Papirus-Dark-Maia [GTK2/3] 
                               Terminal: gnome-terminal 
                               CPU: AMD Ryzen 5 3600X (12) @ 3.800GHz 
                               GPU: AMD ATI Radeon R9 285/380 
                               Memory: 4506MiB / 32094MiB 

processor286 avatar Sep 29 '21 20:09 processor286

Still an unresolved issue.

  • Arch Linux x86_64
  • Kernel 5.14.6
  • X11
  • NVidia

lionkor avatar Oct 05 '21 13:10 lionkor

I suffered a catastrophic drive failure, and I'm waiting for my replacement to arrive. Once it's here, and I've reinstalled my core OS, I'll take this for another spin while the system is clean.

EvilSupahFly avatar Oct 05 '21 14:10 EvilSupahFly

I have the same issue on Mint OS, no menu in the 3D editor and its flickering like crazy.

PixelRave avatar Oct 10 '21 06:10 PixelRave

I am looking to make the switch to Qt which will hopefully solve this issue and remove some other restrictions. Before I do I want to make sure that it is actually going to solve the issue. Please can all of you try running this demo that adds a button on top of the Qt opengl demo and let me know if it works or not. Before running you will need to install PySide6, PyOpenGL and numpy https://gist.github.com/gentlegiantJGC/3681c8eaa5e9707bf60d4c5ab0613595 image

Demo works without an issue.

DE: KDE Plasma 5.23.4
QT version: 5.15.2
Kernel: 5.15
OS: Arch

hyperstown avatar Dec 18 '21 20:12 hyperstown

Manjaro, KDE Plasma 5.23.4, Qt 5.15.2. Works as expected. image

polyzium avatar Dec 20 '21 21:12 polyzium

Works perfectly

DE: Gnome 40.0
Kernel: 5.15.5
OS: Pop 21.10

uiytt avatar Dec 25 '21 14:12 uiytt

Demo works perfectly demo image

DE: Xfce 4.16
Kernel: 5.10.131-1-MANJARO
OS: Manjaro Linux x86_64

ShockedCoder avatar Aug 08 '22 18:08 ShockedCoder

Hello same issue with amulet running Arch Linux, has there been any success with arch-based distro so far / are there working workarounds for anyone?

Kind regards

sebastianbock17 avatar Oct 22 '22 13:10 sebastianbock17