kolinger / rd-usb

Web GUI for RuiDeng/Riden USB testers (UM34C, UM24C, UM25C, TC66C)
GNU General Public License v3.0
231 stars 30 forks source link

Application keeps hanging on "Loading..." #25

Closed SgtBlade closed 2 years ago

SgtBlade commented 2 years ago

I've tried 1.13 and 1.14 Beta but both are stuck on the "Loading...". I tried using both the installer and the lightweight version.

The 127.0.0.1:5000 gives Error 500: Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

I'm on Windows 11 so it might not be compatible yet? Are there any log files I can check?

Console of the lightweight version gives this error:

  File "C:\Users\******\AppData\Local\Temp\_MEI217802\webapp\templates\layout.html", line 12, in top-level template code
    <link href="{{ url_for('static', filename='css/themes/' + theme + '.bootstrap.min.css') }}" rel="stylesheet" />
jinja2.exceptions.UndefinedError: 'theme' is undefined
2022-02-09 14:18:35,766 - INFO - 127.0.0.1 - - [09/Feb/2022 14:18:35] "←[35m←[1mGET / HTTP/1.1←[0m" 500 -
2022-02-09 14:18:36,286 - ERROR - Exception on / [GET]
Traceback (most recent call last):
kolinger commented 2 years ago

Not Windows 11 related. This was bug affecting all new installations since 1.13.0 on all systems.

Fixed in 1.14.1 - available here.

Please let me know if fix works for you too.

SgtBlade commented 2 years ago

Jup, that fixed it.

There is another minor bug I found when moving the window to my second monitor: image

Though this is something minor as it works perfectly well on my main monitor

kolinger commented 2 years ago

Window in a window? Very strange. What happens if you click on COM4 or some navigation item? When does this happen exactly? If you move opened window from one to another screen or does this happen on opening of application? I can't reproduce your result.

SgtBlade commented 2 years ago

It happens as soon as I start the application.

Both windows are the same instance though there are some differences when interacting:

I've had a similar issue with NVIDIA GeForce experience in the past. There it was solved by doing a driver update so this might just be an nvidia bug. I'll try restarting and reinstalling the program to see if one of those fixed it

SgtBlade commented 2 years ago

Restarted & reinstalled but neither fixed it

kolinger commented 2 years ago

Looks like rendering issue. Perhaps related to accelerated rendering via GPU. You can try to disable GPU rendering as workaround. Modify your shortcut to rd-usb by appending "--disable-gpu". You need new version for this - 1.15.0 - available here.

Like this: Screenshot_1

SgtBlade commented 2 years ago

Disabling the GPU fixed it, thanks!