Closed spiage closed 2 weeks ago
I can't reproduce this. I'm guessing something is wrong with how we pass the java installation to dbeaver. Seems like https://github.com/NixOS/nixpkgs/pull/312374/commits/f467be8e15f8905e2e9d117eb2b21978a6c90e0c fixed a similar issue.
Can you try going into a nix shell with swt
package and launch dbeaver?
Am I did it right?
~ via v3.12.4 via 💠 default
❯ nix shell github:nixos/nixpkgs#swt
~ via v3.12.4 via 💠 default
❯ dbeaver
WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.vector
Warning: NLS unused message: Workbench_missingPropertyMessage in: org.eclipse.ui.internal.messages
> Start Eclipse Jobs Mechanism [org.eclipse.core.jobs 3.15.300.v20240418-0734]
> Start Equinox Java Authentication and Authorization Service (JAAS) [org.eclipse.equinox.security 1.4.300.v20240419-2334]
> Start DBeaver Application Standalone [org.jkiss.dbeaver.ui.app.standalone 24.1.3.202407211303]
> Start Интерфейс приложения IDE Eclipse [org.eclipse.ui.ide.application 1.5.400.v20240416-0658]
SWT OS.java Error: Failed to load swt-pi3, loading swt-pi4 as fallback.
Dbeaver:
An error has occurred. See the log file
/home/spiage/.eclipse/1948949714_linux_gtk_x86_64/configuration/1722299101432.log.
and when I ran from nixpkgs-unstable it worked
~ via v3.12.4 via 💠 default
❯ dbeaver
WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.vector
Warning: NLS unused message: Workbench_missingPropertyMessage in: org.eclipse.ui.internal.messages
> Start Eclipse Jobs Mechanism [org.eclipse.core.jobs 3.15.300.v20240418-0734]
> Start Equinox Java Authentication and Authorization Service (JAAS) [org.eclipse.equinox.security 1.4.300.v20240419-2334]
> Start DBeaver Application Standalone [org.jkiss.dbeaver.ui.app.standalone 24.1.3.202407211303]
> Start Интерфейс приложения IDE Eclipse [org.eclipse.ui.ide.application 1.5.400.v20240416-0658]
> Start Eclipse IDE UI [org.eclipse.ui.ide 3.22.200.v20240524-2010]
> Start jna [com.sun.jna 5.14.0.v20231211-1200]
> Start DBeaver UI [org.jkiss.dbeaver.ui 5.1.150.202407211303]
> Start Expression Language [org.eclipse.core.expressions 3.9.400.v20240413-1529]
> Start DBeaver Usage Statistics [org.jkiss.dbeaver.ui.statistics 1.0.31.202407211303]
> Start DBeaver Desktop Application Core [org.jkiss.dbeaver.core 24.1.3.202407211303]
2024-07-30 03:34:35.259 - DBeaver 24.1.3.202407211303 is starting
2024-07-30 03:34:35.260 - OS: Linux 6.10.2 (amd64)
2024-07-30 03:34:35.260 - Java version: 17.0.11 by N/A (64bit)
2024-07-30 03:34:35.260 - Install path: '/nix/store/pdbkjph8xsv3iq2rr1p6ww7vl1g1ajlk-dbeaver-bin-24.1.3/opt/dbeaver'
2024-07-30 03:34:35.260 - Instance path: 'file:/home/spiage/.local/share/DBeaverData/workspace6/'
2024-07-30 03:34:35.261 - Memory available 66Mb/1024Mb
Am I did it right?
You did it right, it was just a wild guess from me and it didn't work.
and when I ran from nixpkgs-unstable it worked
That's good news that it worked for you before, can you git bisect it?
I found the last commit I can use, and it is the one before staging was merged ( May be @vcunat can help us? https://github.com/NixOS/nixpkgs/compare/4d10225ee46c0ab16332a2450b493e0277d1741a..a5b2fe73740c3b1a1835bb1335d30b88c276924c
there was some changes in openjdk17, like this:
- , enableGnome2 ? true, gtk3, gnome_vfs, glib, GConf
+ , enableGtk ? true, gtk3, glib
but I can't find anything about SWT
I don't recall anything relevant in that merge, but it touched almost a thousand files.
I've been hit by this today. I've noticed that dbeaver (or SWT underneath) says that it can't find swt-pi3 and it's trying to use swt-pi4 as fallback, but in my home dir there is this file:
$ ls ~/.swt/lib/linux/x86_64/
libswt-pi3-gtk-4965r11.so
I've tried to remove ~/.swt
but it got recreated after running dbeaver again.
Maybe this can help find the problem...
I've been hit by this today. I've noticed that dbeaver (or SWT underneath) says that it can't find swt-pi3 and it's trying to use swt-pi4 as fallback, but in my home dir there is this file:
$ ls ~/.swt/lib/linux/x86_64/ libswt-pi3-gtk-4965r11.so
I've tried to remove
~/.swt
but it got recreated after running dbeaver again.Maybe this can help find the problem...
Maybe that file is a product of the error, I don't have it:
~/.swt ❯ command ls ~/.swt
trims.prefs
I see that dbeaver depends on jdk17. Shouldn't it depend on 21 instead?
Same problem with portfolio
, not sure which commit introduced it but it was recent.
I see that dbeaver depends on jdk17. Shouldn't it depend on 21 instead?
@denisfalqueto They recommend jdk17: https://github.com/dbeaver/dbeaver/tree/24.1.3?tab=readme-ov-file#running.
Same issue here. Has anyone found a temporary workaround?
I'm using this in flake: inputs.dbeaver-last.url = "github:nixos/nixpkgs/4d10225ee46c0ab16332a2450b493e0277d1741a"; and in environment.systemPackages: inputs.dbeaver-last.legacyPackages.x86_64-linux.pkgs.dbeaver-bin
i.e. last commit with worked dbeaver-bin
Amazing. Thanks @spiage !
Same issue here. Has anyone found a temporary workaround?
I've switched to the flatpak version (works on Linux...)
Could it be the reason?
pkgs/by-name: remove unused arguments master (#328726) @Sigmanificient Sigmanificient committed 2 weeks ago 1 parent 23e715c commit 61fe0c0
Showing 113 changed files with 55 additions and 157 deletions.
once I had an adventure after my own "remove unused arguments" =)
https://github.com/NixOS/nixpkgs/commit/cbe511af766109cfedf2aa2d5076dba3b269336c 24.1.4 is working fine
Hm I just grabbed this commit and it's not launching for me still, I cleared out all directories too (~/.swt
, ~/.eclipse
, ~/.local/share/DBeaverData
). Using it like this
dbeaver-next.url = "github:NixOS/nixpkgs/cbe511af766109cfedf2aa2d5076dba3b269336c";
and
inputs.dbeaver-next.legacyPackages.${hostPlatform}.pkgs.dbeaver-bin
I'm using master branch, may be some other package which is the hidden runtime dependency was updated too?
I have again the same issue (
❯ dbeaver
WARNING: Using incubator modules: jdk.incubator.vector, jdk.incubator.foreign
Warning: NLS unused message: Workbench_missingPropertyMessage in: org.eclipse.ui.internal.messages
> Start Eclipse Jobs Mechanism [org.eclipse.core.jobs 3.15.300.v20240418-0734]
> Start Equinox Java Authentication and Authorization Service (JAAS) [org.eclipse.equinox.security 1.4.300.v20240419-2334]
> Start DBeaver Application Standalone [org.jkiss.dbeaver.ui.app.standalone 24.1.4.202408041450]
> Start Интерфейс приложения IDE Eclipse [org.eclipse.ui.ide.application 1.5.400.v20240416-0658]
SWT OS.java Error: Failed to load swt-pi3, loading swt-pi4 as fallback.
temporary workaround this works for me inputs.dbeaver-last.url = "github:nixos/nixpkgs/4d10225ee46c0ab16332a2450b493e0277d1741a"; while this commit not dbeaver-next.url = "github:NixOS/nixpkgs/cbe511af766109cfedf2aa2d5076dba3b269336c";
Had the same issue. After stracing dbeaver, it looks like it could not find the libgtk-3.so. After installing the libgtk-3-0 package on my debian, it starts like a charm.
For me: Works on NixOS 24.05 On Ubuntu 22.04 out of the box:
stracing the failure here's the problem:
openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libgdk-3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libgdk-3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/dffyikn59cy7fff2qd60gs9jl63szqnh-xgcc-13.3.0-libgcc/lib/libgdk-3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libgtk-3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libgtk-3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/dffyikn59cy7fff2qd60gs9jl63szqnh-xgcc-13.3.0-libgcc/lib/libgtk-3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libgobject-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libgobject-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/dffyikn59cy7fff2qd60gs9jl63szqnh-xgcc-13.3.0-libgcc/lib/libgobject-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libgdk_pixbuf-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libgdk_pixbuf-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/dffyikn59cy7fff2qd60gs9jl63szqnh-xgcc-13.3.0-libgcc/lib/libgdk_pixbuf-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libgio-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libgio-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/dffyikn59cy7fff2qd60gs9jl63szqnh-xgcc-13.3.0-libgcc/lib/libgio-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/dffyikn59cy7fff2qd60gs9jl63szqnh-xgcc-13.3.0-libgcc/lib/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
Repro on any Linux distro:
xhost +
docker run --rm -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix ubuntu:24.04
apt update && apt upgrade -y && apt install -y curl
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux --init none
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
nix run nixpkgs#dbeaver-bin # fails
nix run github:nixos/nixpkgs/22.05#dbeaver # works
@mausch big thanks for the reproduction commands!
On Ubuntu 22.04 out of the box:
- nix run github:nixos/nixpkgs/24.05#dbeaver-bin : fails
- nix run github:nixos/nixpkgs/23.11#dbeaver-bin : fails
- nix run github:nixos/nixpkgs/23.05#dbeaver : fails
- nix run github:nixos/nixpkgs/22.11#dbeaver : works
For me nix run github:nixos/nixpkgs/24.05#dbeaver-bin
works and nix run github:nixos/nixpkgs/nixos-unstable#dbeaver-bin
fails using the reproduction environment you provided. This too confirms that the recent staging merge caused this issue. I'm surprised it didn't work for you on 24.05.
stracing the failure here's the problem:
openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libgdk-3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libgdk-3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/nix/store/dffyikn59cy7fff2qd60gs9jl63szqnh-xgcc-13.3.0-libgcc/lib/libgdk-3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/nix/store/0wydilnf1c9vznywsvxqnaing4wraaxp-glibc-2.39-52/lib/libgtk-3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
I straced the working 24.05 version and I get these errors too. The only difference seems to be dbeaver's log where it continues loading rather than crashing with swt-pi3, syscalls look the same near the crash using unstable version.
I cherry picked openjdk related commits onto the last known good commit before the staging merge (4d10225ee46c0ab16332a2450b493e0277d1741a) and I bisected it to a single commit that is causing the issue: dbd9745e11c6. If you want to quickly verify this is the failing commit (trying to build that exact commit will take a long time), I made a branch which has the good commit as the base and the bad commit cherry picked.
nix run github:nixos/nixpkgs/4d10225#dbeaver-bin # works
nix run github:gepbird/nixpkgs/dbeaver-bad-staging-commit#dbeaver-bin # fails
I don't have much time right now to look into what does the failing commit exactly do and how to fix this, anyone feel free to continue from here :)
@mkg20001 I can confirm, it's fixed now for my system too Can we wait for 24.1.5 soon? =)
This tracks when the fix will be released in which unstable channel: https://nixpk.gs/pr-tracker.html?pr=335633
This tracks when the fix will be released in which unstable channel: https://nixpk.gs/pr-tracker.html?pr=335633
I'm already have it - I use nixpkgs/master as a daily driver for a long time 24.1.5 was yesterday's release =)
Describe the bug
dbeaver does not start
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
it's gui appears
Additional context
Notify maintainers
@gepbird @mkg20001 @yzx9
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.