damus-io / notedeck

A multiplatform nostr client
Other
52 stars 9 forks source link

not opening #28

Open codegod100 opened 2 months ago

codegod100 commented 2 months ago

I built with wgpu and thought that was the issue then removed wgpu from config toml and it's using glow but still closes immediately with no errors and no window

running on debian 12

jb55 commented 2 months ago

can you show the output of RUST_LOG=debug cargo run

jb55 commented 1 month ago

I'm guessing this is related to

hellodword commented 1 month ago

Same on intel laptop (nixos, sway):

$ RUST_LOG=debug cargo run
warning: field `warn_fg_color` is never read
  --> src/colors.rs:29:9
   |
23 | pub struct ColorTheme {
   |            ---------- field in this struct
...
29 |     pub warn_fg_color: Color32,
   |         ^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: `notedeck` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s
     Running `target/debug/notedeck`
2024-05-15T15:15:03.640569Z  INFO eframe: Both the glow and wgpu renderers are available. Using wgpu.    
2024-05-15T15:15:03.640601Z DEBUG eframe: Using the wgpu renderer  

$ echo $?
0
jb55 commented 1 month ago

can you comment and uncomment these lines and see if it helps?

eframe = { version = "0.27.2", default-features = false, features = [ "glow", "wgpu", "android-native-activity" ] }
#eframe = { version = "0.27.2", default-features = false, features = [ "glow", "android-native-activity" ] }
jb55 commented 1 month ago

I have to do this on my nixos laptop with intel graphics, I haven't yet fixed

hellodword commented 1 month ago
diff --git a/Cargo.toml b/Cargo.toml
index 97f2900..49ed728 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,8 +14,8 @@ crate-type = ["lib", "cdylib"]
 [dependencies]
 #egui-android = { git = "https://github.com/jb55/egui-android.git" }
 egui = "0.27.2"
-eframe = { version = "0.27.2", default-features = false, features = [ "glow", "wgpu", "android-native-activity" ] }
-#eframe = { version = "0.27.2", default-features = false, features = [ "glow", "android-native-activity" ] }
+#eframe = { version = "0.27.2", default-features = false, features = [ "glow", "wgpu", "android-native-activity" ] }
+eframe = { version = "0.27.2", default-features = false, features = [ "glow", "android-native-activity" ] }
 #eframe = "0.22.0"
 egui_extras = { version = "0.27.2", features = ["all_loaders"] }
 ehttp = "0.2.0"
$ git log --oneline -1
0d240c1 (HEAD -> master, upstream/master) simplify tab underline calculation

$ RUST_LOG=debug cargo run
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s
     Running `target/debug/notedeck`
2024-05-16T02:09:36.779986Z DEBUG eframe: Using the glow renderer    

$ echo $?
0

No luck with the diff

jb55 commented 1 month ago

very weird... must be a wayland issue? I have not tested with wayland.

hellodword commented 1 month ago

Ok then I will try X11 next.

BTW I noticed that egui supports web (Wasm and WebGL), is it possible for notedeck?

hellodword commented 1 month ago

Still no luck on X11, in a new nixos vm, with the commit https://github.com/damus-io/notedeck/commit/0e0e5d0eaa74e17ce7dfa477969f05b5ac009d93:

See: https://gist.github.com/hellodword/e368c8e07f4a661c4ed0281d117fc61d

jb55 commented 1 month ago

On Wed, May 15, 2024 at 10:59:00PM GMT, hellodword wrote:

Still no luck on X11, in a new nixos vm, with the commit https://github.com/damus-io/notedeck/commit/0e0e5d0eaa74e17ce7dfa477969f05b5ac009d93:

See: https://gist.github.com/hellodword/e368c8e07f4a661c4ed0281d117fc61d

can you run other egui demos in the egui repo?

hellodword commented 1 month ago

Good idea, I'll try it tomorrow

hellodword commented 1 month ago

It seems that I've fixed it on Sway, I'll push the changes (wayland) to #57

jb55 commented 1 month ago

On Thu, May 16, 2024 at 07:19:56PM GMT, hellodword wrote:

It seems that I've fixed it on Sway, I'll push the changes (wayland) to #57

awesome, thank you!

jb55 commented 8 hours ago

wgpu has been updated, let me know if you still run into issues on wayland

jb55 commented 8 hours ago

I think there is a still a wayland issue