mikedilger / gossip

Gossip is a nostr client
Other
627 stars 74 forks source link

Unable to download images - using unstable version 0.11 #800

Open ashutoshmjain opened 2 days ago

ashutoshmjain commented 2 days ago

Gossip exits with this message in clip

Got a texture image of size 7340x3048, but the maximum supported texture side is only 2048

Is this a configuration setting ?

I am testing on unstable version 0.11 .. built this morning .

Thanks

mikedilger commented 2 days ago

The MAX_TEXTURE_SIZE is determined from your graphics card (via OpenGL) by a library gossip depends on (egui_glow).

Did gossip crash when this happened? I'd love to get a backtrace, or maybe if you know the note that has the giant image and can point me to it?

If you use the run.sh script it should give you a backtrace when it crashes.

mikedilger commented 2 days ago

Actually I think I worked it out. Pull and try again.

bu5hm4nn commented 1 day ago

@ashutoshmjain Please also let us know which OS you are running on. Especially Linux currently has many different configurations.

mikedilger commented 1 day ago

This commit should have fixed it, but I don't have a good way to test: 29cb75dd7b740a1fa3c65a11d566494c8f3ab0e7

ashutoshmjain commented 2 hours ago

@ashutoshmjain Please also let us know which OS you are running on. Especially Linux currently has many different configurations.

OS: Debian GNU/Linux 11 (bullseye) x86_64 Kernel: 5.10.0-9-amd64 Uptime: 1 hour, 53 mins Packages: 1664 (dpkg), 282 (nix-user) Shell: zsh 5.8 Resolution: 1920x1080 DE: Xfce 4.16 WM: Xfwm4 WM Theme: Default Theme: Xfce [GTK2], Adwaita [GTK3] Icons: Tango [GTK2], Adwaita [GTK3] Terminal: xfce4-terminal Terminal Font: Monospace 16 CPU: Intel Core 2 Duo E6850 (2) @ 2.997GHz GPU: Intel 82G33/G31 Express Memory: 1247MiB / 3921MiB

ashutoshmjain commented 2 hours ago

This commit should have fixed it, but I don't have a good way to test: 29cb75d

No -- I rebuilt this morning .. and I am update as of now ..

Here is the backtrace

2024-07-03T02:19:46.808370Z ERROR gossip-lib/src/overlord/mod.rs:468: Minion wss://nostr.coinfundit.com/ completed with error: Websocket: IO error: failed to lookup address information: No address associated with hostname thread 'main' panicked at /home/amj/.cargo/git/checkouts/egui-904381843a0f3282/63dde4c/crates/egui_glow/src/painter.rs:558:9: Got a texture image of size 1800x2400, but the maximum supported texture side is only 2048 stack backtrace: 0: rust_begin_unwind at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5 1: core::panicking::panic_fmt at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14 2: egui_glow::painter::Painter::upload_texture_srgb 3: egui_glow::painter::Painter::set_texture 4: egui_glow::painter::Painter::paint_and_update_textures 5: ::run_ui_and_paint 6: core::ops::function::impls::<impl core::ops::function::FnMut for &mut F>::call_mut 7: winit::platform_impl::platform::x11::EventLoop::run_on_demand 8: eframe::native::run::run_glow 9: eframe::run_native 10: gossip::ui::run 11: gossip::main note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace. 2024-07-03T02:19:47.649408Z WARN /home/amj/.cargo/git/checkouts/egui-904381843a0f3282/63dde4c/crates/egui_glow/src/painter.rs:763: You forgot to call destroy() on the egui glow painter. Resources will leak!

ashutoshmjain commented 2 hours ago

If you use the run.sh script it should give you a backtrace when it crashes.

I tried running this but I am getting libsdl2-dev issues ... let me know if you have a pointer .. I installed it but looks like I am not able to properly link it .. or something ...