-
-
Notifications
You must be signed in to change notification settings - Fork 833
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
patch: Locale related crash on startup (Arch build from source) #235
Comments
patch which fixed this for me:
|
Great. Thanks |
I was not planning to. I've not even created a fork of my own. |
Any help on compiling it? Keep trying and it stops with errors all the time. |
Does this still need to be merged? |
I'd love to see it merged. As-is the AppImage crashes every time on my
Arch distro
…On Tue, Aug 8, 2023 at 2:23 PM Phillip Whelan ***@***.***> wrote:
Does this still need to be merged?
—
Reply to this email directly, view it on GitHub
<#235 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGZRLILALDRX5JLNSQXC6TXUKU5RANCNFSM6AAAAAAUGV3MJA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I was able to fix it by setting my language manually .config/OrcaSlicer/OrcaSlicer.conf. I cannot recall or even find where I set it. You could try erasing that configuration file and seeing if then it can execute correctly. It was set to en_GB for me which caused it to probably caused it to crash since my locale is en_US. |
A patch has been submitted based on this.
|
…1766) fix crashes on some Linux distro caused by locale by @pfrench42 #235
It works for me. |
What's interesting is the AppImage downloaded still crashes at startup, but
I'm not sure if it's the same thing.
I've forked the repo and if I
* build from source (in DEBUG) mode
* running orca-slicer from <repo>/build/package/ doesn't crash at start,
but does crash during slicing (Press "Preview")
* although I do get "Error running JavaScript" Unsupported result type",
but it's non-fatal
I'll bring it up under gdb and see what I get
…On Wed, Aug 16, 2023 at 10:29 AM Phillip Whelan ***@***.***> wrote:
It works for me.
—
Reply to this email directly, view it on GitHub
<#235 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGZRLKLY6LOTARWRLT5U4TXVT7PTANCNFSM6AAAAAAUGV3MJA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
backtrace:
orca-slicer:
/home/pfrench/proj/github/OrcaSlicer/src/libslic3r/PerimeterGenerator.cpp:406:
Slic3r::clip_extrusion(const ClipperLib_Z::Path&, const
ClipperLib_Z::Paths&, ClipperLib_Z::ClipType)::<lambda(const
ClipperLib_Z::IntPoint&, const ClipperLib_Z::IntPoint&, const
ClipperLib_Z::IntPoint&, const ClipperLib_Z::IntPoint&,
ClipperLib_Z::IntPoint&)>: Assertion `start.z() > 0 && end.z() > 0' failed.
Thread 802 "slic3r_tbb_18" received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffdecff36c0 (LWP 1216404)]
0x00007ffff008e83c in ?? () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff008e83c in () at /usr/lib/libc.so.6
#1 0x00007ffff003e668 in raise () at /usr/lib/libc.so.6
#2 0x00007ffff00264b8 in abort () at /usr/lib/libc.so.6
#3 0x00007ffff00263dc in () at /usr/lib/libc.so.6
#4 0x00007ffff0036d26 in () at /usr/lib/libc.so.6
#5 0x0000555556a0b64f in operator()(ClipperLib_Z::IntPoint const&,
ClipperLib_Z::IntPoint const&, ClipperLib_Z::IntPoint const&,
ClipperLib_Z::IntPoint const&, ClipperLib_Z::IntPoint&) const
(__closure=0x7ffdecfe6b10, e1bot=..., e1top=..., e2bot=..., e2top=...,
pt=...)
at
/home/pfrench/proj/github/OrcaSlicer/src/libslic3r/PerimeterGenerator.cpp:406
#6 0x0000555556a16a21 in std::__invoke_impl<void,
Slic3r::clip_extrusion(const ClipperLib_Z::Path&, const
ClipperLib_Z::Paths&, ClipperLib_Z::ClipType)::<lambda(const
ClipperLib_Z::IntPoint&, const ClipperLib_Z::IntPoint&, const
ClipperLib_Z::IntPoint&, const ClipperLib_Z::IntPoint&,
ClipperLib_Z::IntPoint&)>&, const Eigen::Matrix<int, 3, 1, 2, 3, 1>&, const
Eigen::Matrix<int, 3, 1, 2, 3, 1>&, const Eigen::Matrix<int, 3, 1, 2, 3,
1>&, const Eigen::Matrix<int, 3, 1, 2, 3, 1>&, Eigen::Matrix<int, 3, 1, 2,
3, 1>&>(std::__invoke_other, struct {...} &) (__f=...) at
././/include/c++/13.2.1/bits/invoke.h:61
#7 0x0000555556a16201 in std::__invoke_r<void,
Slic3r::clip_extrusion(const ClipperLib_Z::Path&, const
ClipperLib_Z::Paths&, ClipperLib_Z::ClipType)::<lambda(const
ClipperLib_Z::IntPoint&, const ClipperLib_Z::IntPoint&, const
ClipperLib_Z::IntPoint&, const ClipperLib_Z::IntPoint&,
ClipperLib_Z::IntPoint&)>&, const Eigen::Matrix<int, 3, 1, 2, 3, 1>&, const
Eigen::Matrix<int, 3, 1, 2, 3, 1>&, const Eigen::Matrix<int, 3, 1, 2, 3,
1>&, const Eigen::Matrix<int, 3, 1, 2, 3, 1>&, Eigen::Matrix<int, 3, 1, 2,
3, 1>&>(struct {...} &) (__fn=...) at
././/include/c++/13.2.1/bits/invoke.h:111
#8 0x0000555556a15acf in std::_Function_handler<void(const
Eigen::Matrix<int, 3, 1, 2, 3, 1>&, const Eigen::Matrix<int, 3, 1, 2, 3,
1>&, const Eigen::Matrix<int, 3, 1, 2, 3, 1>&, const Eigen::Matrix<int, 3,
1, 2, 3, 1>&, Eigen::Matrix<int, 3, 1, 2, 3, 1>&),
Slic3r::clip_extrusion(const ClipperLib_Z::Path&, const
ClipperLib_Z::Paths&, ClipperLib_Z::ClipType)::<lambda(const
ClipperLib_Z::IntPoint&, const ClipperLib_Z::IntPoint&, const
ClipperLib_Z::IntPoint&, const ClipperLib_Z::IntPoint&,
ClipperLib_Z::IntPoint&)> >::_M_invoke(const std::_Any_data &, const
Eigen::Matrix<int, 3, 1, 2, 3, 1> &, const Eigen::Matrix<int, 3, 1, 2, 3,
1> &, const Eigen::Matrix<int, 3, 1, 2, 3, 1> &, const Eigen::Matrix<int,
3, 1, 2, 3, 1> &, Eigen::Matrix<int, 3, 1, 2, 3, 1> &) (__functor=...,
__args#0=..., __args#1=..., __args#2=..., __args#3=..., __args#4=...)
at ././/include/c++/13.2.1/bits/std_function.h:290
#9 0x0000555557e99566 in std::function<void (Eigen::Matrix<int, 3, 1, 2,
3, 1> const&, Eigen::Matrix<int, 3, 1, 2, 3, 1> const&, Eigen::Matrix<int,
3, 1, 2, 3, 1> const&, Eigen::Matrix<int, 3, 1, 2, 3, 1> const&,
Eigen::Matrix<int, 3, 1, 2, 3, 1>&)>::operator()(Eigen::Matrix<int, 3, 1,
2, 3, 1> const&, Eigen::Matrix<int, 3, 1, 2, 3, 1> const&,
Eigen::Matrix<int, 3, 1, 2, 3, 1> const&, Eigen::Matrix<int, 3, 1, 2, 3, 1>
const&, Eigen::Matrix<int, 3, 1, 2, 3, 1>&) const
(this=0x7ffdecfe6b10, __args#0=..., __args#1=..., __args#2=...,
__args#3=..., __args#4=...) at
././/include/c++/13.2.1/bits/std_function.h:591
#10 0x0000555557e899aa in ClipperLib_Z::Clipper::SetZ(Eigen::Matrix<int, 3,
1, 2, 3, 1>&, ClipperLib_Z::TEdge&, ClipperLib_Z::TEdge&)
(this=0x7ffdecfe69e0, pt=..., e1=..., e2=...) at
/home/pfrench/proj/github/OrcaSlicer/src/clipper/clipper.cpp:1632
#11 0x0000555557e89a02 in
ClipperLib_Z::Clipper::IntersectEdges(ClipperLib_Z::TEdge*,
ClipperLib_Z::TEdge*, Eigen::Matrix<int, 3, 1, 2, 3, 1>&)
(this=0x7ffdecfe69e0, e1=0x7ffd90034648, e2=0x7ffd90034538, Pt=...) at
/home/pfrench/proj/github/OrcaSlicer/src/clipper/clipper.cpp:1643
#12 0x0000555557e8c487 in ClipperLib_Z::Clipper::ProcessIntersections(int)
(this=0x7ffdecfe69e0, topY=-26180189)
at /home/pfrench/proj/github/OrcaSlicer/src/clipper/clipper.cpp:2434
#13 0x0000555557e87f70 in ClipperLib_Z::Clipper::ExecuteInternal()
(this=0x7ffdecfe69e0) at
/home/pfrench/proj/github/OrcaSlicer/src/clipper/clipper.cpp:1130
#14 0x0000555557e87dc7 in
ClipperLib_Z::Clipper::Execute(ClipperLib_Z::ClipType,
ClipperLib_Z::PolyTree&, ClipperLib_Z::PolyFillType,
ClipperLib_Z::PolyFillType)
(this=0x7ffdecfe69e0, clipType=ClipperLib_Z::ctIntersection,
polytree=..., subjFillType=ClipperLib_Z::pftNonZero,
clipFillType=ClipperLib_Z::pftNonZero)
at /home/pfrench/proj/github/OrcaSlicer/src/clipper/clipper.cpp:1106
#15 0x0000555556a0b9aa in Slic3r::clip_extrusion(ClipperLib_Z::Path const&,
ClipperLib_Z::Paths const&, ClipperLib_Z::ClipType)
(subject=std::vector of length 62, capacity 62 = {...},
clip=std::vector of length 4, capacity 13 = {...},
clipType=ClipperLib_Z::ctIntersection)
at
/home/pfrench/proj/github/OrcaSlicer/src/libslic3r/PerimeterGenerator.cpp:421
#16 0x0000555556a0d42c in
Slic3r::traverse_extrusions(Slic3r::PerimeterGenerator const&,
std::vector<Slic3r::PerimeterGeneratorArachneExtrusion,
std::allocator<Slic3r::PerimeterGeneratorArachneExtrusion> >&)
(perimeter_generator=..., pg_extrusions=std::vector of length 13, capacity
13 = {...})
at
/home/pfrench/proj/github/OrcaSlicer/src/libslic3r/PerimeterGenerator.cpp:609
#17 0x0000555556a1460a in Slic3r::PerimeterGenerator::process_arachne()
(this=0x7ffdecfe7770)
at
/home/pfrench/proj/github/OrcaSlicer/src/libslic3r/PerimeterGenerator.cpp:1603
#18 0x00005555569ac4ba in
Slic3r::LayerRegion::make_perimeters(Slic3r::SurfaceCollection const&,
Slic3r::SurfaceCollection*, std::vector<Slic3r::ExPolygon,
std::allocator<Slic3r::ExPolygon> >*) (this=0x7fff5801dae0, slices=...,
fill_surfaces=0x7fff5801db50, fill_no_overlap=0x7fff5801db68)
at
/home/pfrench/proj/github/OrcaSlicer/src/libslic3r/LayerRegion.cpp:114
#19 0x00005555569a72ab in Slic3r::Layer::make_perimeters()
(this=0x7fff5801d890) at
/home/pfrench/proj/github/OrcaSlicer/src/libslic3r/Layer.cpp:196
--Type <RET> for more, q to quit, c to continue without paging--c
#20 0x0000555556453c29 in
operator()(tbb::detail::d1::blocked_range<unsigned long> const&) const
(__closure=0x7fff5801c3d8, range=...)
at
/home/pfrench/proj/github/OrcaSlicer/src/libslic3r/PrintObject.cpp:227
#21 0x0000555556477c43 in
tbb::detail::d1::start_for<tbb::detail::d1::blocked_range<long unsigned
int>, Slic3r::PrintObject::make_perimeters()::<lambda(const
tbb::detail::d1::blocked_range<long unsigned int>&)>, const
tbb::detail::d1::auto_partitioner>::run_body(tbb::detail::d1::blocked_range<unsigned
long> &) (this=0x7fff5801c380, r=...)
at
/home/pfrench/proj/github/OrcaSlicer/deps/build/destdir././/local/include/oneapi/tbb/parallel_for.h:119
#22 0x0000555556475e87 in
tbb::detail::d1::dynamic_grainsize_mode<tbb::detail::d1::adaptive_mode<tbb::detail::d1::auto_partition_type>
::work_balance<tbb::detail::d1::start_for<tbb::detail::d1::blocked_range<long
unsigned int>, Slic3r::PrintObject::make_perimeters()::<lambda(const
tbb::detail::d1::blocked_range<long unsigned int>&)>, const
tbb::detail::d1::auto_partitioner>, tbb::detail::d1::blocked_range<long
unsigned int>
(tbb::detail::d1::start_for<tbb::detail::d1::blocked_range<long unsigned
int>, Slic3r::PrintObject::make_perimeters()::<lambda(const
tbb::detail::d1::blocked_range<long unsigned int>&)>, const
tbb::detail::d1::auto_partitioner> &,
tbb::detail::d1::blocked_range<unsigned long> &,
tbb::detail::d1::execution_data &) (this=0x7fff5801c3e8, start=warning:
RTTI symbol not found for class
'tbb::detail::d1::start_for<tbb::detail::d1::blocked_range<unsigned long>,
Slic3r::PrintObject::make_perimeters()::{lambda(tbb::detail::d1::blocked_range<unsigned
long> const&)#2}, tbb::detail::d1::auto_partitioner const>'
..., range=..., ed=...)
at
/home/pfrench/proj/github/OrcaSlicer/deps/build/destdir././/local/include/oneapi/tbb/partitioner.h:447
#23 0x00005555564728db in
tbb::detail::d1::partition_type_base<tbb::detail::d1::auto_partition_type>::execute<tbb::detail::d1::start_for<tbb::detail::d1::blocked_range<long
unsigned int>, Slic3r::PrintObject::make_perimeters()::<lambda(const
tbb::detail::d1::blocked_range<long unsigned int>&)>, const
tbb::detail::d1::auto_partitioner>, tbb::detail::d1::blocked_range<long
unsigned int>
(tbb::detail::d1::start_for<tbb::detail::d1::blocked_range<long unsigned
int>, Slic3r::PrintObject::make_perimeters()::<lambda(const
tbb::detail::d1::blocked_range<long unsigned int>&)>, const
tbb::detail::d1::auto_partitioner> &,
tbb::detail::d1::blocked_range<unsigned long> &,
tbb::detail::d1::execution_data &) (this=0x7fff5801c3e8, start=warning:
RTTI symbol not found for class
'tbb::detail::d1::start_for<tbb::detail::d1::blocked_range<unsigned long>,
Slic3r::PrintObject::make_perimeters()::{lambda(tbb::detail::d1::blocked_range<unsigned
long> const&)#2}, tbb::detail::d1::auto_partitioner const>'
..., range=..., ed=...)
at
/home/pfrench/proj/github/OrcaSlicer/deps/build/destdir././/local/include/oneapi/tbb/partitioner.h:288
#24 0x000055555647044c in
tbb::detail::d1::start_for<tbb::detail::d1::blocked_range<long unsigned
int>, Slic3r::PrintObject::make_perimeters()::<lambda(const
tbb::detail::d1::blocked_range<long unsigned int>&)>, const
tbb::detail::d1::auto_partitioner>::execute(tbb::detail::d1::execution_data
&) (this=0x7fff5801c380, ed=...)
at
/home/pfrench/proj/github/OrcaSlicer/deps/build/destdir././/local/include/oneapi/tbb/parallel_for.h:172
#25 0x00005555599f4607 in tbb::detail::r1::market::process(rml::job&)
(this=0x1286ec, j=...)
at
/home/pfrench/proj/github/OrcaSlicer/deps/build/dep_TBB-prefix/src/dep_TBB/src/tbb/task_dispatcher.h:322
#26 0x00005555599efa40 in thread_routine(void*) (arg=0x55555f65c380)
at
/home/pfrench/proj/github/OrcaSlicer/deps/build/dep_TBB-prefix/src/dep_TBB/src/tbb/private_server.cpp:267
#27 0x00007ffff008c9eb in () at /usr/lib/libc.so.6
#28 0x00007ffff011123c in () at /usr/lib/libc.so.6
On Wed, Aug 16, 2023 at 11:38 AM Pat Brouillette ***@***.***>
wrote:
… What's interesting is the AppImage downloaded still crashes at startup,
but I'm not sure if it's the same thing.
I've forked the repo and if I
* build from source (in DEBUG) mode
* running orca-slicer from <repo>/build/package/ doesn't crash at start,
but does crash during slicing (Press "Preview")
* although I do get "Error running JavaScript" Unsupported result type",
but it's non-fatal
I'll bring it up under gdb and see what I get
On Wed, Aug 16, 2023 at 10:29 AM Phillip Whelan ***@***.***>
wrote:
> It works for me.
>
> —
> Reply to this email directly, view it on GitHub
> <#235 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABGZRLKLY6LOTARWRLT5U4TXVT7PTANCNFSM6AAAAAAUGV3MJA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
GitHub bot: this issue is stale because it has been open for 90 days with no activity. |
GitHub bot: This issue was closed because it has been inactive for 7 days since being marked as stale. |
Describe the bug
After build from source, app crashes before main window comes up, every time.
To Reproduce
Compile the program from source.
run the program it crashes while loading the locale, before the UI comes up
Expected behavior
Main application window should come up
Screenshots
This is the backtrace of the segfault
Notice in frame #3, linux_get_existing_locale_laguage is being passed NULL for system_language, and crashes when doing member accesses of system_language
This is called from GUI_App::load_language() where m_language_info_system is NULL
language_info = linux_get_existing_locale_language(language_info, m_language_info_system);
(gdb) bt
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: