Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing wallpaper generates an error and crash #5

Open
EmiliaB0nes opened this issue Aug 17, 2019 · 8 comments
Open

Changing wallpaper generates an error and crash #5

EmiliaB0nes opened this issue Aug 17, 2019 · 8 comments
Assignees
Labels

Comments

@EmiliaB0nes
Copy link

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.

@davidpob99 davidpob99 added the bug label Sep 3, 2019
@pad92
Copy link

pad92 commented Dec 12, 2019

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
Copy link

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
Copy link
Contributor

stonespheres commented Mar 28, 2021

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
Copy link

liwiwd commented Jan 14, 2023

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
Copy link
Owner

I changed the timezone (commit 8a2b79e) 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 c15c964).

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
Copy link

Corship commented Oct 21, 2024

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
Copy link
Owner

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

@davidpob99 davidpob99 self-assigned this Oct 21, 2024
@Corship
Copy link

Corship commented Oct 21, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants