OneTrainer icon indicating copy to clipboard operation
OneTrainer copied to clipboard

[Bug] UI gets stuck in a transparent mode

Open bash-j opened this issue 2 years ago • 18 comments

Hello, using OneTrainer on Windows 11. I remote into my workstation from a laptop.

I was running a fine tune job overnight, and in the morning the UI was in this transparent mode. I can still interact with the app, but it's hard to see the interface like this. I've seen this before a few times and just assumed the app had frozen, but this morning I noticed it's still working fine, just transparent.

image

bash-j avatar Dec 11 '23 22:12 bash-j

Please update and check if this still happens.

Nerogar avatar Jan 30 '24 18:01 Nerogar

Yes the problem is fixed now. Thank you!

bash-j avatar Feb 01 '24 22:02 bash-j

apparently this is still an issue it just happened to me

KyuubiFox avatar Jul 09 '24 23:07 KyuubiFox

Please update and check if this still happens.

Hey @Nerogar, i saw this printout when it happened to me, it seems to be only on remote desktop sessions where it does this too, i'm on the latest main branch currently, it seems to happen when minimizing a remote desktop session or closing and re-opening it (the rdc i mean), but not always?

Traceback (most recent call last): | 17322/43929 [10:08:52<15:06:32, 2.04s/it, loss=0.0292, smooth loss=0.0543] File "C:\Users\REDACTED\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 1921, in call return self.func(*args) File "C:\Users\REDACTED\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 839, in callit func(*args) File "C:\Users\REDACTED\Desktop\OneTrainer\venv\lib\site-packages\customtkinter\windows\widgets\scaling\scaling_tracker.py", line 187, in check_dpi_scaling cls.update_scaling_callbacks_for_window(window) File "C:\Users\REDACTED\Desktop\OneTrainer\venv\lib\site-packages\customtkinter\windows\widgets\scaling\scaling_tracker.py", line 64, in update_scaling_callbacks_for_window set_scaling_callback(cls.window_dpi_scaling_dict[window] * cls.widget_scaling, File "C:\Users\REDACTED\Desktop\OneTrainer\venv\lib\site-packages\customtkinter\windows\widgets\core_widget_classes\dropdown_menu.py", line 193, in _set_scaling self._configure_menu_for_platforms() File "C:\Users\REDACTED\Desktop\OneTrainer\venv\lib\site-packages\customtkinter\windows\widgets\core_widget_classes\dropdown_menu.py", line 66, in configure_menu_for_platforms super().configure(tearoff=False, File "C:\Users\REDACTED\AppData\Local\Programs\Python\Python310\lib\tkinter_init.py", line 1675, in configure return self.configure('configure', cnf, kw) File "C:\Users\REDACTED\AppData\Local\Programs\Python\Python310\lib\tkinter_init.py", line 1665, in _configure self.tk.call(_flatten((self._w, cmd)) + self._options(cnf)) _tkinter.TclError: invalid command name ".!ctkframe2.!ctktabview.!ctkframe5.!ctkframe.!canvas.!ctkscrollableframe.!ctkf

vgaggia avatar Jul 17 '24 21:07 vgaggia

yeah its not just remote viewing, I havent used remote viewing in years. Here is a screenshot for proof of existence. I am running on windows 11 and all i did was turn off my screen for about and hour or longer with the training session running. I believe it also happens if you lock windows to where it takes you back to the login screen while the program is running too. python_VnDwpBPbUa Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 1921, in call return self.func(*args) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 839, in callit func(*args) File "D:\OneTrainer\OneTrainer\venv\lib\site-packages\customtkinter\windows\widgets\scaling\scaling_tracker.py", line 187, in check_dpi_scaling cls.update_scaling_callbacks_for_window(window) File "D:\OneTrainer\OneTrainer\venv\lib\site-packages\customtkinter\windows\widgets\scaling\scaling_tracker.py", line 64, in update_scaling_callbacks_for_window set_scaling_callback(cls.window_dpi_scaling_dict[window] * cls.widget_scaling, File "D:\OneTrainer\venv\lib\site-packages\customtkinter\windows\widgets\core_widget_classes\dropdown_menu.py", line 193, in _set_scaling self._configure_menu_for_platforms() File "D:\OneTrainer\venv\lib\site-packages\customtkinter\windows\widgets\core_widget_classes\dropdown_menu.py", line 66, in configure_menu_for_platforms super().configure(tearoff=False, File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\tkinter_init.py", line 1675, in configure return self.configure('configure', cnf, kw) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\tkinter_init.py", line 1665, in _configure self.tk.call(_flatten((self._w, cmd)) + self._options(cnf)) _tkinter.TclError: invalid command name ".!ctkframe2.!ctktabview.!ctkframe5.!ctkframe.!canvas.!ctkscrollableframe.!ctkframe.!ctkframe2.!ctkframe.!ctkoptionmenu.!dropdownmenu"

KyuubiFox avatar Oct 12 '24 18:10 KyuubiFox

still happens here too, using RDP, but only shows up after it's been running quite a long time for me... like 1-2 weeks during a training session.

crackfoo avatar Oct 12 '24 21:10 crackfoo

@crackfoo @KyuubiFox Can you both please run update.bat? Then reconfirm. There have been some significant updates recently.

O-J1 avatar Oct 13 '24 05:10 O-J1

@O-J1 I can confirm on the latest version it seems like it's no longer an issue, it still goes transparent when i switch it between monitors, but it comes back to normal when its finished rescaling so I'd say its a non issue. For reference, i'm on 6445f20, which is the latest version i believe

vgaggia avatar Oct 13 '24 11:10 vgaggia

@O-J1 I can confirm on the latest version it seems like it's no longer an issue, it still goes transparent when i switch it between monitors, but it comes back to normal when its finished rescaling so I'd say its a non issue. For reference, i'm on 6445f20, which is the latest version i believe

Yep thats the latest, I wouldnt say its completely a non issue but thats good. Are you sure its not windows "Advanced System Settings", specifically the performance ones which controls how program windows/panels behave? Additionally when was the last time you DDU'ed your GPU driver?

I would strongly suggest DDUing the driver in safe mode then reinstalling the latest version, then rebooting and seeing if that changes anything

O-J1 avatar Oct 13 '24 11:10 O-J1

I often reinstall my GPU drivers cause nvidia is wonky so i'm not gonna do that :p

But as for the performance thing, my windows has all appearance settings in that menu set to on other than "Save taskbar thumbnail previews" & "Show shadows under mouse pointer"

vgaggia avatar Oct 13 '24 11:10 vgaggia

You often reinstall or often DDU then reinstall? 🤔

If its the former, its quite plausible there are corrupted/outdated files.

O-J1 avatar Oct 13 '24 12:10 O-J1

Just a normal clean install from nvidia's installer package, but like last month i did a DDU

vgaggia avatar Oct 13 '24 12:10 vgaggia

but like last month i did a DDU

Dang alrighty. Lets see what Fox says.

O-J1 avatar Oct 13 '24 12:10 O-J1

I updated it and there were a lot of updates, if anything should happen again ill will post again. but i dont train loras too often. i did run one last night though and it seemed fine but its as someone else said it doesnt always happen.

KyuubiFox avatar Oct 13 '24 16:10 KyuubiFox

I updated it and there were a lot of updates, if anything should happen again ill will post again. but i dont train loras too often. i did run one last night though and it seemed fine but its as someone else said it doesnt always happen.

Alright, I will give it another week then and if I dont hear back from either of you I will assume all is well.

O-J1 avatar Oct 13 '24 16:10 O-J1

I'm having the exact same issue, with the same console output. I just updated today, too.

On windows 10, with multiple displays. This error can sometimes occur when I drag the gui to a display with a different resolution. The window goes transparent while it's readjusting all the UI elements. This is when the error throws for me, and the window remains transparent, but seemingly still fully functional.

If I turn off my monitors, as I would do during an overnight training session, when I turn them back on the window is sometimes on a different display. This can also trigger the error.

I'm able to trigger the error consistently if I make a selection in the dropdown menus at the top of the window, namely the config selection, or the stable diffusion version selection, then move the window to a display of a different resolution.

hafunui avatar Oct 16 '24 15:10 hafunui

I can confirm this is still happening after all the updates.

KyuubiFox avatar Oct 16 '24 17:10 KyuubiFox

Alright I just encountered this bug too myself haha. All I did was switch windows and when I switched back, it was transperant

O-J1 avatar Oct 28 '24 12:10 O-J1

Finally this bug is closed (at least for now 😂)! 🥳 Please update to the newest version.

The issue still apparently exists for Linux but we will cross that bridge when we find the time

O-J1 avatar Sep 01 '25 08:09 O-J1