damus-io / notedeck

A multiplatform nostr client
Other
93 stars 16 forks source link

Notedeck builds, but won't run #141

Closed derekross closed 3 months ago

derekross commented 3 months ago

i am trying to build and run the code for notedeck and unable to do so. the following is the output i receive.

[nix-shell:~/damus/notedeck]$ cargo run --release Updating git repositoryhttps://github.com/damus-io/egui-nav Updating git repositoryhttps://github.com/damus-io/nostrdb-rs Updating git submodulehttps://github.com/damus-io/nostrdb Updating git submodulehttps://github.com/bitcoin-core/secp256k1 Compiling secp256k1 v0.28.2 Compiling nostrdb v0.3.4 (https://github.com/damus-io/nostrdb-rs?rev=ee8afeeb0b6695fca6d27dd0b74a8dc159e37b95#ee8afeeb) Compiling egui_nav v0.1.0 (https://github.com/damus-io/egui-nav?rev=0498cbee12935448478823d855060dc749a0b8b6#0498cbee) Compiling bitcoin v0.31.2 Compiling nostr v0.30.0 Compiling enostr v0.1.0 (/home/derek/damus/notedeck/enostr) Compiling notedeck v0.1.0 (/home/derek/damus/notedeck) Finishedreleaseprofile [optimized] target(s) in 1m 42s Runningtarget/release/notedeck 2024-07-02T19:27:32.336866Z INFO eframe: Both the glow and wgpu renderers are available. Using wgpu. 2024-07-02T19:27:32.352390Z INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1 2024-07-02T19:27:32.362636Z WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_KHR_surface 2024-07-02T19:27:32.362748Z WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_KHR_xlib_surface 2024-07-02T19:27:32.362815Z WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_KHR_xcb_surface 2024-07-02T19:27:32.362879Z WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_KHR_wayland_surface 2024-07-02T19:27:32.362944Z WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_EXT_swapchain_colorspace 2024-07-02T19:27:32.363008Z WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_KHR_get_physical_device_properties2 2024-07-02T19:27:32.366294Z WARN wgpu_hal::gles::egl: EGL_MESA_platform_surfaceless not available. Using default platform thread 'main' panicked at /home/derek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-0.19.1/src/gles/egl.rs:799:88: calledOption::unwrap()on aNonevalue note: run withRUST_BACKTRACE=1environment variable to display a backtrace

alltheseas commented 3 months ago

Which OS?

derekross commented 3 months ago

Elementary OS 7.1. I also get the same error on Windows 11 WSL 2.0. Both are Debian / Ubuntu derivatives.

jb55 commented 3 months ago

can you try master and see if it fixes it?

derekross commented 3 months ago

2024-07-02T23:58:10.044994Z ERROR eframe::native::run: Exiting because of error: Found no glutin configs matching the template: ConfigTemplate { color_buffer_type: Rgb { r_size: 8, g_size: 8, b_size: 8 }, alpha_size: 8, depth_size: 0, stencil_size: 0, num_samples: None, min_swap_interval: None, max_swap_interval: None, config_surface_types: ConfigSurfaceTypes(WINDOW), api: None, transparency: false, single_buffering: false, stereoscopy: None, float_pixels: false, max_pbuffer_width: None, hardware_accelerated: None, max_pbuffer_height: None, native_window: None }. Error: Error { raw_code: None, raw_os_message: None, kind: BadConfig } during event Resumed

jb55 commented 3 months ago

can you fetch again and try this branch:

git switch egui-0.28

jb55 commented 3 months ago

I've updated to the latest wgpu from egui which should fix weird gfx issues, feel free to re-open if there's still an issue

derekross commented 3 months ago

still getting errors

2024-07-03T01:01:37.052160Z INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1
2024-07-03T01:01:37.086754Z WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_KHR_surface
2024-07-03T01:01:37.086817Z WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_KHR_xlib_surface
2024-07-03T01:01:37.086841Z WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_KHR_xcb_surface
2024-07-03T01:01:37.086899Z WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_KHR_wayland_surface
2024-07-03T01:01:37.086915Z WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_EXT_swapchain_colorspace
2024-07-03T01:01:37.086928Z WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_KHR_get_physical_device_properties2
2024-07-03T01:01:37.095524Z WARN wgpu_hal::gles::egl: EGL_MESA_platform_surfaceless not available. Using default platform
thread 'main' panicked at /home/derek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-0.21.1/src/gles/egl.rs:850:88: called Option::unwrap() on a None value

jb55 commented 3 months ago

installing elementary OS to see what's up

jb55 commented 3 months ago

I was able to build and run it on elementaryOS:

VirtualBox_elementaryOS_03_07_2024_08_20_51

make sure you are not using the nix shell. you just need rustup and build-essential

jb55 commented 3 months ago

looks like it is a nix-shell issue from your log, closing

derekross commented 3 months ago

i didn't even think to try to not use nix-shell for this since i used nix-shell to build the android apk. thanks will. i was able to build and run it normally.

jb55 commented 3 months ago

I opened a follow up issue here:

jb55 commented 3 months ago

@derekross since we don't have docs for this yet, here's some quick commands to get started:

./target/release/notedeck --sec your_secret_key -f queries/timeline.json -f queries/notifications.json

you will want to update the query files with your own until we have have automatic timelines working