not opening
codegod100 opened this issue Β· 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
can you show the output of RUST_LOG=debug cargo run
I'm guessing this is related to
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
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" ] }
I have to do this on my nixos laptop with intel graphics, I haven't yet fixed
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
very weird... must be a wayland issue? I have not tested with wayland.
Ok then I will try X11 next.
BTW I noticed that egui supports web (Wasm and WebGL), is it possible for notedeck?
Still no luck on X11, in a new nixos vm, with the commit 0e0e5d0:
See: https://gist.github.com/hellodword/e368c8e07f4a661c4ed0281d117fc61d
Good idea, I'll try it tomorrow
It seems that I've fixed it on Sway, I'll push the changes (wayland) to #57
wgpu has been updated, let me know if you still run into issues on wayland
I think there is a still a wayland issue
nm tested it on debian and seems to be fine now