mitchmindtree / tidalcycles.nix

A Nix flake for Tidal Cycles.
GNU General Public License v3.0
60 stars 11 forks source link

`gtk` modules fail to load. #15

Open zmrocze opened 1 year ago

zmrocze commented 1 year ago

Hey, I'm getting such an error after running superdirt-start:

compiling class library...

(process:309864): Gtk-WARNING **: 00:21:43.665: Locale not supported by C library.
    Using the fallback 'C' locale.
Gtk-Message: 00:21:43.666: Failed to load module "xapp-gtk3-module"
Gtk-Message: 00:21:43.728: Failed to load module "canberra-gtk-module"
Gtk-Message: 00:21:43.736: Failed to load module "canberra-gtk-module"
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
Could not initialize GLX
/nix/store/hbvxrhxcyc3ynjc44b5ss263l1kwpgcf-sclang-with-superdirt/bin/sclang-with-superdirt: line 8: 309864 Aborted                 (core dumped) /nix/store/byjrjfsdg5jfr6v8xyi8jf95rc4rllw3-supercollider-with-plugins-3.12.2/bin/sclang -l "/nix/store/6vyyd67x1bmika35bsqdzm3qcyms6yn0-SuperDirt/sclang_conf.yaml" "$@"

I'm yet to figure out whats at fault, just giving a signal there might be some dependencies not loaded by flake?

Also: the command superdirt-install was removed right? i don't have it in nix develop scope

zmrocze commented 1 year ago

I have xapp installed with system-wide package manager

zmrocze commented 1 year ago

running export QT_XCB_GL_INTEGRATION=none from issue moves me to:

compiling class library...

(process:4766): Gtk-WARNING **: 17:45:31.505: Locale not supported by C library.
    Using the fallback 'C' locale.
Gtk-Message: 17:45:31.508: Failed to load module "xapp-gtk3-module"
Gtk-Message: 17:45:31.560: Failed to load module "canberra-gtk-module"
Gtk-Message: 17:45:31.561: Failed to load module "canberra-gtk-module"
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
    Found 867 primitives.
    Compiling directory '/nix/store/byjrjfsdg5jfr6v8xyi8jf95rc4rllw3-supercollider-with-plugins-3.12.2/share/SuperCollider/SCClassLibrary'
    Compiling directory '/nix/store/byjrjfsdg5jfr6v8xyi8jf95rc4rllw3-supercollider-with-plugins-3.12.2/share/SuperCollider/Extensions'
    Compiling directory '/nix/store/6vyyd67x1bmika35bsqdzm3qcyms6yn0-SuperDirt/quark'
    numentries = 1296609 / 20006040 = 0.065
    5860 method selectors, 3414 classes
    method table size 21129224 bytes, big table size 160048320
    Number of Symbols 15199
    Byte Code Size 449940
    compiled 567 files in 1.04 seconds

Info: 4 methods are currently overwritten by extensions. To see which, execute:
MethodOverride.printAll

compile done
localhost : setting clientID to 0.
internal : setting clientID to 0.
Couldn't set realtime scheduling priority 1: Operation not permitted
Class tree inited in 0.01 seconds

*** Welcome to SuperCollider 3.12.2. *** For help type ctrl-c ctrl-h (Emacs) or :SChelp (vim) or ctrl-U (sced/gedit).
Couldn't set realtime scheduling priority 1: Operation not permitted
Booting server 'localhost' on address 127.0.0.1:57110.
Found 0 LADSPA plugins
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
terminate called without an active exception
could not initialize audio.
Server 'localhost' exited with exit code 0.
puffnfresh commented 1 year ago

@zmrocze you probably don't have Jack started. I have services.pipewire.jack.enable = true; in my NixOS configuration.