notedeck icon indicating copy to clipboard operation
notedeck copied to clipboard

not opening

Open codegod100 opened this issue 1 year ago • 13 comments

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

codegod100 avatar Apr 22 '24 02:04 codegod100

can you show the output of RUST_LOG=debug cargo run

jb55 avatar Apr 22 '24 15:04 jb55

I'm guessing this is related to

  • #42

jb55 avatar May 12 '24 22:05 jb55

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

hellodword avatar May 15 '24 15:05 hellodword

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 avatar May 15 '24 16:05 jb55

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

  • #42

jb55 avatar May 15 '24 16:05 jb55

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

hellodword avatar May 16 '24 02:05 hellodword

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

jb55 avatar May 16 '24 04:05 jb55

Ok then I will try X11 next.

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

hellodword avatar May 16 '24 04:05 hellodword

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

hellodword avatar May 16 '24 05:05 hellodword

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?

jb55 avatar May 16 '24 15:05 jb55

Good idea, I'll try it tomorrow

hellodword avatar May 16 '24 15:05 hellodword

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

hellodword avatar May 17 '24 02:05 hellodword

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 avatar May 18 '24 17:05 jb55

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

jb55 avatar Jul 03 '24 00:07 jb55

I think there is a still a wayland issue

jb55 avatar Jul 03 '24 01:07 jb55

nm tested it on debian and seems to be fine now

jb55 avatar Jul 03 '24 15:07 jb55