Closed yswtrue closed 4 months ago
Hey @yswtrue, have you ever made Genymotion work under Wayland ? For instance, on any other distribution ? I'm not sure the support for Wayland has dropped quite officially for Genymotion or I might be wrong, maybe there is no need since it's a QT based graphic interface and platform plugins do exist for Wayland nowadays.
EDIT: To add more information, on ArchLinux, here is what I'm getting as an error
Logging activities to file: /home/zwei-rex/.Genymobile/genymotion.log
2023-06-05T17:35:07+02:00 [genymotion:688184] [fatal] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
fish: Job 1, 'genymotion' terminated by signal SIGABRT (Abort)
2023-04-06T11:42:34+02:00 [genymotion:315678] [qt.qpa.plugin.warning] Could not find the Qt platform plugin "wayland" in ""
2023-04-06T11:42:34+02:00 [genymotion:315678] [fatal] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
2023-04-06T11:44:01+02:00 [genymotion:316865] [qt.qpa.plugin.warning] Could not find the Qt platform plugin "wayland" in ""
2023-04-06T11:44:01+02:00 [genymotion:316865] [fatal] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
2023-04-06T11:44:04+02:00 [genymotion:316948] [qt.qpa.plugin.warning] Could not find the Qt platform plugin "wayland" in ""
2023-04-06T11:44:04+02:00 [genymotion:316948] [fatal] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
@yswtrue you might want to share your exact genymotion logs
I'm running Sway and I have the following env variables set :
# for qt apps
QT_QPA_PLATFORMTHEME="qt5ct"
QT_QPA_PLATFORM=wayland
# both following are disabled.
#QT_WAYLAND_FORCE_DPI=physical
#QT_WAYLAND_DISABLE_WINDOWDECORATION=1
XDG_SESSION_TYPE=wayland
XDG_SESSION_DESKTOP=sway
XDG_CURRENT_DESKTOP=sway
Okay so I made it work on my end but I'm not under NixOS/not using Genymotion installed from Nix, try
QT_QPA_PLATFORM=xcb genymotion
Okay so I made it work on my end but I'm not under NixOS/not using Genymotion installed from Nix, try
QT_QPA_PLATFORM=xcb genymotion
I have run with QT_QPA_PLATFORM=xcb genymotion
, but still get error.
~ QT_QPA_PLATFORM=xcb genymotion
Logging activities to file: /home/yswtrue/.Genymobile/genymotion.log
2023-06-06T00:50:24+08:00 [genymotion:362316] [fatal] 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.
fish: Job 1, 'QT_QPA_PLATFORM=xcb genymotion' terminated by signal SIGABRT (Abort)
and this is the QT relate envs
! ~ env | grep QT
QT_IM_MODULE=fcitx
QTWEBKIT_PLUGIN_PATH=/home/yswtrue/.local/share/flatpak/exports/lib/mozilla/plugins/:/var/lib/flatpak/exports/lib/mozilla/plugins/:/home/yswtrue/.nix-profile/lib/mozilla/plugins/:/etc/profiles/per-user/yswtrue/lib/mozilla/plugins/:/nix/var/nix/profiles/default/lib/mozilla/plugins/:/run/current-system/sw/lib/mozilla/plugins/
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_WAYLAND_FORCE_DPI=96
QT_PLUGIN_PATH=/nix/store/mhj9n59aly12xain3swxbh0kl9ipkr01-knewstuff-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/cqqnrs844n05xfz5khqkg1b2gp5ayv5k-kio-5.106.0/lib/qt-5.15.9/plugins:/nix/store/kxjm4m5w6bw5sf49yns0xhkb4kb51zsb-phonon-4.11.1/lib/qt-5.15.9/plugins:/nix/store/x1zhi2fs6jk7rasqs0gs4nf6f3s0i2if-kxmlgui-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/zam303a5nwxyl1swgdqx4p18yj94br20-ktextwidgets-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/q1c66a50yxyzdf2pq0zl6hp870nny4mr-kcompletion-5.106.0/lib/qt-5.15.9/plugins:/nix/store/r14xd1zymkv9q9778qy0qvq8gbdssk2w-sonnet-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/61lipmlaw87rx2f5czfk8mdf5n4z4gx6-kglobalaccel-5.106.0/lib/qt-5.15.9/plugins:/nix/store/pilhf2507iw7w83bfkzwqys6miv0p40n-kiconthemes-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/qb6yna9lav8bwb79k9lg4kssn4amy182-kitemviews-5.106.0/lib/qt-5.15.9/plugins:/nix/store/0fw1dmhg0bnv0s3p9gs60z7d3jam5qdb-kconfigwidgets-5.106.0/lib/qt-5.15.9/plugins:/nix/store/9pmhcy5ixdh9im7043iynslyr0kw36s4-kwidgetsaddons-5.106.0/lib/qt-5.15.9/plugins:/nix/store/kd1y01zrxdw8n6dcqvcj6hxynps0idjj-kauth-5.106.0/lib/qt-5.15.9/plugins:/nix/store/54q5kc09f2z8lsdfn2336s6qfgnm9jas-kwindowsystem-5.106.0/lib/qt-5.15.9/plugins:/nix/store/dd231mn3c4l4j9ywn0mr7996vpnln3sz-ki18n-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/rv9x625kb7flxng0d9phy7rddjwy14ka-qttools-5.15.9-bin/lib/qt-5.15.9/plugins:/nix/store/3ih4q3pykx9z3j4v9115339riy1ymh93-qtwayland-5.15.9-bin/lib/qt-5.15.9/plugins:/nix/store/rg2033drjv8qq1zpb7rh5rx9py4g68q4-qtdeclarative-5.15.9-bin/lib/qt-5.15.9/plugins:/nix/store/pwpixqx9hj2s30di857l5wbvq1n99m1f-qtsvg-5.15.9-bin/lib/qt-5.15.9/plugins:/nix/store/ybhnlb2ddxphhr5klggjlrzd2a1gsm98-qtbase-5.15.9-bin/lib/qt-5.15.9/plugins:/nix/store/rzp4rkwwq6ca2w8b2qivxxwm979mc6c0-plasma-workspace-5.27.5/lib/qt-5.15.9/plugins:/nix/store/9wxh2hsflld9m7lqsvmgm0s9bahk9p07-qqc2-desktop-style-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/0iapa1rp3f7ya2n06cl4sfb5b237vynr-libksysguard-5.27.5-bin/lib/qt-5.15.9/plugins:/nix/store/bvkmr93fm3gz5c9rc84r1sywckj7ragh-qtwebengine-5.15.13-bin/lib/qt-5.15.9/plugins:/nix/store/ywgx2m7h593c7ii92qc04i3542wm681r-qtlocation-5.15.9-bin/lib/qt-5.15.9/plugins:/nix/store/hpyc03h4zzi8nzf9br3a2nlqnh0v9m7v-kwin-5.27.5/lib/qt-5.15.9/plugins:/nix/store/a5wqlca14l97m2270bxj37ff4925jawb-breeze-qt5-5.27.5-bin/lib/qt-5.15.9/plugins:/nix/store/4bwrf25cgk1j0kvny4wm1749hd4sxxsx-frameworkintegration-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/z9fqz38yiwwcr1a877xmbyl839iggw0w-qtvirtualkeyboard-5.15.9/lib/qt-5.15.9/plugins:/nix/store/73a0jb81dfxabd59n50fil522kpy90zr-qtsensors-5.15.9-bin/lib/qt-5.15.9/plugins:/nix/store/84l5xz173z3j5c1jigqw6k676lpp0bmg-ktexteditor-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/ikq1sywv6h7xhpmls0r4v2kik218h3q9-kscreenlocker-5.27.5/lib/qt-5.15.9/plugins:/nix/store/5avh5cfh83axswcj9r5847rs7pkypmsk-layer-shell-qt-5.27.5/lib/qt-5.15.9/plugins:/nix/store/67j6yg5gxcaa4dwz4mni2kmyk0ay94ig-libkscreen-5.27.5/lib/qt-5.15.9/plugins:/nix/store/sqqzzni5fxpmwrpixwk9vsfsiax9sr3k-plasma-framework-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/mhj9n59aly12xain3swxbh0kl9ipkr01-knewstuff-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/xdaw9b53a8w1yc19i30rljbv0qfhkpp6-kdelibs4support-5.106.0/lib/qt-5.15.9/plugins:/nix/store/66v3pdq6x8gnwrbpvd970mycg7warmz9-kemoticons-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/zmqrbwgng8bcgygskk2d0iybf4vnav8w-kplotting-5.106.0/lib/qt-5.15.9/plugins:/nix/store/imy1q6rmrgl7hxnj3cmabq8x4r5cdagv-baloo-5.106.0/lib/qt-5.15.9/plugins:/nix/store/fji17j0sf2dxfc7461z1k9y8hhw09v0h-kidletime-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/cqqnrs844n05xfz5khqkg1b2gp5ayv5k-kio-5.106.0/lib/qt-5.15.9/plugins:/nix/store/kxjm4m5w6bw5sf49yns0xhkb4kb51zsb-phonon-4.11.1/lib/qt-5.15.9/plugins:/nix/store/x1zhi2fs6jk7rasqs0gs4nf6f3s0i2if-kxmlgui-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/zam303a5nwxyl1swgdqx4p18yj94br20-ktextwidgets-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/q1c66a50yxyzdf2pq0zl6hp870nny4mr-kcompletion-5.106.0/lib/qt-5.15.9/plugins:/nix/store/r14xd1zymkv9q9778qy0qvq8gbdssk2w-sonnet-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/61lipmlaw87rx2f5czfk8mdf5n4z4gx6-kglobalaccel-5.106.0/lib/qt-5.15.9/plugins:/nix/store/pilhf2507iw7w83bfkzwqys6miv0p40n-kiconthemes-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/qb6yna9lav8bwb79k9lg4kssn4amy182-kitemviews-5.106.0/lib/qt-5.15.9/plugins:/nix/store/0fw1dmhg0bnv0s3p9gs60z7d3jam5qdb-kconfigwidgets-5.106.0/lib/qt-5.15.9/plugins:/nix/store/9pmhcy5ixdh9im7043iynslyr0kw36s4-kwidgetsaddons-5.106.0/lib/qt-5.15.9/plugins:/nix/store/54q5kc09f2z8lsdfn2336s6qfgnm9jas-kwindowsystem-5.106.0/lib/qt-5.15.9/plugins:/nix/store/kd1y01zrxdw8n6dcqvcj6hxynps0idjj-kauth-5.106.0/lib/qt-5.15.9/plugins:/nix/store/amdn2fpsvgs3wfvicisipn262qn58l5f-kfilemetadata-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/4rkb6hs18hjb6acn1xsrs5ywy9x2yyg4-qtmultimedia-5.15.9-bin/lib/qt-5.15.9/plugins:/nix/store/dd231mn3c4l4j9ywn0mr7996vpnln3sz-ki18n-5.106.0-bin/lib/qt-5.15.9/plugins:/nix/store/rv9x625kb7flxng0d9phy7rddjwy14ka-qttools-5.15.9-bin/lib/qt-5.15.9/plugins:/nix/store/3ih4q3pykx9z3j4v9115339riy1ymh93-qtwayland-5.15.9-bin/lib/qt-5.15.9/plugins:/nix/store/rg2033drjv8qq1zpb7rh5rx9py4g68q4-qtdeclarative-5.15.9-bin/lib/qt-5.15.9/plugins:/nix/store/pwpixqx9hj2s30di857l5wbvq1n99m1f-qtsvg-5.15.9-bin/lib/qt-5.15.9/plugins:/nix/store/ybhnlb2ddxphhr5klggjlrzd2a1gsm98-qtbase-5.15.9-bin/lib/qt-5.15.9/plugins:/nix/store/kwdpy5m2kyz8b7jhcfzi438mjiv2m4y7-fcitx5-with-addons-5.0.23/lib/qt-6/plugins:/home/yswtrue/.local/share/flatpak/exports/lib/qt4/plugins:/home/yswtrue/.local/share/flatpak/exports/lib/kde4/plugins:/var/lib/flatpak/exports/lib/qt4/plugins:/var/lib/flatpak/exports/lib/kde4/plugins:/home/yswtrue/.nix-profile/lib/qt4/plugins:/home/yswtrue/.nix-profile/lib/kde4/plugins:/etc/profiles/per-user/yswtrue/lib/qt4/plugins:/etc/profiles/per-user/yswtrue/lib/kde4/plugins:/nix/var/nix/profiles/default/lib/qt4/plugins:/nix/var/nix/profiles/default/lib/kde4/plugins:/run/current-system/sw/lib/qt4/plugins:/run/current-system/sw/lib/kde4/plugins
PLASMA_USE_QT_SCALING=1
and this is XDG relate envs
~ env | grep XDG
XDG_STATE_HOME=/home/yswtrue/.local/state
XDG_DATA_DIRS=/nix/store/l83qj7by86l60xf2d7dnsch9fjf1f0fr-yakuake-23.04.1/share:/nix/store/19bhglzy094f07349dvc3fsk48chxxc8-kparts-5.106.0/share:/nix/store/i4xdxyx5fjhrm7sd2aiqvy3q117283xf-kparts-5.106.0-bin/share:/nix/store/wfhan4a0qc972y6vgc22n2qf50vd71q1-knotifyconfig-5.106.0/share:/nix/store/c5w3i5pnfqzqprmhxcn4a0jsfgv5hm2n-knewstuff-5.106.0/share:/nix/store/mhj9n59aly12xain3swxbh0kl9ipkr01-knewstuff-5.106.0-bin/share:/nix/store/6h363ia7ixnn3fhk7r6j95czhwh4d1x5-kpackage-5.106.0/share:/nix/store/m2gjkvqb4xc9227yxx4kmw900n9dayvi-kpackage-5.106.0-bin/share:/nix/store/qar55yijayaccsjdh6jb1vc7gq5zps5y-kwallet-5.106.0/share:/nix/store/vsa38b0jn578cjw9mxb9p05451v39sh8-kwallet-5.106.0-bin/share:/nix/store/4ywm2b1k0v6h3qi7vcm4kbjkjjy16jl4-knotifications-5.106.0/share:/nix/store/7xx9f18qp9pbi92fxzb4wc31jwn1xila-kded-5.106.0/share:/nix/store/rmgvs5mqwn2x6hj5mfqk6jvv57rbc0vm-solid-5.106.0/share:/nix/store/0pkcf99zlhjspp0rijk8dfk9sh1aams3-kjobwidgets-5.106.0/share:/nix/store/9s8nzbbyqh7yqyax1c5rja1x30ppxfdh-kjobwidgets-5.106.0-bin/share:/nix/store/a054yqmkh6kyw92vxidbwxq76kk27gkv-kbookmarks-5.106.0/share:/nix/store/64zn5h5v5pnydz4c56zs7xw8igf5br5x-kirigami2-5.106.0/share:/nix/store/cqqnrs844n05xfz5khqkg1b2gp5ayv5k-kio-5.106.0/share:/nix/store/jmr5n7bnpsxi6ba4gnqz35ykzjgmnxiw-knotifications-5.106.0-bin/share:/nix/store/kxjm4m5w6bw5sf49yns0xhkb4kb51zsb-phonon-4.11.1/share:/nix/store/5jj7s3v7ff8dzd729dffjxwrp36c0h62-kxmlgui-5.106.0/share:/nix/store/jhglhnjvaxfspicgi3yqx0gr0y3kqrkc-ktextwidgets-5.106.0/share:/nix/store/i00w7f7l94zwpya1fvmhllrzgi18ckxy-sonnet-5.106.0/share:/nix/store/q1c66a50yxyzdf2pq0zl6hp870nny4mr-kcompletion-5.106.0/share:/nix/store/61lipmlaw87rx2f5czfk8mdf5n4z4gx6-kglobalaccel-5.106.0/share:/nix/store/af0zq5lmsgjkwymn7i53sfcb7gg0634k-kservice-5.106.0/share:/nix/store/151c7mkm1sakhz92zys8p5fksnfw3s6c-kservice-5.106.0-bin/share:/nix/store/qxh7bg7bzsbxvd0rmihd592a1d96pmd3-kiconthemes-5.106.0/share:/nix/store/w6haq5w0w57l78v4kdycb2g33f8n86cx-kguiaddons-5.106.0/share:/nix/store/nd4wdgph1mna29v8lswal0g9ch1h3jwq-kconfig-5.106.0/share:/nix/store/awh6pzh2clijk9ifz9zvjmrfw4wyg9iw-kcodecs-5.106.0/share:/nix/store/qb6yna9lav8bwb79k9lg4kssn4amy182-kitemviews-5.106.0/share:/nix/store/0fw1dmhg0bnv0s3p9gs60z7d3jam5qdb-kconfigwidgets-5.106.0/share:/nix/store/9pmhcy5ixdh9im7043iynslyr0kw36s4-kwidgetsaddons-5.106.0/share:/nix/store/kd1y01zrxdw8n6dcqvcj6hxynps0idjj-kauth-5.106.0/share:/nix/store/86i2mvg8b1g6fgn8g4snsjx2afg8a5a2-kdbusaddons-5.106.0/share:/nix/store/092n6jwpa754a8rfphlkly3g9b56mpk2-kcoreaddons-5.106.0/share:/nix/store/yxmm3l7ihkw0m4fpa7b6i9xqsg73a6hb-kcoreaddons-5.106.0-bin/share:/nix/store/54q5kc09f2z8lsdfn2336s6qfgnm9jas-kwindowsystem-5.106.0/share:/nix/store/slyhlg9swdrpbkq6j1b5lgjyqvjg3v49-flex-2.6.4/share:/nix/store/ns1mviwgvq349gy4dj6gx2gyiig98wix-gnum4-1.4.19/share:/nix/store/0kk5n30g953qd83asvh14q0gr7xn27dc-bison-3.8.2/share:/nix/store/nqx2m7dm5p2qajq4v0ciix69icj3igzj-kdoctools-5.106.0/share:/nix/store/lbkzyg3ip4dvyny13hvwidl1g2z6i7aa-ki18n-5.106.0/share:/nix/store/f4k0bn8cay3xifqjynnxxdjxjssyw7kx-karchive-5.106.0/share:/nix/store/j8h4wv0l36z4njq6607imsc0hjwlrl3z-fontconfig-2.14.0-lib/share:/nix/store/6nkzr60nla5d9g3mq3283c2dl5si6wd5-systemd-253.3/share:/nix/store/wdqklc0xcyjz1v77fvnzydn6dphyaf20-glib-2.76.2/share:/nix/store/92f59jp77w5ma55pqjhvmbk70xd0h6b5-gettext-0.21/share:/nix/store/1ggy9dpzlqy821d1gckx9l99biab48k9-dbus-1.14.6/share:/nix/store/rzp4rkwwq6ca2w8b2qivxxwm979mc6c0-plasma-workspace-5.27.5/share:/nix/store/8z1fnw80qcn996g973wykckfl0g9jrzi-pipewire-0.3.71-lib/share:/nix/store/pil4rzm79ijnfhdwbpr2x2hyqhbjv44j-kuserfeedback-1.2.0/share:/nix/store/1lbnsww6wpq0njrx4l2i2cicb47kri7q-exiv2-0.27.7/share:/nix/store/bllpyvm66pgrc7ms14qdjmz92b9dy9j8-kpipewire-5.27.5/share:/nix/store/5iig9d0wrfjsbh9mak0w9jz13njmda0q-appstream-qt-0.15.5/share:/nix/store/hy8axkaynfnbzd7vjcivnd6wagiq4928-kholidays-5.106.0/share:/nix/store/d2l33jnxd528isljym4q20x7fkvdpzj2-networkmanager-1.42.6/share:/nix/store/1xzjp62v2cjk17c796zdjb67nflp2ljx-gnutls-3.8.0/share:/nix/store/ykvisqgsgpbhlnxrls7wjrs41w8kpz65-libqalculate-4.6.1/share:/nix/store/a1a8hmxwxd7dlhn2r6zpaa6jjp8493p2-libksysguard-5.27.5/share:/nix/store/0iapa1rp3f7ya2n06cl4sfb5b237vynr-libksysguard-5.27.5-bin/share:/nix/store/qs8qjr840fmz7wby65p38q45wrmzphk2-kxmlrpcclient-5.106.0/share:/nix/store/hpyc03h4zzi8nzf9br3a2nlqnh0v9m7v-kwin-5.27.5/share:/nix/store/s4i7s9h3lz7wriwg55h2jba3iyxf2ais-breeze-qt5-5.27.5/share:/nix/store/v4m9dkgr97xhb8jq27a45fbl4s54mnkv-kdecoration-5.27.5/share:/nix/store/a5wqlca14l97m2270bxj37ff4925jawb-breeze-qt5-5.27.5-bin/share:/nix/store/4bwrf25cgk1j0kvny4wm1749hd4sxxsx-frameworkintegration-5.106.0-bin/share:/nix/store/dn3ym0b5zccp3586w0d4sxahjz4whn32-ktexteditor-5.106.0/share:/nix/store/84l5xz173z3j5c1jigqw6k676lpp0bmg-ktexteditor-5.106.0-bin/share:/nix/store/qlwnp950bmff4zs5fhh2hvd6p11dh45v-syntax-highlighting-5.106.0/share:/nix/store/ikq1sywv6h7xhpmls0r4v2kik218h3q9-kscreenlocker-5.27.5/share:/nix/store/67j6yg5gxcaa4dwz4mni2kmyk0ay94ig-libkscreen-5.27.5/share:/nix/store/jznxp2w6h90cl3mi5x4pnjndq7s54fmk-krunner-5.106.0-bin/share:/nix/store/anqkjr99adgy9cxsqlqk5qy8il9b743s-plasma-framework-5.106.0/share:/nix/store/sqqzzni5fxpmwrpixwk9vsfsiax9sr3k-plasma-framework-5.106.0-bin/share:/nix/store/1mbybqky7wklmg3fiqj1n01vp0yl09fm-kpeople-5.106.0/share:/nix/store/wfhan4a0qc972y6vgc22n2qf50vd71q1-knotifyconfig-5.106.0/share:/nix/store/c5w3i5pnfqzqprmhxcn4a0jsfgv5hm2n-knewstuff-5.106.0/share:/nix/store/mhj9n59aly12xain3swxbh0kl9ipkr01-knewstuff-5.106.0-bin/share:/nix/store/64zn5h5v5pnydz4c56zs7xw8igf5br5x-kirigami2-5.106.0/share:/nix/store/w7kcsrf0ksgmxaazcyrn7yvy1rjc22rs-kjsembed-5.106.0/share:/nix/store/554zwn60rkc2sjqkw9d143y1gcrbzjbp-kdesu-5.106.0/share:/nix/store/4dnq1x0r0dlcn9r6xchnyllz1vl4b1sx-kpty-5.106.0/share:/nix/store/xdaw9b53a8w1yc19i30rljbv0qfhkpp6-kdelibs4support-5.106.0/share:/nix/store/dyva6kqx11ycfdxcy0r89yfzy1zp9k4p-kunitconversion-5.106.0/share:/nix/store/19bhglzy094f07349dvc3fsk48chxxc8-kparts-5.106.0/share:/nix/store/i4xdxyx5fjhrm7sd2aiqvy3q117283xf-kparts-5.106.0-bin/share:/nix/store/xzzpv9b3nz3p7wmyrj35x7al2cj9d78l-kinit-5.106.0/share:/nix/store/66v3pdq6x8gnwrbpvd970mycg7warmz9-kemoticons-5.106.0-bin/share:/nix/store/q57shh2gvx99clnll1lk5q6f3skzhqkv-kdesignerplugin-5.106.0/share:/nix/store/4x2m7ib72qdfkxhdwgs4ri511gav69ks-kcmutils-5.106.0/share:/nix/store/db6b8zr3g795jwh35kqc6aa70q88c2h1-kcmutils-5.106.0-bin/share:/nix/store/5c15qw8163vd0lg1nflgaqkdd567n4mw-kdeclarative-5.106.0/share:/nix/store/6h363ia7ixnn3fhk7r6j95czhwh4d1x5-kpackage-5.106.0/share:/nix/store/m2gjkvqb4xc9227yxx4kmw900n9dayvi-kpackage-5.106.0-bin/share:/nix/store/imy1q6rmrgl7hxnj3cmabq8x4r5cdagv-baloo-5.106.0/share:/nix/store/qar55yijayaccsjdh6jb1vc7gq5zps5y-kwallet-5.106.0/share:/nix/store/vsa38b0jn578cjw9mxb9p05451v39sh8-kwallet-5.106.0-bin/share:/nix/store/4ywm2b1k0v6h3qi7vcm4kbjkjjy16jl4-knotifications-5.106.0/share:/nix/store/7xx9f18qp9pbi92fxzb4wc31jwn1xila-kded-5.106.0/share:/nix/store/rmgvs5mqwn2x6hj5mfqk6jvv57rbc0vm-solid-5.106.0/share:/nix/store/0pkcf99zlhjspp0rijk8dfk9sh1aams3-kjobwidgets-5.106.0/share:/nix/store/9s8nzbbyqh7yqyax1c5rja1x30ppxfdh-kjobwidgets-5.106.0-bin/share:/nix/store/a054yqmkh6kyw92vxidbwxq76kk27gkv-kbookmarks-5.106.0/share:/nix/store/5jj7s3v7ff8dzd729dffjxwrp36c0h62-kxmlgui-5.106.0/share:/nix/store/jhglhnjvaxfspicgi3yqx0gr0y3kqrkc-ktextwidgets-5.106.0/share:/nix/store/i00w7f7l94zwpya1fvmhllrzgi18ckxy-sonnet-5.106.0/share:/nix/store/af0zq5lmsgjkwymn7i53sfcb7gg0634k-kservice-5.106.0/share:/nix/store/151c7mkm1sakhz92zys8p5fksnfw3s6c-kservice-5.106.0-bin/share:/nix/store/qxh7bg7bzsbxvd0rmihd592a1d96pmd3-kiconthemes-5.106.0/share:/nix/store/w6haq5w0w57l78v4kdycb2g33f8n86cx-kguiaddons-5.106.0/share:/nix/store/awh6pzh2clijk9ifz9zvjmrfw4wyg9iw-kcodecs-5.106.0/share:/nix/store/86i2mvg8b1g6fgn8g4snsjx2afg8a5a2-kdbusaddons-5.106.0/share:/nix/store/nd4wdgph1mna29v8lswal0g9ch1h3jwq-kconfig-5.106.0/share:/nix/store/cqqnrs844n05xfz5khqkg1b2gp5ayv5k-kio-5.106.0/share:/nix/store/jmr5n7bnpsxi6ba4gnqz35ykzjgmnxiw-knotifications-5.106.0-bin/share:/nix/store/kxjm4m5w6bw5sf49yns0xhkb4kb51zsb-phonon-4.11.1/share:/nix/store/q1c66a50yxyzdf2pq0zl6hp870nny4mr-kcompletion-5.106.0/share:/nix/store/61lipmlaw87rx2f5czfk8mdf5n4z4gx6-kglobalaccel-5.106.0/share:/nix/store/qb6yna9lav8bwb79k9lg4kssn4amy182-kitemviews-5.106.0/share:/nix/store/0fw1dmhg0bnv0s3p9gs60z7d3jam5qdb-kconfigwidgets-5.106.0/share:/nix/store/9pmhcy5ixdh9im7043iynslyr0kw36s4-kwidgetsaddons-5.106.0/share:/nix/store/54q5kc09f2z8lsdfn2336s6qfgnm9jas-kwindowsystem-5.106.0/share:/nix/store/kd1y01zrxdw8n6dcqvcj6hxynps0idjj-kauth-5.106.0/share:/nix/store/xa0n70qp0hdgckanrj8xjl1vcsh6p9aj-kfilemetadata-5.106.0/share:/nix/store/092n6jwpa754a8rfphlkly3g9b56mpk2-kcoreaddons-5.106.0/share:/nix/store/yxmm3l7ihkw0m4fpa7b6i9xqsg73a6hb-kcoreaddons-5.106.0-bin/share:/nix/store/ad5wffxhynd2rnlpasrl2p26n2lmvcbx-linux-pam-1.5.2/share:/nix/store/and23iw6iajipjj0f8sg3gw747qlgbwq-iso-codes-4.11.0/share:/nix/store/slyhlg9swdrpbkq6j1b5lgjyqvjg3v49-flex-2.6.4/share:/nix/store/ns1mviwgvq349gy4dj6gx2gyiig98wix-gnum4-1.4.19/share:/nix/store/0kk5n30g953qd83asvh14q0gr7xn27dc-bison-3.8.2/share:/nix/store/nqx2m7dm5p2qajq4v0ciix69icj3igzj-kdoctools-5.106.0/share:/nix/store/lbkzyg3ip4dvyny13hvwidl1g2z6i7aa-ki18n-5.106.0/share:/nix/store/f4k0bn8cay3xifqjynnxxdjxjssyw7kx-karchive-5.106.0/share:/nix/store/j8h4wv0l36z4njq6607imsc0hjwlrl3z-fontconfig-2.14.0-lib/share:/nix/store/6nkzr60nla5d9g3mq3283c2dl5si6wd5-systemd-253.3/share:/nix/store/wdqklc0xcyjz1v77fvnzydn6dphyaf20-glib-2.76.2/share:/nix/store/92f59jp77w5ma55pqjhvmbk70xd0h6b5-gettext-0.21/share:/nix/store/1ggy9dpzlqy821d1gckx9l99biab48k9-dbus-1.14.6/share:/nix/store/rrj31a8q38n5s7vsn8jgkg35bicq6m7w-desktops/share:/home/yswtrue/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/home/yswtrue/.nix-profile/share:/etc/profiles/per-user/yswtrue/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share
XDG_VTNR=2
XDG_CURRENT_DESKTOP=KDE
XDG_SESSION_DESKTOP=KDE
XDG_CONFIG_HOME=/home/yswtrue/.config
XDG_SESSION_TYPE=wayland
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SEAT=seat0
NIXOS_XDG_OPEN_USE_PORTAL=1
XDG_SESSION_ID=2
XDG_CONFIG_DIRS=/nix/store/cqqnrs844n05xfz5khqkg1b2gp5ayv5k-kio-5.106.0/etc/xdg:/nix/store/x1zhi2fs6jk7rasqs0gs4nf6f3s0i2if-kxmlgui-5.106.0-bin/etc/xdg:/nix/store/151c7mkm1sakhz92zys8p5fksnfw3s6c-kservice-5.106.0-bin/etc/xdg:/home/yswtrue/.config/kdedefaults:/nix/store/rzp4rkwwq6ca2w8b2qivxxwm979mc6c0-plasma-workspace-5.27.5/etc/xdg:/nix/store/xdaw9b53a8w1yc19i30rljbv0qfhkpp6-kdelibs4support-5.106.0/etc/xdg:/nix/store/imy1q6rmrgl7hxnj3cmabq8x4r5cdagv-baloo-5.106.0/etc/xdg:/nix/store/151c7mkm1sakhz92zys8p5fksnfw3s6c-kservice-5.106.0-bin/etc/xdg:/nix/store/cqqnrs844n05xfz5khqkg1b2gp5ayv5k-kio-5.106.0/etc/xdg:/nix/store/x1zhi2fs6jk7rasqs0gs4nf6f3s0i2if-kxmlgui-5.106.0-bin/etc/xdg:/etc/xdg:/home/yswtrue/.local/share/flatpak/exports/etc/xdg:/var/lib/flatpak/exports/etc/xdg:/home/yswtrue/.nix-profile/etc/xdg:/etc/profiles/per-user/yswtrue/etc/xdg:/nix/var/nix/profiles/default/etc/xdg:/run/current-system/sw/etc/xdg
XDG_DESKTOP_PORTAL_DIR=/nix/store/i9ilj4drbw0zzjql5vyx9x8i58dj0xmp-xdg-portals/share/xdg-desktop-portal/portals
XDG_CACHE_HOME=/home/yswtrue/.cache
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_DATA_HOME=/home/yswtrue/.local/share
Could you give a try and use every single platform listed here : wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc
Also please share your genymotion logs, there might be more to the error in there @yswtrue And finally, please let us know your exact Desktop Environnement, Wayland is being used, I suppose.
One more thing, could you retry using xcb as a platform after having installed in the environnement qt6.qtwayland
and/or this libsForQt5.qt5.qtwayland
?
EDIT : Also set QT_QPA_PLATFORMTHEME=qt5ct
So to sum up run :
QT_QPA_PLATFORMTHEME=qt5ct QT_QPA_PLATFORM=xcb genymotion`
I am using wayland + plasma, so I think the dependencies is ok
impure ~/C/nixos-config *~ QT_QPA_PLATFORMTHEME=qt5ct QT_QPA_PLATFORM=xcb genymotion nix-shell-env
Logging activities to file: /home/yswtrue/.Genymobile/genymotion.log
2023-06-06T21:26:22+08:00 [genymotion:654679] [fatal] 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.
fish: Job 1, 'QT_QPA_PLATFORMTHEME=qt5ct QT_Q…' terminated by signal SIGABRT (Abort)
and this is Genymobile/genymotion.log
! impure ~/C/nixos-config *~ cat ~/.Genymobile/genymotion.log nix-shell-env
2023-06-06T00:45:28+08:00 [genymotion:359721] [qt.qpa.plugin.info] Could not load the Qt platform plugin "wayland" in "" even though it was found.
2023-06-06T00:45:28+08:00 [genymotion:359721] [qt.qpa.plugin.info] Could not load the Qt platform plugin "xcb" in "" even though it was found.
2023-06-06T00:45:28+08:00 [genymotion:359721] [fatal] 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.
2023-06-06T00:45:38+08:00 [genymotion:359822] [qt.qpa.plugin.info] Could not load the Qt platform plugin "xcb" in "" even though it was found.
2023-06-06T00:45:38+08:00 [genymotion:359822] [fatal] 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.
2023-06-06T00:46:30+08:00 [genymotion:360306] [qt.qpa.plugin.info] Could not load the Qt platform plugin "wayland" in "" even though it was found.
2023-06-06T00:46:30+08:00 [genymotion:360306] [qt.qpa.plugin.info] Could not load the Qt platform plugin "xcb" in "" even though it was found.
2023-06-06T00:46:30+08:00 [genymotion:360306] [fatal] 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.
2023-06-06T00:49:24+08:00 [genymotion:361784] [qt.qpa.plugin.info] Could not load the Qt platform plugin "xcb" in "" even though it was found.
2023-06-06T00:49:24+08:00 [genymotion:361784] [fatal] 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.
2023-06-06T00:50:24+08:00 [genymotion:362316] [qt.qpa.plugin.info] Could not load the Qt platform plugin "xcb" in "" even though it was found.
2023-06-06T00:50:24+08:00 [genymotion:362316] [fatal] 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.
2023-06-06T01:01:40+08:00 [genymotion:389548] [qt.qpa.plugin.info] Could not load the Qt platform plugin "wayland" in "" even though it was found.
2023-06-06T01:01:40+08:00 [genymotion:389548] [qt.qpa.plugin.info] Could not load the Qt platform plugin "xcb" in "" even though it was found.
2023-06-06T01:01:40+08:00 [genymotion:389548] [fatal] 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.
2023-06-06T01:01:48+08:00 [genymotion:389802] [qt.qpa.plugin.info] Could not load the Qt platform plugin "wayland" in "" even though it was found.
2023-06-06T01:01:48+08:00 [genymotion:389802] [qt.qpa.plugin.info] Could not load the Qt platform plugin "xcb" in "" even though it was found.
2023-06-06T01:01:48+08:00 [genymotion:389802] [fatal] 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.
2023-06-06T01:03:23+08:00 [genymotion:390552] [qt.qpa.plugin.info] Could not load the Qt platform plugin "wayland" in "" even though it was found.
2023-06-06T01:03:23+08:00 [genymotion:390552] [qt.qpa.plugin.info] Could not load the Qt platform plugin "xcb" in "" even though it was found.
2023-06-06T01:03:23+08:00 [genymotion:390552] [fatal] 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.
2023-06-06T21:24:32+08:00 [genymotion:652577] [qt.qpa.plugin.info] Could not load the Qt platform plugin "xcb" in "" even though it was found.
2023-06-06T21:24:32+08:00 [genymotion:652577] [fatal] 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.
2023-06-06T21:26:22+08:00 [genymotion:654679] [qt.qpa.plugin.info] Could not load the Qt platform plugin "xcb" in "" even though it was found.
2023-06-06T21:26:22+08:00 [genymotion:654679] [fatal] 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.
This may not fix your issue, but try it with this :
EDIT: Also @yswtrue are you running with an Nvidia GPU or not Wayland ? If yes, you should try everything wayland-egl
related as well.
EDIT2: I've found this so I believe it should work, but something may be wrong, I may need to look at the Nix definition of the package and compare with the way it is packaged for ArchLinux and see if there is anything that could explain what's going on.
There could be also issues regarding Wayland + Plasma :
Note: Although it is possible to launch Plasma under Wayland, there are some missing features and known problems. See Wayland Showstoppers for a list of issues and the Plasma on Wayland workboard for the current state of development. Use Xorg for the most complete and stable experience.
If you could try another desktop environment, maybe Sway if possible, if you cannot, I will give this a try in a VM under the latest NixOS when I have some time.
@yswtrue See this commit too https://github.com/NixOS/nixpkgs/commit/28d80ffa92ee507da27de4798fa35c9c04831e55 this maybe a fix, that you don't have yet, maybe you have it already because it's been backported.
Could you please @yswtrue the run of the command QT_QPA_PLATFORM=xcb strace -f -v genymotion -o genymotion.log
?
And uploads the logs to a GitHub Gist.
If you can't or are busy, let me know, I'll try to reproduce inside a VM and investigate.
Could you please @yswtrue the run of the command
QT_QPA_PLATFORM=xcb strace -f -v genymotion -o genymotion.log
? And uploads the logs to a GitHub Gist. If you can't or are busy, let me know, I'll try to reproduce inside a VM and investigate.
This is the log https://shz.al/spfm
I know what causes this problem, because I have different qt version, so I have to add --unset "QT_PLUGIN_PATH"
to patchExecutable
, and it works for me, thanks for your patience and help
Should I make a PR?
Hm I'm not familiar with the process but I believe you should make a PR if you can @yswtrue or maybe let's tag the maintainer of Genymotion here ? I believe it is @puffnfresh
Let's wait a week or 2, if he answers back and can make the PR then you can wait to close this issue once the PR gets merged.
Still relevant. Genymotion tries to load some Qt plugins from nixpkgs and fails for whatever reason.
I was able to workaround it by doing unset QT_PLUGIN_PATH
.
nix-shell --pure -p genymotion
used to work before too but is failing now (and it's unclear why, since its effects are similar to unset QT_PLUGIN_PATH
, I guess genymotion still picks something from env vars besides plugins)
Hi! I'm there is seems no this issue on unstable, but I've found another one - Can't start virtual device: qemu libpixmin not found.
"/nix/store/44hbbqidq4v6jjy3vrvgc0sdzgkl1x0g-genymotion-3.5.1/libexec/genymotion/qemu/x86_64/bin/qemu-system-x86_64: error while loading shared libraries: libpixman-1.so.0: cannot open shared object file: No such file or directory"
Here is log:
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [debug] ==== STARTING PLAYER (pre-start) ====
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [debug] Player version: "3.5.1" 20231004-7ab9f7e60c
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [debug] args: ("/nix/store/44hbbqidq4v6jjy3vrvgc0sdzgkl1x0g-genymotion-3.5.1/libexec/genymotion/player", "--vm-name", "45e09fa4-f57c-4b12-a6c3-6f9f864ccced", "--resume")
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [debug] Theme assetsUrl "qrc:/themes/default"
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [debug] [VMTools] Loading "qemu" plugin
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [debug] [VMTools] Constructing engine
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [debug] [VMTools] Chipset: "AuthenticAMD"
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [debug] [VMTools] CPUID 0x80000001 (AMD): ECX= "7ed8320b"
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [debug] [VMTools] QEMU path: "/nix/store/44hbbqidq4v6jjy3vrvgc0sdzgkl1x0g-genymotion-3.5.1/libexec/genymotion/qemu/x86_64/bin/qemu-system-x86_64"
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [debug] [VMTools] Initializing engine
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [debug] [VMTools] Call: ("--version")
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [critical] [VMTools] Return code: 127
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [critical] [VMTools] Output command: "/nix/store/44hbbqidq4v6jjy3vrvgc0sdzgkl1x0g-genymotion-3.5.1/libexec/genymotion/qemu/x86_64/bin/qemu-system-x86_64: error while loading shared libraries: libpixman-1.so.0: cannot open shared object file: No such file or directory"
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [warning] [VMTools] 127 "/nix/store/44hbbqidq4v6jjy3vrvgc0sdzgkl1x0g-genymotion-3.5.1/libexec/genymotion/qemu/x86_64/bin/qemu-system-x86_64: error while loading shared libraries: libpixman-1.so.0: cannot open shared object file: No such file or directory\n" ""
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [critical] [VMTools] "/nix/store/44hbbqidq4v6jjy3vrvgc0sdzgkl1x0g-genymotion-3.5.1/libexec/genymotion/qemu/x86_64/bin/qemu-system-x86_64" --version failed.
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [debug] [VMTools] VMX/SVM CPU availability: false
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [debug] [VMTools] VM engine version: ""
2024-01-14T08:04:26+03:00 [Genymotion Player:149978] [debug] [VMTools] See no QEMU process with PID 149202
2024-01-14T08:04:26+03:00 [Genymotion:149928] [debug] Received remote message QMap(("endpoint", QVariant(QString, "setDeviceStatus"))("status", QVariant(QString, "BOOTING"))("uuid", QVariant(QString, "45e09fa4-f57c-4b12-a6c3-6f9f864ccced")))
2024-01-14T08:04:26+03:00 [Genymotion:149928] [info] setDeviceStatus "45e09fa4-f57c-4b12-a6c3-6f9f864ccced" DeviceListModel::Status::BOOTING
2024-01-14T08:04:34+03:00 [Genymotion:149928] [debug] Received remote message QMap(("endpoint", QVariant(QString, "setDeviceStatus"))("status", QVariant(QString, "OFF"))("uuid", QVariant(QString, "45e09fa4-f57c-4b12-a6c3-6f9f864ccced")))
2024-01-14T08:04:34+03:00 [Genymotion:149928] [info] setDeviceStatus "45e09fa4-f57c-4b12-a6c3-6f9f864ccced" DeviceListModel::Status::OFF
Should I create another issue?
That's weird, I believe you should open a new issue yes @Casul51, however I'm not sure if including pixman
as a dependency in the derivation of genymotion
might fix your issue :
Running nix-locate lib/libpixman-1.so | rg ^pixman
outputs :
pixman.out 0 s /nix/store/rzn5flsdacqg65frd7wljq9wdk3n2yln-pixman-0.42.2/lib/libpixman-1.so
pixman.out 0 s /nix/store/rzn5flsdacqg65frd7wljq9wdk3n2yln-pixman-0.42.2/lib/libpixman-1.so.0
pixman.out 752,528 x /nix/store/rzn5flsdacqg65frd7wljq9wdk3n2yln-pixman-0.42.2/lib/libpixman-1.so.0.42.2
@puffnfresh as the maintainer of genymotion's package in Nixpkgs any advice/idea, what's going wrong ?
@Casul51 Seems like you were trying to launch genymotion with qemu instead of virtualbox. A while ago I managed to make qemu version working (at least on my machine) by adding some bloaty dependencies:
{
gdk-pixbuf,
xdg-utils,
cairo,
fetchurl,
fontconfig,
freetype,
glib,
gtk3,
lib,
libGL,
libpulseaudio,
libXext,
libXi,
libxkbcommon,
libXmu,
libXrender,
makeWrapper,
pixman,
stdenv,
systemd,
which,
xorg,
zlib,
}: let
libPath = lib.makeLibraryPath [
stdenv.cc.cc
zlib
glib
xorg.libX11
libxkbcommon
libXmu
libXi
libXext
libGL
libXrender
fontconfig
freetype
systemd
pixman
libpulseaudio
gtk3
cairo
gdk-pixbuf
];
in
stdenv.mkDerivation rec {
pname = "genymotion";
version = "3.6.0";
src = fetchurl {
url = "https://dl.genymotion.com/releases/genymotion-${version}/genymotion-${version}-linux_x64.bin";
name = "genymotion-${version}-linux_x64.bin";
sha256 = "sha256-CS1A9udt47bhgnYJqqkCG3z4XaPVHmz417VTsY2ccOA=";
};
nativeBuildInputs = [makeWrapper];
buildInputs = [which xdg-utils];
unpackPhase = ''
mkdir -p phony-home $out/share/applications
export HOME=$TMP/phony-home
mkdir ${pname}
echo "y" | sh $src -d ${pname}
sourceRoot=${pname}
substitute phony-home/.local/share/applications/genymobile-genymotion.desktop \
$out/share/applications/genymobile-genymotion.desktop --replace "$TMP/${pname}" "$out/libexec"
'';
installPhase = ''
mkdir -p $out/bin $out/libexec
mv genymotion $out/libexec/
ln -s $out/libexec/genymotion/{genymotion,player} $out/bin
'';
fixupPhase = ''
patchInterpreter() {
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
"$out/libexec/genymotion/$1"
}
patchExecutable() {
patchInterpreter "$1"
wrapProgram "$out/libexec/genymotion/$1" \
--set "LD_LIBRARY_PATH" "${libPath}" \
--unset "QML2_IMPORT_PATH" \
--unset "QT_PLUGIN_PATH"
}
patchTool() {
patchInterpreter "tools/$1"
wrapProgram "$out/libexec/genymotion/tools/$1" \
--set "LD_LIBRARY_PATH" "${libPath}"
}
patchExecutable genymotion
patchExecutable player
patchInterpreter qemu/x86_64/bin/{qemu-system-x86_64,qemu-img}
patchTool adb
patchTool aapt
patchTool glewinfo
rm $out/libexec/genymotion/libxkbcommon*
'';
}
I didn't test it on latest unstable, but you could give it a shot. It also workarounds that Qt issue via --unset "QT_PLUGIN_PATH"
in wrapper.
Describe the bug
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.