Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slic3r gui fails #19271

Closed
josefs opened this issue Oct 5, 2016 · 10 comments
Closed

slic3r gui fails #19271

josefs opened this issue Oct 5, 2016 · 10 comments

Comments

@josefs
Copy link
Contributor

josefs commented Oct 5, 2016

Issue description

When I issue:

slic3r --gui

I get the following error:

Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "unity-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Can't load '/nix/store/12j8ikqfhxp27bxrd55h2900cb277fzn-perl-OpenGL-0.6703/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/auto/OpenGL/OpenGL.so' for module OpenGL: /nix/store/12j8ikqfhxp27bxrd55h2900cb277fzn-perl-OpenGL-0.6703/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/auto/OpenGL/OpenGL.so: undefined symbol: glWindowPos4dMESA at /nix/store/xcp6lrq3ynj75cqcyy7b32jgizf9jr4b-perl-5.22.2/lib/perl5/5.22.2/x86_64-linux-thread-multi/DynaLoader.pm line 193.
at /nix/store/n73gf9sncjrv2aqj4lycd7b5qipvj3dp-slic3r-1.2.9/share/slic3r/lib/Slic3r/GUI/Plater/2DToolpaths.pm line 120.
Compilation failed in require at /nix/store/n73gf9sncjrv2aqj4lycd7b5qipvj3dp-slic3r-1.2.9/share/slic3r/lib/Slic3r/GUI/Plater/2DToolpaths.pm line 120.
BEGIN failed--compilation aborted at /nix/store/n73gf9sncjrv2aqj4lycd7b5qipvj3dp-slic3r-1.2.9/share/slic3r/lib/Slic3r/GUI/Plater/2DToolpaths.pm line 120.
Compilation failed in require at /nix/store/n73gf9sncjrv2aqj4lycd7b5qipvj3dp-slic3r-1.2.9/share/slic3r/lib/Slic3r/GUI.pm line 16.
BEGIN failed--compilation aborted at /nix/store/n73gf9sncjrv2aqj4lycd7b5qipvj3dp-slic3r-1.2.9/share/slic3r/lib/Slic3r/GUI.pm line 16.
Compilation failed in require at (eval 80) line 1.

Steps to reproduce

See above.

Technical details

  • System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)
    Distributor ID: Ubuntu
    Description: Ubuntu 15.10
    Release: 15.10
    Codename: wily
  • Nix version: (run nix-env --version)
    nix-env (Nix) 1.11.4
  • Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
    17.03pre93030.548bcd0
@timor
Copy link
Member

timor commented Oct 8, 2016

I just tried out slic3r on a recent 16.09. Same problem here.

@timor
Copy link
Member

timor commented Oct 8, 2016

After some digging it looks like the glWindowsPos4* symbols are missing from libGL.so, but I am not sure they are supposed to be there in the first place. However, they are required by the perl OpenGL bindings.

@timor
Copy link
Member

timor commented Oct 12, 2016

Updating perlPackages.OpenGL to 0.70 did the trick on my machine.

@bjornfor bjornfor self-assigned this Oct 13, 2016
@bjornfor
Copy link
Contributor

Hm, I get segfault (after upgrading OpenGL to 0.70):

$ ./result/bin/slic3r --gui
Segmentation fault

@timor
Copy link
Member

timor commented Oct 14, 2016

I based my modifications on this commit: 45b2a6d

I have the branch here if you want to try: https://github.com/timor/nixpkgs/tree/slic3r-gui

Also, it seems it is not working perfectly: The print surface is not rendered. This may be a problem with the graphics drivers though. As far as I can tell, I am using the free ATI drivers (haven't changed anything in configuration.nix).

@bjornfor
Copy link
Contributor

@timor: Hm, your opengl bump is exactly like mine, so there must be something else.

@pjones
Copy link
Contributor

pjones commented Dec 2, 2016

I cherry picked the commit from @bjornfor and can report the same results. Slic3r works, but it doesn't render the print surface anymore.

Can we get someone from upstream involved?

pjones pushed a commit to pjones/nixpkgs that referenced this issue Dec 2, 2016
@pjones
Copy link
Contributor

pjones commented Mar 24, 2017

@bjornfor Do you need any help with this issue? I'm still having to patch nixpkgs due to this. Thanks.

@globin globin closed this as completed in 6b6454f Mar 24, 2017
globin pushed a commit that referenced this issue Mar 24, 2017
Fixes #19271 ("slic3r gui
fails").
@globin
Copy link
Member

globin commented Mar 24, 2017

Pushed that commit to master and 17.03 as it definitely improves the situation

@pjones
Copy link
Contributor

pjones commented Mar 24, 2017

@globin That patch at least lets slic3r run, but it's missing the object platform. That makes it very hard to use. Do we need another issue to track that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants