Solved <focusedlayout> memory/UI rendering bug issue with doModal and history stack - Help!
#1
I'm currently building a own light The Movie DB info script (similar to ExtendedInfo), but I'm facing a very strange and annoying UI issue.

Each dialog object is stored in a list/stack to generate a dialog history, which works well. But after 2-4 dialogs a container is getting weird and focusedlayout of that list is completely "invisible" for the first page. Hard to describe so I've made a video.
I'm out of ideas, because I simply don't know where the problem does came from. I hope that somebody can point me to the correct direction.



Timestamp where the issue appears: https://www.youtube.com/watch?v=g5pGtKIv...tu.be&t=29

Code of my dialog manager:
https://github.com/sualfred/script.embua...ain.py#L60

Debug log:
https://paste.kodi.tv/payofofofe.kodi
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#2
Totally strange. If I temporary increase the item and focusedlayout by 100 pixel in the width the issue is does not happen. And only for the container with images. What is this......
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#3
Ok, found the issue.

It's because close() doesn't deletes the window and each time it was reopened from stack it was passing onInit() again where I was adding items to the container controls. A simple self.first_load bool to check if it's the first time that this window is going to be loaded did the trick.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#4
Thread marked solved.
Reply

Logout Mark Read Team Forum Stats Members Help
<focusedlayout> memory/UI rendering bug issue with doModal and history stack - Help!0