addwater icon indicating copy to clipboard operation
addwater copied to clipboard

[KNOWN BUG] Empty GUI / Crash on updating

Open largestgithubuseronearth opened this issue 1 year ago • 17 comments

After the most recent FGT update, Add Water crashes with an error about the string literal.

This issue will be resolved in the next day or so.

Sorry for any inconvenience this causes.

I was just about to post this, thanks for the transparency and update. For anyone wondering if it's happening to them too, Water doesn't launch after the most recent update. However, if you go to the top right in Gnome and look for background running apps, water should still show up and you can click on it from there (after it failed to launch of course) and it currently shows an empty screen like shown below:

Screenshot from 2024-12-12 23-12-59

Just documenting that for anyone. Looking forward to the update to fix this. Thanks again!

Scotty-Trees avatar Dec 13 '24 04:12 Scotty-Trees

I've created a fix and am in the process of testing to ensure it causes no new issues when transitioning from the current version of the app.

If all goes well, the hotfix will come to Flathub tomorrow.

Thank you all for your patience.

A hotfix to v1.2.1 has been submitted to Flathub and should be available within a few hours. Thank you all for your patience, this was an entirely an oversight on my end.

Please let me know if you encounter any further issues after updating to v1.2.1.

Thanks again

Nope. :disappointed:

1.2.1
/home/yochanan/.cache/add-water already exists. Skipped.
/home/yochanan/.cache/add-water/downloads already exists. Skipped.
/home/yochanan/.cache/add-water/logs already exists. Skipped.
All paths initialized.
-------------------------
[INFO]   addwater.apps.firefox.firefox_details — 16:01 || Setting Firefox data path: /home/yochanan/.mozilla/firefox/
[INFO]   addwater.apps.firefox.firefox_details — 16:01 || Valid path. Done.
[INFO]   addwater.backend — 16:01 || Backend created for Firefox
[INFO]   addwater.window — 16:01 || resetting gui pages
[INFO]   addwater.components.online — 16:01 || Checking for updates...
Traceback (most recent call last):
  File "/usr/share/addwater/addwater/main.py", line 98, in do_activate
    win = AddWaterWindow(application=self, backends=self.backends)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/addwater/addwater/window.py", line 68, in __init__
    self.create_pages(self.backends)
  File "/usr/share/addwater/addwater/window.py", line 79, in create_pages
    page = AddWaterPage(backend=each)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/addwater/addwater/page.py", line 96, in __init__
    self.request_update_status()
  File "/usr/share/addwater/addwater/page.py", line 101, in request_update_status
    update_status = self.backend.update_theme()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/addwater/addwater/backend.py", line 123, in update_theme
    status = self.online_manager.get_updates_online(version, path_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/addwater/addwater/components/online.py", line 64, in get_updates_online
    update_info = self._get_release_info(self.theme_url)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/addwater/addwater/components/online.py", line 236, in _get_release_info
    version = int(latest_release["tag_name"].lstrip("v"))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '133.1'

EDIT: Not sure why the log reports 1.2, I just installed 1.2.1.

EDIT: 1.2.1b1 launches while 1.2.1 does not:

1.2.1b1
/home/yochanan/.cache/add-water already exists. Skipped.
/home/yochanan/.cache/add-water/downloads already exists. Skipped.
/home/yochanan/.cache/add-water/logs already exists. Skipped.
All paths initialized.
-------------------------
[DEBUG]   root — 16:07 || 
	------------------------------------------------------------------------
	------------------------------------------------------------------------
	System Info:
	Add Water — An installer for the GNOME theme for Firefox and Thunderbird
	Version: 1.2
	Time (UTC): 2024-12-13 23:07:02.433900+00:00
	GTK version: 4.16.7
	ADW version: 1.6.2
	------------------------------------------------------------------------
	
[DEBUG]   addwater.apps.firefox.firefox_details — 16:07 || creating new Gsettings reader for Firefox
[DEBUG]   addwater.apps.firefox.firefox_details — 16:07 || Set installed version number to (133, 1, 0)
[INFO]   addwater.apps.firefox.firefox_details — 16:07 || Setting Firefox data path: /home/yochanan/.mozilla/firefox/
[INFO]   addwater.apps.firefox.firefox_details — 16:07 || Valid path. Done.
[DEBUG]   addwater.components.online — 16:07 || online manager is now alive
[INFO]   addwater.backend — 16:07 || Backend created for Firefox
[INFO]   addwater.window — 16:07 || resetting gui pages
[DEBUG]   addwater.apps.firefox.firefox_details — 16:07 || creating new Gsettings reader for Firefox
[DEBUG]   addwater.apps.firefox.firefox_details — 16:07 || Preferred profile: 87syjf8o.default-release
[INFO]   addwater.components.online — 16:07 || Checking for updates...
[DEBUG]   urllib3.connectionpool — 16:07 || Starting new HTTPS connection (1): api.github.com:443
[DEBUG]   urllib3.connectionpool — 16:07 || https://api.github.com:443 "GET /repos/rafaelmardojai/firefox-gnome-theme/releases HTTP/1.1" 200 None
[DEBUG]   addwater.components.online — 16:07 || Remaining Github API calls for the next hour: 57
[INFO]   addwater.components.online — 16:07 || no update available
[DEBUG]   addwater.apps.firefox.firefox_details — 16:07 || Set installed version number to (133, 1, 0)
[DEBUG]   addwater.window — 16:07 || page created successfully
[DEBUG]   addwater.window — 16:07 || 1 page available

yochananmarqos avatar Dec 13 '24 23:12 yochananmarqos

I see what happened. I sent the git commands in the wrong order so my local repo is different than the Github one.

Apologies. I'll correct that and resend the update.

Okay, resubmitted to Flathub and I triple-checked it this time. You'll received v1.2.1 sometime today.

Thanks for letting me know. Sorry again for the delay.

1.2.2 works fine. :+1:

However, you still have the developer profile option enabled by default instead of user from 1.2.1b1.

yochananmarqos avatar Dec 13 '24 23:12 yochananmarqos

However, you still have the developer profile option enabled by default instead of user from 1.2.1b1.

Where does that occur? I tested the build from Flathub and it has the user profile enabled.

The default profile value in meson-options was 'user' for each tag, then it was changed to 'developer' for 1.2.1b1 and was never switched back.

EDIT: I suppose it would help to mention I'm building from source and packaging it for Manjaro and the AUR.

yochananmarqos avatar Dec 14 '24 00:12 yochananmarqos

The default profile value in meson-options was 'user' for each tag, then it was changed to 'developer' for 1.2.1b1 and was never switched back.

This option gets overridden at build time by an argument in the Flatpak manifest.

dev.qwery.AddWater.json sets it to user. This is what Flathub uses. dev.qwery.AddWater.Devel.json sets it to developer.

So it doesn't really matter what option is picked in meson.options. It's all about which manifest file is used.

Doh! I'm really bad about editing after submitting. :laughing:

See my above edited comment.

yochananmarqos avatar Dec 14 '24 00:12 yochananmarqos

Ah okay. Would it make it easier for you if it was user by default?

Feel free to do whatever works best for you. I can use -Dprofile=user while building, that's no problem.

By the way, guess what the Firefox Theme button does in the Manjaro GNOME Layout Switcher? :grin:

image

yochananmarqos avatar Dec 14 '24 00:12 yochananmarqos

By the way, guess what the Firefox Theme button does in the Manjaro GNOME Layout Switcher? 😁

Oh that's so cool! I genuinely had no idea it was in AUR. I'm very happy that you've found it helpful :)

Indeed, it is very helpful!

:bow:

yochananmarqos avatar Dec 14 '24 00:12 yochananmarqos

I'm on version 1.2.5 and the same issue is popping up again, even after uninstalling and reinstalling the app through flathub with the Delete data option.

nickbeth avatar Feb 20 '25 10:02 nickbeth

I'm on version 1.2.5 and the same issue is popping up again, even after uninstalling and reinstalling the app through flathub with the Delete data option.

Sorry to hear that, @nickbeth . Please fill out a new issue so we can see investigate further as the cause is probably different than it was in this case. Be sure to include the log file in your new issue. You can save a copy from the menu "About Add Water > Troubleshooting".

Thank you for your patience.