Elinvention / gnome-shell-extension-nasa-apod

Change your wallpaper daily to the NASA's astronomy picture of the day
https://extensions.gnome.org/extension/1202/nasa-apod/
GNU General Public License v3.0
119 stars 21 forks source link

Refresh only happens after reboot. #23

Closed gavin-orr closed 4 years ago

gavin-orr commented 5 years ago

If I leave my Ubuntu host running overnight, the APOD extension does not update with the latest APOD image.

For example On the 5 April, the extension is still attempting to download the 4 April APOD image. The 5 April Image is available on the APOD website.

It looks like the date being used is the last Boot date not the current date ? If I then reboot, the latest APOD is downloaded.

NASA APOD extension: xdg-open https://apod.nasa.gov/apod/ Opening in existing browser session. NASA APOD extension: https://api.nasa.gov/planetary/apod?api_key=De11HvVY6eKbT0ySGbRRTlkaAgjRIwUz0YmDzwg8&date=2019-04-04 NASA APOD extension: 942/1000 requests per hour remaining NASA APOD extension: /home/gavin/.cache/apod/2019-04-04-Messier 2.jpg already downloaded

Thanks

NASA APOD extension: https://api.nasa.gov/planetary/apod?api_key=XXXXXX&date=2019-04-04
NASA APOD extension: 943/1000 requests per hour remaining
NASA APOD extension: /home/XXXX/.cache/apod/2019-04-04-Messier 2.jpg already downloaded

xxx@yyy:~$ date
Fri  5 Apr 14:11:02 BST 2019
xxx@yyy:~$ journalctl -f -o cat /usr/bin/gnome-shell | tee /tmp/nasa.log
NASA APOD extension: xdg-open https://apod.nasa.gov/apod/
Opening in existing browser session.
NASA APOD extension: https://api.nasa.gov/planetary/apod?api_key=De11HvVY6eKbT0ySGbRRTlkaAgjRIwUz0YmDzwg8&date=2019-04-04
NASA APOD extension: 942/1000 requests per hour remaining
NASA APOD extension: /home/gavin/.cache/apod/2019-04-04-Messier 2.jpg already downloaded
Object St.Label (0x56144ddd2e40), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
== Stack trace for context 0x56144c05d1d0 ==
#0   561450ba2390 i   /home/gavin/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/extension.js:242 (7f01b9605ee0 @ 420)
#1   7ffc2cfef260 b   resource:///org/gnome/gjs/modules/_legacy.js:82 (7f01baeb0b80 @ 71)
#2   561450ba22f0 i   /home/gavin/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/extension.js:188 (7f01b9605d30 @ 166)
#3   7ffc2cff01e0 b   resource:///org/gnome/gjs/modules/_legacy.js:82 (7f01baeb0b80 @ 71)
#4   7ffc2cff02b0 b   self-hosted:979 (7f01baef0280 @ 440)
#5   561450ba2240 i   /home/gavin/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/utils.js:39 (7f01b962eb80 @ 236)
#6   561450ba21b8 i   /home/gavin/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/extension.js:224 (7f01b9605e50 @ 68)
#7   7ffc2cff2c40 b   resource:///org/gnome/gjs/modules/_legacy.js:82 (7f01baeb0b80 @ 71)
#8   561450ba2108 i   /home/gavin/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/extension.js:384 (7f01b962e3a0 @ 261)
#9   7ffc2cff3bc0 b   resource:///org/gnome/gjs/modules/_legacy.js:82 (7f01baeb0b80 @ 71)
#10   561450ba2040 i   /home/gavin/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/extension.js:308 (7f01b962e160 @ 263)
#11   7ffc2cff4b40 b   self-hosted:979 (7f01baef0280 @ 440)
NASA APOD extension: Next check in 60 seconds @ local time 14:12
st_label_set_text: assertion 'ST_IS_LABEL (label)' failed
Object St.Label (0x56144fa58460), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
== Stack trace for context 0x56144c05d1d0 ==
#0   561450ba2390 i   /home/gavin/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/extension.js:242 (7f01b9605ee0 @ 420)
#1   7ffc2cfef260 b   resource:///org/gnome/gjs/modules/_legacy.js:82 (7f01baeb0b80 @ 71)
#2   561450ba22f0 i   /home/gavin/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/extension.js:188 (7f01b9605d30 @ 166)
#3   7ffc2cff01e0 b   resource:///org/gnome/gjs/modules/_legacy.js:82 (7f01baeb0b80 @ 71)
#4   7ffc2cff02b0 b   self-hosted:979 (7f01baef0280 @ 440)
#5   561450ba2240 i   /home/gavin/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/utils.js:39 (7f01b962eb80 @ 236)
#6   561450ba21b8 i   /home/gavin/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/extension.js:224 (7f01b9605e50 @ 68)
#7   7ffc2cff2c40 b   resource:///org/gnome/gjs/modules/_legacy.js:82 (7f01baeb0b80 @ 71)
#8   561450ba2108 i   /home/gavin/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/extension.js:384 (7f01b962e3a0 @ 261)
#9   7ffc2cff3bc0 b   resource:///org/gnome/gjs/modules/_legacy.js:82 (7f01baeb0b80 @ 71)
#10   561450ba2040 i   /home/gavin/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/extension.js:308 (7f01b962e160 @ 263)
#11   7ffc2cff4b40 b   self-hosted:979 (7f01baef0280 @ 440)
NASA APOD extension: Next check in 60 seconds @ local time 14:12
st_label_set_text: assertion 'ST_IS_LABEL (label)' failed
NASA APOD extension: Next check in 21600 seconds @ local time 20:11
NASA APOD extension: Refresh done.
Object Meta.Background (0x56144fd63990), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
== Stack trace for context 0x56144c05d1d0 ==
#0   561450ba20c8 i   resource:///org/gnome/shell/ui/background.js:741 (7f01bac0c8b0 @ 22)
#1   561450ba2040 i   resource:///org/gnome/shell/ui/tweener.js:112 (7f01baed9040 @ 37)
#2   7ffc2cff44e0 b   resource:///org/gnome/gjs/modules/tweener/tweener.js:208 (7f01baedb9d0 @ 54)
#3   7ffc2cff45b0 I   resource:///org/gnome/gjs/modules/tweener/tweener.js:342 (7f01baedba60 @ 1742)
#4   7ffc2cff4660 b   resource:///org/gnome/gjs/modules/tweener/tweener.js:355 (7f01baedbaf0 @ 100)
#5   7ffc2cff46f0 b   resource:///org/gnome/gjs/modules/tweener/tweener.js:370 (7f01baedbb80 @ 10)
#6   7ffc2cff4770 I   resource:///org/gnome/gjs/modules/signals.js:128 (7f01baec18b0 @ 386)
#7   7ffc2cff4820 b   resource:///org/gnome/shell/ui/tweener.js:244 (7f01baed99d0 @ 159)
#8   7ffc2cff48f0 b   resource:///org/gnome/gjs/modules/_legacy.js:82 (7f01baeb0b80 @ 71)
#9   7ffc2cff4990 b   resource:///org/gnome/shell/ui/tweener.js:219 (7f01baed9940 @ 15)
g_object_run_dispose: assertion 'G_IS_OBJECT (object)' failed
Object Meta.Background (0x56144fd63990), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
== Stack trace for context 0x56144c05d1d0 ==
#0   561450ba20c8 i   resource:///org/gnome/shell/ui/background.js:741 (7f01bac0c8b0 @ 22)
#1   561450ba2040 i   resource:///org/gnome/shell/ui/tweener.js:112 (7f01baed9040 @ 37)
#2   7ffc2cff44e0 b   resource:///org/gnome/gjs/modules/tweener/tweener.js:208 (7f01baedb9d0 @ 54)
#3   7ffc2cff45b0 I   resource:///org/gnome/gjs/modules/tweener/tweener.js:342 (7f01baedba60 @ 1742)
#4   7ffc2cff4660 b   resource:///org/gnome/gjs/modules/tweener/tweener.js:355 (7f01baedbaf0 @ 100)
#5   7ffc2cff46f0 b   resource:///org/gnome/gjs/modules/tweener/tweener.js:370 (7f01baedbb80 @ 10)
#6   7ffc2cff4770 I   resource:///org/gnome/gjs/modules/signals.js:128 (7f01baec18b0 @ 386)
#7   7ffc2cff4820 b   resource:///org/gnome/shell/ui/tweener.js:244 (7f01baed99d0 @ 159)
#8   7ffc2cff48f0 b   resource:///org/gnome/gjs/modules/_legacy.js:82 (7f01baeb0b80 @ 71)
#9   7ffc2cff4990 b   resource:///org/gnome/shell/ui/tweener.js:219 (7f01baed9940 @ 15)
g_object_run_dispose: assertion 'G_IS_OBJECT (object)' failed
Object Meta.Background (0x56144fd63990), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
== Stack trace for context 0x56144c05d1d0 ==
#0   561450ba20c8 i   resource:///org/gnome/shell/ui/background.js:741 (7f01bac0c8b0 @ 22)
#1   561450ba2040 i   resource:///org/gnome/shell/ui/tweener.js:112 (7f01baed9040 @ 37)
#2   7ffc2cff44e0 b   resource:///org/gnome/gjs/modules/tweener/tweener.js:208 (7f01baedb9d0 @ 54)
#3   7ffc2cff45b0 I   resource:///org/gnome/gjs/modules/tweener/tweener.js:342 (7f01baedba60 @ 1742)
#4   7ffc2cff4660 b   resource:///org/gnome/gjs/modules/tweener/tweener.js:355 (7f01baedbaf0 @ 100)
#5   7ffc2cff46f0 b   resource:///org/gnome/gjs/modules/tweener/tweener.js:370 (7f01baedbb80 @ 10)
#6   7ffc2cff4770 I   resource:///org/gnome/gjs/modules/signals.js:128 (7f01baec18b0 @ 386)
#7   7ffc2cff4820 b   resource:///org/gnome/shell/ui/tweener.js:244 (7f01baed99d0 @ 159)
#8   7ffc2cff48f0 b   resource:///org/gnome/gjs/modules/_legacy.js:82 (7f01baeb0b80 @ 71)
#9   7ffc2cff4990 b   resource:///org/gnome/shell/ui/tweener.js:219 (7f01baed9940 @ 15)
g_object_run_dispose: assertion 'G_IS_OBJECT (object)' failed
Object Meta.Background (0x56144fd63890), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
== Stack trace for context 0x56144c05d1d0 ==
#0   561450ba20c8 i   resource:///org/gnome/shell/ui/background.js:741 (7f01bac0c8b0 @ 22)
#1   561450ba2040 i   resource:///org/gnome/shell/ui/tweener.js:112 (7f01baed9040 @ 37)
#2   7ffc2cff44e0 b   resource:///org/gnome/gjs/modules/tweener/tweener.js:208 (7f01baedb9d0 @ 54)
#3   7ffc2cff45b0 I   resource:///org/gnome/gjs/modules/tweener/tweener.js:342 (7f01baedba60 @ 1742)
#4   7ffc2cff4660 b   resource:///org/gnome/gjs/modules/tweener/tweener.js:355 (7f01baedbaf0 @ 100)
#5   7ffc2cff46f0 b   resource:///org/gnome/gjs/modules/tweener/tweener.js:370 (7f01baedbb80 @ 10)
#6   7ffc2cff4770 I   resource:///org/gnome/gjs/modules/signals.js:128 (7f01baec18b0 @ 386)
#7   7ffc2cff4820 b   resource:///org/gnome/shell/ui/tweener.js:244 (7f01baed99d0 @ 159)
#8   7ffc2cff48f0 b   resource:///org/gnome/gjs/modules/_legacy.js:82 (7f01baeb0b80 @ 71)
#9   7ffc2cff4990 b   resource:///org/gnome/shell/ui/tweener.js:219 (7f01baed9940 @ 15)
g_object_run_dispose: assertion 'G_IS_OBJECT (object)' failed
Elinvention commented 5 years ago

I think this happens only if you click on an image in Cache section in the settings?

bernardolm commented 4 years ago

And... If you uninstall, this keep running and updating the wallpaper. Probably stop only after reboot too.

Elinvention commented 4 years ago

Does this still happen? I can't reproduce it.

bernardolm commented 4 years ago

@Elinvention I'll test now and will back with feedback

bernardolm commented 4 years ago

@Elinvention after uninstall, running state stop :+1: The error noticed by me is gone.

Elinvention commented 4 years ago

Thanks for your feedback.