edne / pineal

Graphic Synthesis Engine, for live coding performances
GNU Affero General Public License v3.0
92 stars 7 forks source link

Issues running pineal on OSX #7

Closed Xpktro closed 7 years ago

Xpktro commented 7 years ago

Hello! I'm having some strange exception when starting pineal. I'll put you in context:

brew install boost --c++11
brew install boost-python --c++11
https://aubio.org/installation
https://aubio.org/ofxAubio/download
PROJECT_LDFLAGS = -lboost_python -laubio -lboost_filesystem -lboost_system -L/usr/lib/python2.7/config -lpython2.7

I tried to run the app as the final makefile message told me cd bin/pineal.app/Contents/MacOS/ && ./pineal and make run but got the following output (and a crash message from osx):

[notice ] Running setup()
[notice ] created ofxAubioOnset(default, 512, 256, 44100)
[notice ] created ofxAubioBeat(default, 512, 256, 44100)
libc++abi.dylib: terminating with uncaught exception of type boost::python::error_already_set

I tried opening in various ways, using finder and changing the executable current working directory but the error persists. I also tried installing the project requirements into a virtualenv and a system-wide installation, both which didn't gave any different result.

The OSX Error Eeporter gave me some sort of stacktrace about the error which is the following:

Application Specific Information:
terminating with uncaught exception of type boost::python::error_already_set
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff99b30f06 __pthread_kill + 10
1   libsystem_pthread.dylib         0x00007fff917f24ec pthread_kill + 90
2   libsystem_c.dylib               0x00007fff8fa3e77f __abort + 145
3   libsystem_c.dylib               0x00007fff8fa3e6ee abort + 144
4   libc++abi.dylib                 0x00007fff91782c11 abort_message + 257
5   libc++abi.dylib                 0x00007fff917a8e17 default_terminate_handler() + 267
6   libobjc.A.dylib                 0x00007fff8c8ac6c3 _objc_terminate() + 124
7   libc++abi.dylib                 0x00007fff917a600e std::__terminate(void (*)()) + 8
8   libc++abi.dylib                 0x00007fff917a5a7a __cxa_throw + 121
9   libboost_python.dylib           0x000000010b5a9bee boost::python::throw_error_already_set() + 46
10  libboost_python.dylib           0x000000010b594423 _object* boost::python::detail::manage_ptr<_object>(_object*, ...) + 19
11  libboost_python.dylib           0x000000010b5ae176 boost::python::import(boost::python::str) + 86
12  com.your-company-name.www       0x000000010a459c09 Pineal::setup() + 729
13  com.your-company-name.www       0x000000010a49cb07 std::__1::__function::__func<std::__1::shared_ptr<of::priv::Function<ofEventArgs, std::__1::recursive_mutex> > ofEvent<ofEventArgs, std::__1::recursive_mutex>::make_function<ofBaseApp>(ofBaseApp*, void (ofBaseApp::*)(ofEventArgs&), int)::'lambda'(void const*, ofEventArgs&), std::__1::allocator<std::__1::shared_ptr<of::priv::Function<ofEventArgs, std::__1::recursive_mutex> > ofEvent<ofEventArgs, std::__1::recursive_mutex>::make_function<ofBaseApp>(ofBaseApp*, void (ofBaseApp::*)(ofEventArgs&), int)::'lambda'(void const*, ofEventArgs&)>, bool (void const*, ofEventArgs&)>::operator()(void const*&&, ofEventArgs&) + 37
14  com.your-company-name.www       0x000000010a4a4199 std::__1::function<bool (void const*, ofEventArgs&)>::operator()(void const*, ofEventArgs&) const + 31
15  com.your-company-name.www       0x000000010a4a3fc0 ofEvent<ofEventArgs, std::__1::recursive_mutex>::notify(void const*, ofEventArgs&) + 170
16  com.your-company-name.www       0x000000010a4a2e3e ofCoreEvents::notifySetup() + 18
17  com.your-company-name.www       0x000000010a498abd ofRunApp(std::__1::shared_ptr<ofAppBaseWindow>, std::__1::shared_ptr<ofBaseApp>) + 93
18  com.your-company-name.www       0x000000010a4584ce main + 103
19  com.your-company-name.www       0x000000010a446cb4 start + 52

Thread 1:
0   libsystem_kernel.dylib          0x00007fff99b315e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff917ef578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib         0x00007fff917ed341 start_wqthread + 13

Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x00007fff99b31efa kevent_qos + 10
1   libdispatch.dylib               0x00007fff90ef4165 _dispatch_mgr_invoke + 216
2   libdispatch.dylib               0x00007fff90ef3dcd _dispatch_mgr_thread + 52

Thread 3:
0   libsystem_kernel.dylib          0x00007fff99b315e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff917ef578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib         0x00007fff917ed341 start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib          0x00007fff99b315e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff917ef578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib         0x00007fff917ed341 start_wqthread + 13

Thread 5:: com.apple.NSEventThread
0   libsystem_kernel.dylib          0x00007fff99b2afae semaphore_wait_trap + 10
1   libdispatch.dylib               0x00007fff90ef9cb2 _dispatch_semaphore_wait_slow + 224
2   com.apple.HIToolbox             0x00007fff8cf9b9e1 _BeginEventReceiptOnThread + 151
3   com.apple.AppKit                0x00007fff89f7ed33 _NSEventThread + 51
4   libsystem_pthread.dylib         0x00007fff917ef99d _pthread_body + 131
5   libsystem_pthread.dylib         0x00007fff917ef91a _pthread_start + 168
6   libsystem_pthread.dylib         0x00007fff917ed351 thread_start + 13

Thread 6:
0   libsystem_kernel.dylib          0x00007fff99b3107a __select + 10
1   com.your-company-name.www       0x000000010a473b09 osc::SocketReceiveMultiplexer::Implementation::Run() + 999
2   com.your-company-name.www       0x000000010a4706e4 void* std::__1::__thread_proxy<std::__1::tuple<ofxOscReceiver::setup(int)::$_1> >(void*) + 69
3   libsystem_pthread.dylib         0x00007fff917ef99d _pthread_body + 131
4   libsystem_pthread.dylib         0x00007fff917ef91a _pthread_start + 168
5   libsystem_pthread.dylib         0x00007fff917ed351 thread_start + 13

Thread 7:
0   libsystem_kernel.dylib          0x00007fff99b2afc6 semaphore_timedwait_trap + 10
1   libdispatch.dylib               0x00007fff90ef9c67 _dispatch_semaphore_wait_slow + 149
2   libdispatch.dylib               0x00007fff90ef3d1b _dispatch_worker_thread + 148
3   libsystem_pthread.dylib         0x00007fff917ef99d _pthread_body + 131
4   libsystem_pthread.dylib         0x00007fff917ef91a _pthread_start + 168
5   libsystem_pthread.dylib         0x00007fff917ed351 thread_start + 13

I have no idea how to debug the setup code and therefore I ask for help if I'm missing something or did something wrong or if there is another issue with the project/dependencies.

Thanks!

edne commented 7 years ago

I'm sorry but compiling C++ projects is often a huge platform-dependent mess, especially dealing with external libraries like boost. By the way now I'm doing a lot of changes rolling back to a (more or less) pure Python implementation, I stripped-down some feature, some of them will be restored, and the actual "front-end syntax" is quite sketchy and undocumented. You can try it now or come back in a few weeks (or months...).