BinaryQuantumSoul / sdnext-modernui

SD.Next ModernUI
GNU Affero General Public License v3.0
15 stars 7 forks source link

Refreshing UI Theme breaks the ability to change themes #61

Closed BrianOsburn closed 1 month ago

BrianOsburn commented 1 month ago

Issue Description

Go to the Systems * User Interface Options Drop down lists a bunch of Themes (including one Midnight-Amethyst I think)

Hit the refresh button Totally new list comes up - and it will not switch to any of the themes listed..

Backend

Chrome (and derivatives)

Branch

Desktop

Version Platform Description

2024-05-29 09:19:02,104 | sd | INFO | launch | Starting SD.Next
2024-05-29 09:19:02,107 | sd | INFO | installer | Logger: file="F:\Stability Matrix\Data\Packages\SD.Next Web UI\sdnext.log" level=DEBUG size=65 mode=create
2024-05-29 09:19:02,108 | sd | INFO | installer | Python 3.10.11 on Windows
2024-05-29 09:19:02,235 | sd | INFO | installer | Version: app=sd.next updated=2024-05-29 hash=042cac88 branch=master url=https://github.com/vladmandic/automatic/tree/master
2024-05-29 09:19:02,597 | sd | INFO | launch | Platform: arch=AMD64 cpu=Intel64 Family 6 Model 151 Stepping 2, GenuineIntel system=Windows release=Windows-10-10.0.22621-SP0 python=3.10.11

Relevant log output

2024-05-29 11:08:14,461 | sd | INFO | ui | Settings: changed=9 ['samples_save_zip', 'samples_filename_pattern', 'outdir_samples', 'theme_type', 'theme_style', 'gradio_theme', 'notification_audio_enable', 'ch_civiai_api_key', 'ch_nsfw_threshold']
2024-05-29 11:08:39,413 | sd | ERROR | middleware | API error: GET: http://192.168.1.124:7860/file=html/themes.json {'error': 'HTTPException', 'code': 404, 'detail': 'File not found: html/themes.json.', 'body': '', 'errors': '404: File not found: html/themes.json.'}
2024-05-29 11:08:43,659 | sd | INFO | ui | Settings: changed=1 ['gradio_theme']
2024-05-29 11:08:43,660 | sd | DEBUG | shared | Save: file="config.json" json=42 bytes=1753 time=0.002
2024-05-29 11:09:59,934 | sd | DEBUG | launch | Server: alive=True jobs=1 requests=1911 uptime=6112 memory=1.0/31.75 backend=Backend.DIFFUSERS state=idle
2024-05-29 11:12:00,132 | sd | DEBUG | launch | Server: alive=True jobs=1 requests=1913 uptime=6232 memory=1.0/31.75 backend=Backend.DIFFUSERS state=idle
2024-05-29 11:14:00,304 | sd | DEBUG | launch | Server: alive=True jobs=1 requests=1915 uptime=6352 memory=1.0/31.75 backend=Backend.DIFFUSERS state=idle
2024-05-29 11:16:00,446 | sd | DEBUG | launch | Server: alive=True jobs=1 requests=1917 uptime=6473 memory=1.0/31.75 backend=Backend.DIFFUSERS state=idle
2024-05-29 11:17:59,579 | sd | DEBUG | launch | Server: alive=True jobs=1 requests=1919 uptime=6592 memory=1.0/31.75 backend=Backend.DIFFUSERS state=idle
2024-05-29 11:19:59,744 | sd | DEBUG | launch | Server: alive=True jobs=1 requests=1921 uptime=6712 memory=1.0/31.75 backend=Backend.DIFFUSERS state=idle
2024-05-29 11:21:59,915 | sd | DEBUG | launch | Server: alive=True jobs=1 requests=1923 uptime=6832 memory=1.0/31.75 backend=Backend.DIFFUSERS state=idle
2024-05-29 11:24:00,091 | sd | DEBUG | launch | Server: alive=True jobs=1 requests=1925 uptime=6952 memory=1.0/31.75 backend=Backend.DIFFUSERS state=idle
2024-05-29 11:26:00,263 | sd | DEBUG | launch | Server: alive=True jobs=1 requests=1927 uptime=7072 memory=1.0/31.75 backend=Backend.DIFFUSERS state=idle
2024-05-29 11:28:00,418 | sd | DEBUG | launch | Server: alive=True jobs=1 requests=1929 uptime=7193 memory=1.0/31.75 backend=Backend.DIFFUSERS state=idle
2024-05-29 11:28:14,863 | sd | ERROR | middleware | API error: GET: http://192.168.1.124:7860/file=html/themes.json {'error': 'HTTPException', 'code': 404, 'detail': 'File not found: html/themes.json.', 'body': '', 'errors': '404: File not found: html/themes.json.'}
2024-05-29 11:28:32,754 | sd | INFO | theme | Refreshing UI themes
2024-05-29 11:28:32,925 | sd | DEBUG | shared | Save: file="html\themes.json" json=122 bytes=35863 time=0.011
2024-05-29 11:28:32,926 | sd | DEBUG | theme | UI themes available: type=Modern themes=28
2024-05-29 11:28:52,122 | sd | INFO | theme | Refreshing UI themes
2024-05-29 11:28:52,239 | sd | DEBUG | shared | Save: file="html\themes.json" json=122 bytes=35863 time=0.001
2024-05-29 11:28:52,240 | sd | DEBUG | theme | UI themes available: type=Modern themes=28
2024-05-29 11:28:55,810 | sd | ERROR | middleware | API error: GET: http://192.168.1.124:7860/file=html/Vlad-Default.jpg {'error': 'HTTPException', 'code': 404, 'detail': 'File not found: html/Vlad-Default.jpg.', 'body': '', 'errors': '404: File not found: html/Vlad-Default.jpg.'}
2024-05-29 11:29:10,579 | sd | ERROR | middleware | API error: GET: http://192.168.1.124:7860/file=html/Aptro-AmberGlow.jpg {'error': 'HTTPException', 'code': 404, 'detail': 'File not found: html/Aptro-AmberGlow.jpg.', 'body': '', 'errors': '404: File not found: html/Aptro-AmberGlow.jpg.'}
2024-05-29 11:29:14,028 | sd | INFO | ui | Settings: changed=1 ['gradio_theme']
2024-05-29 11:29:14,032 | sd | DEBUG | shared | Save: file="config.json" json=42 bytes=1761 time=0.004
2024-05-29 11:29:14,324 | sd | ERROR | middleware | API error: GET: http://192.168.1.124:7860/file=javascript/Aptro-AmberGlow.css?1716988415.0910852 {'error': 'HTTPException', 'code': 404, 'detail': 'File not found: javascript/Aptro-AmberGlow.css.', 'body': '', 'errors': '404: File not found: javascript/Aptro-AmberGlow.css.'}
2024-05-29 11:30:00,456 | sd | DEBUG | launch | Server: alive=True jobs=1 requests=1960 uptime=7313 memory=1.0/31.75 backend=Backend.DIFFUSERS state=idle
2024-05-29 11:32:00,474 | sd | DEBUG | launch | Server: alive=True jobs=1 requests=1976 uptime=7433 memory=1.0/31.75 backend=Backend.DIFFUSERS state=idle
2024-05-29 11:33:59,570 | sd | DEBUG | launch | Server: alive=True jobs=1 requests=1978 uptime=7552 memory=1.0/31.75 backend=Backend.DIFFUSERS state=idle
2024-05-29 11:35:37,960 | sd | INFO | ui_loadsave | UI defaults reset: ui-config.json
2024-05-29 11:35:59,637 | sd | DEBUG | launch | Server: alive=True jobs=1 requests=1998 uptime=7672 memory=1.0/31.75 backend=Backend.DIFFUSERS state=idle

Acknowledgements

BrianOsburn commented 1 month ago

Realized that the list is based on the theme type! Closing this