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

2.6.0-alpha6 segvault on startup #10418

Closed
2 tasks
angaz opened this issue Apr 22, 2023 · 1 comment
Closed
2 tasks

2.6.0-alpha6 segvault on startup #10418

angaz opened this issue Apr 22, 2023 · 1 comment

Comments

@angaz
Copy link

angaz commented Apr 22, 2023

Description of the bug

Hi, I'm trying to build 2.6.0-alpha6 on Nix. I have the following changes:

    (prusa-slicer.overrideAttrs (oldAttrs:
    let
      nanosvg = stdenv.mkDerivation rec {
        pname = "nanosvg";
        version = "2022.12.04";

        nativeBuildInputs = [ cmake ];

        src = fetchFromGitHub {
          owner = "fltk";
          repo = "nanosvg";
          rev = "abcd277ea45e9098bed752cf9c6875b533c0892f";
          sha256 = "sha256-WNdAYu66ggpSYJ8Kt57yEA4mSTv+Rvzj9Rm1q765HpY=";
        };
      };
      wxGTK-prusa = wxGTK32.overrideAttrs (old: rec {
        pname = "wxwidgets-prusa3d-patched";
        version = "3.2.0-patched";

        nativeBuildInputs = [ cmake ] ++ old.nativeBuildInputs;

        src = fetchFromGitHub {
          owner = "prusa3d";
          repo = "wxWidgets";
          rev = "0b49beaacce17d90f0c370ecd73221abd089667a";
          hash = "sha256-kipN6WqJs/RlRYxw52s8xiYaU1bsGRcqBvHTRn+blxQ=";
          fetchSubmodules = true;
        };
      });
    in
    rec {
      version = "2.6.0-alpha6";

      patches = null;

      buildInputs = [
        nanosvg
        qhull
        tbb_2021_8
        wxGTK-prusa
      ] ++ lib.lists.remove tbb oldAttrs.buildInputs;

      preConfigure = ''
        sed -i '448d' CMakeLists.txt
      '';

      src = fetchFromGitHub {
        owner = "prusa3d";
        repo = "PrusaSlicer";
        sha256 = "sha256-mz2N4xwPvmCWV+iCdGEVhmYsRcsshqdI8rA6+levVaw=";
        rev = "version_${version}";
      };
    }))

The compilation is successful, but when I try to start prusa-slicer, it asks if I want to use my 2.5.x settings, it doesn't matter what I choose, then there is the segfault.

Running in GDB, I get the following backtrace:

#0  0x0000000001825bf3 in ImFont::CalcTextSizeA(float, float, float, char const*, char const*, char const**) const ()
#1  0x00000000017d9be3 in ImGui::CalcTextSize(char const*, char const*, bool, float) ()
#2  0x0000000001124d26 in Slic3r::GUI::NotificationManager::HintNotification::count_spaces() ()
#3  0x0000000001124e38 in Slic3r::GUI::NotificationManager::HintNotification::init() ()
#4  0x0000000001133a42 in Slic3r::GUI::NotificationManager::HintNotification::retrieve_data(bool) ()
#5  0x00000000010e71bd in Slic3r::GUI::NotificationManager::push_hint_notification(bool) ()
#6  0x0000000000e0bf29 in Slic3r::GUI::GUI_App::post_init() ()
#7  0x0000000000e0c50c in wxEventFunctorFunctor<wxEventTypeTag<wxIdleEvent>, Slic3r::GUI::GUI_App::on_init_inner()::{lambda(wxIdleEvent&)#5}>::operator()(wxEvtHandler*, wxEvent&) ()
#8  0x00007ffff3a20552 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /nix/store/z4dnwgd4k1mq0vnz5cvwy6si71ykmzal-wxwidgets-prusa3d-patched-3.2.0-patched/lib/libwx_baseu-3.2.so.0
#9  0x00007ffff3a20a1e in wxEvtHandler::SearchDynamicEventTable(wxEvent&) () from /nix/store/z4dnwgd4k1mq0vnz5cvwy6si71ykmzal-wxwidgets-prusa3d-patched-3.2.0-patched/lib/libwx_baseu-3.2.so.0
#10 0x00007ffff3a20dc0 in wxEvtHandler::TryHereOnly(wxEvent&) () from /nix/store/z4dnwgd4k1mq0vnz5cvwy6si71ykmzal-wxwidgets-prusa3d-patched-3.2.0-patched/lib/libwx_baseu-3.2.so.0
#11 0x00007ffff3a20e6a in wxEvtHandler::ProcessEventLocally(wxEvent&) () from /nix/store/z4dnwgd4k1mq0vnz5cvwy6si71ykmzal-wxwidgets-prusa3d-patched-3.2.0-patched/lib/libwx_baseu-3.2.so.0
#12 0x00007ffff3a20f71 in wxEvtHandler::ProcessEvent(wxEvent&) () from /nix/store/z4dnwgd4k1mq0vnz5cvwy6si71ykmzal-wxwidgets-prusa3d-patched-3.2.0-patched/lib/libwx_baseu-3.2.so.0
#13 0x00007ffff38d4c32 in wxAppConsoleBase::ProcessIdle() () from /nix/store/z4dnwgd4k1mq0vnz5cvwy6si71ykmzal-wxwidgets-prusa3d-patched-3.2.0-patched/lib/libwx_baseu-3.2.so.0
#14 0x00007ffff2fee304 in wxAppBase::ProcessIdle() () from /nix/store/z4dnwgd4k1mq0vnz5cvwy6si71ykmzal-wxwidgets-prusa3d-patched-3.2.0-patched/lib/libwx_gtk3u_core-3.2.so.0
#15 0x00007ffff32fd7a9 in wxApp::DoIdle() () from /nix/store/z4dnwgd4k1mq0vnz5cvwy6si71ykmzal-wxwidgets-prusa3d-patched-3.2.0-patched/lib/libwx_gtk3u_core-3.2.so.0
#16 0x00007ffff32fd8e3 in ?? () from /nix/store/z4dnwgd4k1mq0vnz5cvwy6si71ykmzal-wxwidgets-prusa3d-patched-3.2.0-patched/lib/libwx_gtk3u_core-3.2.so.0
#17 0x00007ffff1ca6c8f in g_main_context_dispatch () from /nix/store/pdg7ljsallvykhjwdh8193i2s4p3a4k4-glib-2.76.1/lib/libglib-2.0.so.0
#18 0x00007ffff1ca7068 in g_main_context_iterate.constprop () from /nix/store/pdg7ljsallvykhjwdh8193i2s4p3a4k4-glib-2.76.1/lib/libglib-2.0.so.0
#19 0x00007ffff1ca731f in g_main_loop_run () from /nix/store/pdg7ljsallvykhjwdh8193i2s4p3a4k4-glib-2.76.1/lib/libglib-2.0.so.0
#20 0x00007ffff2605ce5 in gtk_main () from /nix/store/zjxrcqaz8m10nwf2jl7r4jb40ha3sisw-gtk+3-3.24.37/lib/libgtk-3.so.0
#21 0x00007ffff331c8a5 in wxGUIEventLoop::DoRun() () from /nix/store/z4dnwgd4k1mq0vnz5cvwy6si71ykmzal-wxwidgets-prusa3d-patched-3.2.0-patched/lib/libwx_gtk3u_core-3.2.so.0
#22 0x00007ffff391ae9d in wxEventLoopBase::Run() () from /nix/store/z4dnwgd4k1mq0vnz5cvwy6si71ykmzal-wxwidgets-prusa3d-patched-3.2.0-patched/lib/libwx_baseu-3.2.so.0
#23 0x00007ffff38d6ffb in wxAppConsoleBase::OnRun() () from /nix/store/z4dnwgd4k1mq0vnz5cvwy6si71ykmzal-wxwidgets-prusa3d-patched-3.2.0-patched/lib/libwx_baseu-3.2.so.0
#24 0x00007ffff3978724 in wxEntry(int&, wchar_t**) () from /nix/store/z4dnwgd4k1mq0vnz5cvwy6si71ykmzal-wxwidgets-prusa3d-patched-3.2.0-patched/lib/libwx_baseu-3.2.so.0
#25 0x0000000000deead9 in Slic3r::GUI::GUI_Run(Slic3r::GUI::GUI_InitParams&) ()
#26 0x00000000006611e6 in Slic3r::CLI::run(int, char**) ()
#27 0x000000000062e6f4 in main ()

I don't know where to continue from here. So any help would be appreciated. I will try to compile alpha5 and see if it works.

Project file & How to reproduce

Described above

Checklist of files included above

  • Project file
  • Screenshot

Version of PrusaSlicer

2.6.0-alpha6 git

Operating system

Linux nixos unstable

Printer model

n/a

@angaz angaz changed the title Segvault on startup 2.6-alpha6 segvault on startup Apr 25, 2023
@angaz angaz changed the title 2.6-alpha6 segvault on startup 2.6.0-alpha6 segvault on startup Apr 25, 2023
@angaz
Copy link
Author

angaz commented Apr 25, 2023

Seems to be the same problem as #9774

@angaz angaz closed this as completed Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant