taichi: [OS X Catalina] run fractal.py but report Segmentation fault: 11
Describe the bug
[Release mode]
[T 01/06/20 21:13:05.904] [logging.cpp:Logger@68] Taichi core started. Thread ID = 20802
[Taichi version 0.3.20, cpu only, commit 1c85d8e1]
[E 01/06/20 21:13:06.007] Received signal 11 (Segmentation fault: 11)
* Taichi Core - Stack Traceback *
==========================================================================================
| Module | Offset | Function |
|----------------------------------------------------------------------------------------|
* taichi_core.so | 295 | taichi::signal_handler(int) |
* libsystem_platform.dylib | 29 | (null) |
* libobjc.A.dylib | 194471675 | (null) |
* AppKit | 139 | (null) |
* AppKit | 0 | (null) |
* AppKit | 0 | (null) |
* AppKit | 0 | (null) |
* AppKit | 0 | (null) |
* AppKit | 0 | (null) |
* AppKit | 0 | (null) |
* AppKit | 0 | (null) |
* AppKit | 0 | (null) |
* AppKit | 0 | (null) |
* AppKit | 0 | (null) |
* AppKit | 0 | (null) |
* taichi_core.so | 746 | taichi::GUI::create_window() |
* taichi_core.so | 296 | taichi::GUI::GUI(std::__1::basic_string<char, |
| std::__1::char_traits<char>, std::__1::alloc |
| ator<char> > const&, int, int, bool) |
* taichi_core.so | 99 | pybind11::class_<taichi::GUI> pybind11::detai |
| l::argument_loader<pybind11::detail::value_an |
| d_holder&, std::__1::basic_string<char, std:: |
| __1::char_traits<char>, std::__1::allocator<c |
| har> >, taichi::VectorND<2, int, (taichi::Ins |
| tSetExt)0> >::call_impl<void, void pybind11:: |
| detail::initimpl::constructor<std::__1::basic |
| _string<char, std::__1::char_traits<char>, st |
| d::__1::allocator<char> >, taichi::VectorND<2 |
| , int, (taichi::InstSetExt)0> >::execute<pybi |
| nd11::class_<taichi::GUI>, 0>(pybind11::class |
| _<taichi::GUI>&)::'lambda'(pybind11::detail:: |
| value_and_holder&, std::__1::basic_string<cha |
| r, std::__1::char_traits<char>, std::__1::all |
| ocator<char> >, taichi::VectorND<2, int, (tai |
| chi::InstSetExt)0>)&, 0ul, 1ul, 2ul, pybind11 |
| ::detail::void_type>(void pybind11::detail::i |
| nitimpl::constructor<std::__1::basic_string<c |
| har, std::__1::char_traits<char>, std::__1::a |
| llocator<char> >, taichi::VectorND<2, int, (t |
| aichi::InstSetExt)0> >::execute<pybind11::cla |
| ss_<taichi::GUI>, 0>(pybind11::class_<taichi: |
| :GUI>&)::'lambda'(pybind11::detail::value_and |
| _holder&, std::__1::basic_string<char, std::_ |
| _1::char_traits<char>, std::__1::allocator<ch |
| ar> >, taichi::VectorND<2, int, (taichi::Inst |
| SetExt)0>)&, std::__1::integer_sequence<unsig |
| ned long, 0ul, 1ul, 2ul>, pybind11::detail::v |
| oid_type&&) |
* taichi_core.so | 153 | void pybind11::cpp_function::initialize<void |
| pybind11::detail::initimpl::constructor<std:: |
| __1::basic_string<char, std::__1::char_traits |
| <char>, std::__1::allocator<char> >, taichi:: |
| VectorND<2, int, (taichi::InstSetExt)0> >::ex |
| ecute<pybind11::class_<taichi::GUI>, 0>(pybin |
| d11::class_<taichi::GUI>&)::'lambda'(pybind11 |
| ::detail::value_and_holder&, std::__1::basic_ |
| string<char, std::__1::char_traits<char>, std |
| ::__1::allocator<char> >, taichi::VectorND<2, |
| int, (taichi::InstSetExt)0>), void, pybind11 |
| ::detail::value_and_holder&, std::__1::basic_ |
| string<char, std::__1::char_traits<char>, std |
| ::__1::allocator<char> >, taichi::VectorND<2, |
| int, (taichi::InstSetExt)0>, pybind11::name, |
| pybind11::is_method, pybind11::sibling, pybi |
| nd11::detail::is_new_style_constructor>(pybin |
| d11::class_<taichi::GUI>&&, void (*)(pybind11 |
| ::detail::value_and_holder&, std::__1::basic_ |
| string<char, std::__1::char_traits<char>, std |
| ::__1::allocator<char> >, taichi::VectorND<2, |
| int, (taichi::InstSetExt)0>), pybind11::name |
| const&, pybind11::is_method const&, pybind11 |
| ::sibling const&, pybind11::detail::is_new_st |
| yle_constructor const&)::'lambda'(pybind11::d |
| etail::function_call&)::operator()(pybind11:: |
| detail::function_call&) const |
* taichi_core.so | 2874 | pybind11::cpp_function::dispatcher(_object*, |
| _object*, _object*) |
* python | 437 | (null) |
* python | 111 | (null) |
* python | 130 | (null) |
* python | 130 | (null) |
* python | 422 | (null) |
* python | 241 | (null) |
* python | 179 | (null) |
* python | 453 | (null) |
* python | 46092 | (null) |
* python | 414 | (null) |
* python | 231 | (null) |
* python | 193 | (null) |
* python | 241 | (null) |
* python | 179 | (null) |
* python | 453 | (null) |
* python | 46336 | (null) |
* python | 414 | (null) |
* python | 256 | (null) |
* python | 391 | (null) |
* python | 9663 | (null) |
* python | 125 | (null) |
* libdyld.dylib | 1 | (null) |
* ??? | 2 | (null) |
==========================================================================================
To Reproduce python examples/fractal.py
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 17 (4 by maintainers)
Commits related to this issue
- Fix GUI crash on Mac OS Catalina 10.15 fixes #343, fixes #313 — committed to k-ye/taichi by k-ye 4 years ago
- Fix GUI crash on Mac by delaying the window launching time fixes #343, fixes #313 — committed to k-ye/taichi by k-ye 4 years ago
- Fix GUI crash on Mac by delaying the window launching time fixes #343, fixes #313 — committed to k-ye/taichi by k-ye 4 years ago
Hi guys, we have released v0.3.21 for OS X (thanks to @k-ye), which might have fixed this issue. However, we cannot test on every OS X version. Could you update and let us know if this issue is resolved?
Thanks for reporting. This is a known issue. More details: https://github.com/yuanming-hu/taichi/issues/313
Thank you, using the new version of “taichi_nightly_0.3.21” effectively solved my problem! Sorry! I did n’t get an instant response on weekends. I saw your email at the company this morning! I tried to switch to “taichi_nightly_0.3.21”, she can work on my mac ox Mojae 10.14.6 version, thank you again
------------------ 原始邮件 ------------------ 发件人: “Yuanming Hu”<notifications@github.com>; 发送时间: 2020年1月11日(星期六) 中午1:28 收件人: “taichi-dev/taichi”<taichi@noreply.github.com>; 抄送: “李金伟”<1311353736@qq.com>;“Comment”<comment@noreply.github.com>; 主题: Re: [taichi-dev/taichi] [OS X Catalina] run fractal.py but report Segmentation fault: 11 (#343)
@lisheng89 Could you confirm that fractal.py (which creates a GUI) works on your OS X Catalina 10.15.2? A lot of users reported that the GUI system does not work on Catalina.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Fantastic! I believe we can close this issue now. Credits go to @k-ye .
In the same situation, my version is 10.14.6, isn’t it working after 10.14?
@yuanming-hu
fractal.pyworks well on my OS X Catalina 10.15.2on OS X Catalina, use apple default python3 install taichi, and run the code with
python3 xx.pycould solve it.python3 version
mac os version 10.15.2
Same here, although mine is macOS Mojave (version 10.14.5).
Same issue on Mac OSX Catalina.