bpozdena/OneDriveGUI

[BUG] OneDrive GUI stops monitoring a few seconds after pressing Start/Play

Closed this issue · 5 comments

Describe the bug
OneDrive GUI stops monitoring a few seconds after pressing Start/Play

To Reproduce
Steps to reproduce the behavior:

  1. Open OneDriveGUI
  2. Click Start (Play button)
  3. Start button (Play) becomes the Stop button
  4. Wait for a few minutes
  5. Stop button becomes the Start button automatically. Message says: "OneDrive is processing items"
    ...

Expected behavior
Stop button does not change to Start button, message: "OneDrive sync is complete"

Screenshots
image

Log
If applicable, add relevant output from log file /tmp/onedrive-gui/onedrive-gui.log.

Note: These are the last lines, with personally identifiable information removed.

2024-09-17 22:50:52,087 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] Attempting to perform a database vacuum to optimise database
2024-09-17 22:50:52,087 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] Database vacuum is complete
2024-09-17 22:50:52,607 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] std.uri.URIException@/usr/lib/ldc/x86_64-linux-gnu/include/d/std/uri.d(228): Expected two hexadecimal digits after '%'
2024-09-17 22:50:52,610 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] ----------------
2024-09-17 22:50:52,610 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] ??:? [0x55a1250db523]
2024-09-17 22:50:52,610 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] ??:? [0x55a125097b4f]
2024-09-17 22:50:52,611 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] ??:? [0x55a125090c4f]
2024-09-17 22:50:52,611 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] ??:? [0x55a125088cd1]
2024-09-17 22:50:52,611 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] ??:? [0x55a12508719b]
2024-09-17 22:50:52,611 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] ??:? [0x55a12511905a]
2024-09-17 22:50:52,611 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] ??:? [0x55a12511678e]
2024-09-17 22:50:52,612 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] ??:? void rt.dmain2._d_run_main2(char[][], ulong, extern (C) int function(char[][])*).runAll() [0x7fb3dffe5b7b]
2024-09-17 22:50:52,612 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] ??:? _d_run_main2 [0x7fb3dffe5995]
2024-09-17 22:50:52,612 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] ??:? _d_run_main [0x7fb3dffe57ed]
2024-09-17 22:50:52,612 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] ??:? [0x7fb3df767249]
2024-09-17 22:50:52,613 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] ??:? __libc_start_main [0x7fb3df767304]
2024-09-17 22:50:52,613 [OneDriveGUI.py:2022][fn=read_stdout][INFO] - [REDACTED@redacted.red] ??:? [0x55a12505c220]
2024-09-17 22:50:53,617 [OneDriveGUI.py:2559][fn=][INFO] - finished worker REDACTED@redacted.red
2024-09-17 22:50:53,618 [OneDriveGUI.py:1956][fn=stop_worker][INFO] - [REDACTED@redacted.red] Waiting for worker to finish...
2024-09-17 22:50:53,618 [OneDriveGUI.py:1960][fn=stop_worker][INFO] - [REDACTED@redacted.red] Quitting thread
2024-09-17 22:50:53,619 [OneDriveGUI.py:1963][fn=stop_worker][INFO] - [REDACTED@redacted.red] Removing thread info
2024-09-17 22:50:53,619 [OneDriveGUI.py:1966][fn=stop_worker][INFO] - [GUI] Remaining running workers: {}

System Info

  • Linux distribution: LMDE 6
  • Desktop environment: Cinnamon 6.2.9
  • Compositor: X11
  • Python version: 3.11.2
  • Version of OneDrive client: 2.5.0-1+np1+1.1

OneDriveGUI info
How did you install OneDriveGUI?: AppImage
What is the name of the AppImage file (if applicable)? : OneDriveGUI-1.1.0-x86_64.AppImage

This looks like the onedrive client crashed for some reason. From the GUI side, I will make sure the crash is better communicated in the GUI.

But I can't help much with the client crash itself. Can you please do the following?:
1)Open the log file /tmp/onedrive-gui/onedrive-gui.log
2)Look for line which says [GUI] Monitoring command: 'exec ....'
3)Run the command from step 2 in your terminal. Just make sure to omit the exec word from the command. If the client still crashes, please report an issue on the onedrive client github page .

Thank you for the prompt reply. I fixed the issue by doing the following steps:

  1. Exit OneDriveGUI
  2. Back up all the contents of /.config/onedrive/accounts/[REDACTED]
  3. Remove all the contents of /.config/onedrive/accounts/[REDACTED]
  4. Run on terminal: onedrive --synchronize
  5. After synchronize completes, three files will be created at /.config/onedrive
  6. Move these three files to /.config/onedrive/accounts/[REDACTED]
  7. Copy "config" from the backup created in step 1 to /.config/onedrive/accounts/[REDACTED]
  8. Restart computer
  9. Open OneDriveGUI
  10. Press Start/Play
  11. Message "OneDrive sync is complete" appears, Stop button stays the same

Because of the fix, I cannot perform the steps you suggested. I will do if I encounter the same error.

Again, thank you.

Encountered the same issue again, on my Linux Mint 22 install. Reported to abraunegg/onedrive#2815

For your information, thank you.

Thank you for the prompt reply. I fixed the issue by doing the following steps:

1. Exit OneDriveGUI

2. Back up all the contents of /.config/onedrive/accounts/[REDACTED]

3. Remove all the contents of /.config/onedrive/accounts/[REDACTED]

4. Run on terminal: onedrive --synchronize

5. After synchronize completes, three files will be created at /.config/onedrive

6. Move these three files to /.config/onedrive/accounts/[REDACTED]

7. Copy "config" from the backup created in step 1 to /.config/onedrive/accounts/[REDACTED]

8. Restart computer

9. Open OneDriveGUI

10. Press Start/Play

11. Message "OneDrive sync is complete" appears, Stop button stays the same

Because of the fix, I cannot perform the steps you suggested. I will do if I encounter the same error.

Again, thank you.

Two files will be created at step 5: items.sqlite3 and refresh_token

@bpozdena
This was an actual bug.

The online file contained HTML sequence that could not be URL decoded, this exception was not being caught leading to the application crash.

PR/fix done, will be merged into 'master' shortly pending user confirmation of fix.