davidpob99 / nasa-wallpaper

Change your desktop background with a NASA image
Apache License 2.0
42 stars 10 forks source link

Changing wallpaper generates an error and crash #5

Open EmiliaB0nes opened 5 years ago

EmiliaB0nes commented 5 years ago

Hi,

I am currently using a fresh/updated Manjaro Gnome 18.0.4 installation.

I installed nasa-wallpaper from the AUR repo.

Here is what happens when I execute nasa-wallpaper with "nasa-wallpaper -a" :

Title: 1901 Photograph: The Orion Nebula Date: 2019-08-17 Explanation: By the turn of the 20th century advances in photography contributed an important tool for astronomers. Improving photographic materials, long exposures, and new telescope designs produced astronomical images with details not visible at the telescopic eyepiece alone. Remarkably recognizable to astrophotographers today, this stunning image of the star forming Orion Nebula was captured in 1901 by American astronomer and telescope designer George Ritchey. The original glass photographic plate, sensitive to green and blue wavelengths, has been digitized and light-to-dark inverted to produce a p ositive image. His hand written notes indicate a 50 minute long exposure that ended at dawn and a reflecting telescope aperture of 24 inches masked to 18 inches to improve the sharpness of the recorded image. Ritchey's plates from over a hundred years ago preserve astronomical data and can still be used for exploring astrophysical processes. Copyright: Changing wallpaper... thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5 note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.

pad92 commented 4 years ago

Hello,

my backtrace on arch

# RUST_BACKTRACE=1 nasa-wallpaper -a
Title: Decorating the Sky
Date: 2019-12-12
Explanation: Bright stars, clouds of dust and glowing nebulae decorate this cosmic scene, a skyscape just north of Orion's belt. Close to the plane of our Milky Way galaxy, the wide field view spans about 5.5 degrees. Striking bluish M78, a reflection nebula, is on the right. M78's tint is due to dust preferentially reflecting the blue light of hot, young stars. In colorful contrast, the red sash of glowing hydrogen gas sweeping through the center is part of the region's faint but extensive emission nebula known as Barnard's Loop. At lower left, a dark dust cloud forms a prominent silhouette cataloged as LDN 1622. While M78 and the complex Barnard's Loop are some 1,500 light-years away, LDN 1622 is likely to be much closer, only about 500 light-years distant from our fair planet Earth.
Copyright: Leonardo Julio
Changing wallpaper...
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NotPresent', src/libcore/result.rs:997:5
stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: __libc_start_main
  16: <unknown>
# pacman -Q nasa-wallpaper
nasa-wallpaper 2.0-1

# nasa-wallpaper -V
nasa-wallpaper 2.0.0
naviabbot commented 4 years ago

I think I'm facing the same issue. Attached is my backtrace, generated with RUST_BACKTRACE=1 ./nasa-wallpaer -a 2> backtrace.txt

backtrace.txt

I'm running on Manjaro as well

Version Info:

rustc 1.43.0
nasa-wallpaper 2.0.0
stonespheres commented 3 years ago

I believe this is due to differing timezones. See #9

Solved: I am in UTC+8, application is asking for image from a date a day ahead of NASA's timezone, the image simply doesn't exist.

It looks like we can change the program where it calls local and instead call timezone.

liwiwd commented 1 year ago

The project rely on wallpaper-2.0.1 package to configure wallpaper, and for different desktop environment, the package needs different dependency.

desktop environment dependency
GNOME gsettings
i3 feh
KDE qdbus
X-Cinnamon dconf
MATE dconf
XFCE xfconf-query
LXDE pcmanfm
Deepin dconf

Here is the source code.

I have the same problem, my distribution is openSUSE Leap 15.4, KDE Plasma version 5.24.4. The dependency for KDE is qdbus, at /usr/lib64/qt5/bin/qdbus, has a symbolic link at /usr/bin/qdbus-qt5. But system's default PATH is $PATH=/usr/local/bin:/usr/bin:/bin, when I run nasa-wallpaper, it can not find qdbus and will throw the error: No such file or directory. I create a new symbolic link in /usr/bin/ and nasa-wallpaper runs normally.

So maybe you can check the dependency for your desktop environment.

davidpob99 commented 10 months ago

I changed the timezone (commit 8a2b79ed7961f51e904510c4b3b399f051a0cd8c) to Eastern Standard Time (EST), that it is the timezone where APOD is published (according to https://asterisk.apod.com/viewtopic.php?t=23771)

Also I updated the wallpaper crate to the latest version (commit c15c964f2b16fde21bd9a043537bccc0a0ce348b).

If possible, please check if the error has been solved (it has to be built from source, there is no release with the updates yet, in the following days I am going to publish new version). Thank you in advance.

Corship commented 1 month ago

Still persists for me. Using latest aur version nasa-wallpaper 2.1.0 on 6.11.4-arch1-1

env RUST_BACKTRACE=full nasa-wallpaper -n
thread 'main' panicked at src/main.rs:413:54:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
stack backtrace:
   0:     0x60f39ffdbee2 - <unknown>
   1:     0x60f3a0005d7c - <unknown>
   2:     0x60f39ffd8f9f - <unknown>
   3:     0x60f39ffdbcb4 - <unknown>
   4:     0x60f39ffdd2cb - <unknown>
   5:     0x60f39ffdd023 - <unknown>
   6:     0x60f39ffdd76d - <unknown>
   7:     0x60f39ffdd642 - <unknown>
   8:     0x60f39ffdc3b6 - <unknown>
   9:     0x60f39ffdd374 - <unknown>
  10:     0x60f39fc3a615 - <unknown>
  11:     0x60f39fc3ab13 - <unknown>
  12:     0x60f39fc43284 - <unknown>
  13:     0x60f39fc4ebb3 - <unknown>
  14:     0x60f39fc4d9b9 - <unknown>
  15:     0x60f39ffd43d3 - <unknown>
  16:     0x60f39fc44045 - <unknown>
  17:     0x726cccf5ae08 - <unknown>
  18:     0x726cccf5aecc - __libc_start_main
  19:     0x60f39fc3acc5 - <unknown>
  20:                0x0 - <unknown>

same for -a

Error: No such file or directory (os error 2)
davidpob99 commented 1 month ago

@Corship What desktop environment and Linux distribution do you use? What is your timezone? In order to test it (for me it does work)

Corship commented 1 month ago

@davidpob99 Here the requested information:

Operating System: Arch Linux 
KDE Plasma Version: 6.2.1
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.4-arch1-1 (64-bit)
Graphics Platform: Wayland

My time zone is Berlin.