Nerogar / OneTrainer

OneTrainer is a one-stop solution for all your stable diffusion training needs.
GNU Affero General Public License v3.0
1.8k stars 152 forks source link

[Bug] UI gets stuck in a transparent mode #90

Open bash-j opened 11 months ago

bash-j commented 11 months ago

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

Nerogar commented 9 months ago

Please update and check if this still happens.

bash-j commented 9 months ago

Yes the problem is fixed now. Thank you!

KyuubiFox commented 4 months ago

apparently this is still an issue it just happened to me

vgaggia commented 4 months ago

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

KyuubiFox commented 1 month ago

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"

crackfoo commented 1 month ago

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.

O-J1 commented 1 month ago

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

vgaggia commented 1 month ago

@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

O-J1 commented 1 month ago

@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

vgaggia commented 1 month ago

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"

O-J1 commented 1 month ago

You often reinstall or often DDU then reinstall? 🤔

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

vgaggia commented 1 month ago

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

O-J1 commented 1 month ago

but like last month i did a DDU

Dang alrighty. Lets see what Fox says.

KyuubiFox commented 1 month ago

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.

O-J1 commented 1 month ago

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.

hafunui commented 1 month ago

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.

KyuubiFox commented 1 month ago

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

O-J1 commented 3 weeks ago

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