emqx / MQTTX

A Powerful and All-in-One MQTT 5.0 client toolbox for Desktop, CLI and WebSocket.
https://mqttx.app
Apache License 2.0
3.93k stars 449 forks source link

[Bug] Open MQTTX white screen #1792

Closed qq510768394 closed 2 weeks ago

qq510768394 commented 3 weeks ago

What did I do

My computer installed MQTTX for the first time, but it turned on a white screen image

What happened

I tried running as an administrator, I tried uninstalling and installing a higher version I tried to delete it "C:\Users{my_name}\AppData\Roaming\MQTTX\MQTTX.db" But none of them had any effect

Expected

Can open and use MQTTX normally

Environment

More detail

image I suspect it may be related to my local name being Chinese and containing Chinese symbols, my local name is "中文。"

ysfscream commented 3 weeks ago

This issue looks quite strange. I wasn't able to reproduce it on Windows, and it seems you have already tried the previously suggested methods. Please check for any log files in the directory C:\Users\{my_name}\AppData\Roaming\MQTTX\logs, as shown in the screenshot below. If there are any, please share the contents with me.

image
qq510768394 commented 3 weeks ago

Thank you for your reply There is only one file named MQTTX.db (0kb)in the directory of "C:\Users\中文。\AppData\Roaming\MQTTX", and there are no other files I once modified an entry in the registry, which seems to have moved the AppData to the D drive (Volatile Environment.APPDATA=D:\AppData)(User Shell Folders.AppData=D:\AppData) In the "D:\AppData" directory, I saw an MQTTX folder, in the "D:\AppData\MQTTX" I saw the logs folder in "D:\AppData\MQTTX\logs" I have seen three files, namely "2024-10-31T01-17-09.log","2024-10-31T01-17-45.log","log", But the contents of the files are only "[2024-10-31 09:17:42] [INFO] MQTTX Desktop App init" I am unable to move the configuration of this registry back to the C drive as it involves too many local applications,Can I move the folder to a directory to solve this problem?

qq510768394 commented 3 weeks ago

I seem to have found a solution. I copied the folder "D: \ AppData \ MQTTX" to "C: \ Users \ Chinese. \ AppData \ Roaming \ MQTTX" It can be opened normally. I will try using it to see if there are any other issues Thank you again for your answer

ysfscream commented 2 weeks ago

I'm very glad that you have solved this problem! This is also a way to solve the white screen problem under Windows.

But what I want to know more is, did you install it under D:\ during installation? Because perhaps this is also a BUG in Windows installation, and we need to modify the corresponding file path.

qq510768394 commented 2 weeks ago

No, I'm pretty sure. I used the default directory generated by the installation file during installation

ysfscream commented 2 weeks ago

Thank you for your response. I will look into this bug later.

ysfscream commented 2 weeks ago

I'm sorry for missing the context earlier. Based on your description, this issue occurred because you modified the registry settings to redirect AppData to the D: drive (Volatile Environment.APPDATA=D:\AppData). This should not be considered a bug since it's related to a custom system configuration rather than a defect in MQTTX itself.

If you can use MQTTX normally now and don't have any other issues, I will close this issue. Thank you very much for your feedback and detailed reporting!