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

issues: can not display ferris.png on /examples/hello_world #5594

Open
XiaochaoYan opened this issue Jan 10, 2025 · 2 comments
Open

issues: can not display ferris.png on /examples/hello_world #5594

XiaochaoYan opened this issue Jan 10, 2025 · 2 comments
Labels
bug Something is broken

Comments

@XiaochaoYan
Copy link

eframe version : 0.30.0
egui version: 0.30.0
egui_extras version: 0.30.0
env_logger version: 0.11.6

Describe the bug

While rust can find the .png file without problem, the .png is showing as a red exclamation mark in triangle.

To Reproduce
Steps to reproduce the behavior:

  1. using "*" for egui and eframe verison
  2. cargo run

Expected behavior

Image displayed as the examples screenshot suggested.

Screenshots

WeChat截图_20250110105621

Desktop (please complete the following information):

  • OS: Windows 11 Build 22631
  • Browser N/A
  • Version rust 1.84.0
@XiaochaoYan XiaochaoYan added the bug Something is broken label Jan 10, 2025
@YgorSouza
Copy link
Contributor

What does the error say when you hover the red icon? There was a similar issue in #5479 due to git LFS, but since you're not using the actual egui repo, it might be a different problem.

@XiaochaoYan
Copy link
Author

What does the error say when you hover the red icon? There was a similar issue in #5479 due to git LFS, but since you're not using the actual egui repo, it might be a different problem.

It said nothing. I looked at the examples' Cargo.toml and found the problem. I didn't enable "features = ["default", "image"] " in my own toml file. Problem sovled now. Thanks a lot.

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

No branches or pull requests

2 participants