NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.77k stars 13.18k forks source link

ida-free fails to launch #306602

Open NullTxt opened 3 months ago

NullTxt commented 3 months ago

Describe the bug

ida-free fails to launch with the reason Aborted (core dumped)

[rossw@nixos:/etc/nixos]$ ida64 
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted (core dumped)

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install ida-free
  2. run the command ida64
  3. See Result

Expected behavior

Ida should launch

Notify maintainers

@msanft

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[username@nixos:/etc/nixos]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.25, NixOS, 24.05 (Uakari), 24.05.20240406.ff0dbd9`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixos, nixos-hardware"`
 - nixpkgs: `/nix/store/j10523yhkcc34478azkgcl70yzcx6j2j-source`

Add a :+1: reaction to issues you find important.

msanft commented 3 months ago

Hey there. Thanks for the report! I cannot reproduce this on my end. (running on wayland)

Looking at the relevant wiki page, it seems that you could launch the application with QT_DEBUG_PLUGINS=1 to see where QT looks for the platform plugins. For now, I can't think of anything else I could do with the information provided.

x-zvf commented 3 months ago

I couldn't reproduce it either (on Plasma6 Wayland). What DE/WM are you running? Are you actually on Wayland?

NullTxt commented 2 months ago

Hello I have the same error

./ida64 
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

[1]    148731 IOT instruction (core dumped)  ./ida64

I'm on endeavouros with wayland and I installed ida with the .run file on their website

I would suggest trying it with the nix package on unstable

NullTxt commented 2 months ago

Hey there. Thanks for the report! I cannot reproduce this on my end. (running on wayland)

Looking at the relevant wiki page, it seems that you could launch the application with QT_DEBUG_PLUGINS=1 to see where QT looks for the platform plugins. For now, I can't think of anything else I could do with the information provided.

https://pastes.dev/To539c3K3p Issue seems to be: Cannot load library /nix/store/y3qcljhcp4maxw99qk83ncf22rpbmfg1-qtbase-5.15.12-bin/lib/qt-5.15.12/plugins/platforms/libqxcb.so: (/nix/store/y3qcljhcp4maxw99qk83ncf22rpbmfg1-qtbase-5.15.12-bin/lib/qt-5.15.12/plugins/platforms/../../../../../y3w2wzj83525frlak51nmjsvj2xialw0-qtbase-5.15.12/lib/libQt5DBus.so.5: undefined symbol: _ZTI7QObject, version Qt_5)

supercoolspy commented 2 months ago

Then why the **** are you on the nix issue tracker?

Me? What do you mean by that?

x-zvf commented 2 months ago

Then why the **** are you on the nix issue tracker?

Me? What do you mean by that?

No, not you :) I am sorry, If I hurt you. There was a deleted comment which said "I don't use nix and I don't want to install it"

nubufi commented 2 months ago

I had the same error when I ran ida-free. Then I installed it with nix-shell using the following shell.nix file. It solved that error but raised another one such as ida64: symbol lookup error: ida64: undefined symbol: _ZTIN2QT7QObjectE, version Qt_5

{ pkgs ? import <nixpkgs> {} }:

let
  qtPackages = pkgs.libsForQt5.qt5; 
in
pkgs.mkShell {
  buildInputs = [
    pkgs.ida-free
    pkgs.gcc
    pkgs.binutils # provides ld
    pkgs.nasm
    qtPackages.qtbase
    qtPackages.qtwayland
    qtPackages.qtsvg # Adding more Qt components
    qtPackages.qtdeclarative
    qtPackages.qtx11extras
  ];

  shellHook = ''
    export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath [
      qtPackages.qtbase
      qtPackages.qtwayland
      qtPackages.qtsvg
      qtPackages.qtdeclarative
          qtPackages.qtx11extras
    ]}:$LD_LIBRARY_PATH;
    export QT_QPA_PLATFORM=offscreen;
 '';
}
StarGate01 commented 2 weeks ago

I am experiencing the same problem, on NixOS unstable:

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/rdv8is127viw7jd6vfbdrz4zj0s656d5-ida-free-8.4.240320/opt/platforms" ...
Cannot load library /nix/store/gwdppzlzl74561fg1n07516s3wp8na6s-qtwayland-5.15.14-bin/lib/qt-5.15.14/plugins/platforms/libqwayland-generic.so: (/nix/store/gwdppzlzl74561fg1n07516s3wp8na6s-qtwayland-5.15.14-bin/lib/qt-5.15.14/plugins/platforms/../../../../../9wba9diw8b199hfzcv8w99wzma66dzm1-qtbase-5.15.14/lib/libQt5DBus.so.5: undefined symbol: _ZTI7QObject, version Qt_5)
QLibraryPrivate::loadPlugin failed on "/nix/store/gwdppzlzl74561fg1n07516s3wp8na6s-qtwayland-5.15.14-bin/lib/qt-5.15.14/plugins/platforms/libqwayland-generic.so" : "Cannot load library /nix/store/gwdppzlzl74561fg1n07516s3wp8na6s-qtwayland-5.15.14-bin/lib/qt-5.15.14/plugins/platforms/libqwayland-generic.so: (/nix/store/gwdppzlzl74561fg1n07516s3wp8na6s-qtwayland-5.15.14-bin/lib/qt-5.15.14/plugins/platforms/../../../../../9wba9diw8b199hfzcv8w99wzma66dzm1-qtbase-5.15.14/lib/libQt5DBus.so.5: undefined symbol: _ZTI7QObject, version Qt_5)"
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Cannot load library /nix/store/hjspqdvym6v553582mxp2a3f84p4aqyr-qtbase-5.15.14-bin/lib/qt-5.15.14/plugins/platforms/libqxcb.so: (/nix/store/hjspqdvym6v553582mxp2a3f84p4aqyr-qtbase-5.15.14-bin/lib/qt-5.15.14/plugins/platforms/../../../../../9wba9diw8b199hfzcv8w99wzma66dzm1-qtbase-5.15.14/lib/libQt5DBus.so.5: undefined symbol: _ZTI7QObject, version Qt_5)
QLibraryPrivate::loadPlugin failed on "/nix/store/hjspqdvym6v553582mxp2a3f84p4aqyr-qtbase-5.15.14-bin/lib/qt-5.15.14/plugins/platforms/libqxcb.so" : "Cannot load library /nix/store/hjspqdvym6v553582mxp2a3f84p4aqyr-qtbase-5.15.14-bin/lib/qt-5.15.14/plugins/platforms/libqxcb.so: (/nix/store/hjspqdvym6v553582mxp2a3f84p4aqyr-qtbase-5.15.14-bin/lib/qt-5.15.14/plugins/platforms/../../../../../9wba9diw8b199hfzcv8w99wzma66dzm1-qtbase-5.15.14/lib/libQt5DBus.so.5: undefined symbol: _ZTI7QObject, version Qt_5)"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

[1]    330705 IOT instruction (core dumped)  QT_DEBUG_PLUGINS=1 ida64

I am running KDE. Anecdotally I saw these kind of errors on Gnome.