Comments (8)
Paging @theod ; this part crashed :
- 13
Thread 7 Crashed:
0 org.i-score 0x00000001039953e9 JamomaAddress::setValue(OSSIA::Value const_) + 25
1 org.i-score 0x0000000103994afe JamomaAddress::pushValue(OSSIA::Value const_) + 30
2 org.i-score 0x0000000103987c39 JamomaState::launch() const + 41
3 org.i-score 0x0000000103987c39 JamomaState::launch() const + 41
4 org.i-score 0x000000010394269a std::__1::__function::__func<void ()(OSSIA::TimeValue const&, OSSIA::TimeValue const&, std::__1::shared_ptrOSSIA::StateElement), std::__1::allocator<void ()(OSSIA::TimeValue const&, OSSIA::TimeValue const&, std::__1::shared_ptrOSSIA::StateElement)>, void (OSSIA::TimeValue const&, OSSIA::TimeValue const&, std::__1::shared_ptrOSSIA::StateElement)>::operator()(OSSIA::TimeValue const&, OSSIA::TimeValue const&, std::__1::shared_ptrOSSIA::StateElement&&) + 58
5 org.i-score 0x000000010398840b JamomaTimeConstraint::ClockCallback(OSSIA::TimeValue const&, OSSIA::TimeValue const&, unsigned char) + 75
6 org.i-score 0x000000010397ca77 JamomaClock::tick() + 743
7 org.i-score 0x000000010397c669 JamomaClock::threadCallback() + 41
8 org.i-score 0x000000010397cf81 void* std::__1::__thread_proxy<std::__1::tuple<void (JamomaClock::)(), JamomaClock> >(void*) + 113
9 libsystem_pthread.dylib 0x00007fff8c5b005a _pthread_body + 131
10 libsystem_pthread.dylib 0x00007fff8c5affd7 _pthread_start + 176
11 libsystem_pthread.dylib 0x00007fff8c5ad3ed thread_start + 13
from score.
ouch ! malloc error : pointer being freed was not allocated !
I've put a malloc break point in Xcode but maybe @jcelerier you have a trick figure out this kind of bug ?
from score.
Mhh... On linux I use valgrind but it doesn't works in OS X (but I think that Xcode has some kind of facilities to detect such problems.)
Maybe (just maybe) a pointer is deleted manually somewhere while being part of a shared_ptr (like some std::shared_ptrOSSIA::Value) ?
from score.
thanks for the tip !
however Value are never passed using shared_ptr (at least inside the API).
are you doing this into i-score ?
from score.
I'm suspecting a memory conflict due to the listening.
I'll make some tests next week by closing the listening to see if it continue to crash.
from score.
I just checked but there are no shared_ptr in iscore either. Could it happen for a same Value to be shared between two states (e.g. when taking the states of the child processes) and then having the first State being deleted which would make the Value in the other state invalid ?
from score.
adding a mutex to protect from multithreading access resolved the problem. @lossius could you test this on the next release before to close ?
from score.
Hi, this seems to work without crashing now, although I notice other issues, but I'll report them separately.
from score.
Related Issues (20)
- Internal error: libsuil-0.so.0: not found for AppImage (v3.1.10) HOT 3
- [ui] OSC address: warn when there are hidden spaces at the end
- [ui] Device xplorer: addres sstarting by a / creates empty children HOT 1
- [mac] Adding nodes through wildcards: pre-existing nodes not matched by pattern match anymore?
- [osc] Learn does not work if address is folded
- Tracking ossia-score in the package ecosystem HOT 40
- Add ossia-score to homebrew-casks (macOS applications distributed as binaries) HOT 4
- Source tarball doesn't have an enclosing directory
- Build fails: error: explicit specialization of undeclared template class 'is_container_adaptor_like' HOT 10
- Audio File starts playback at incorrect position when using "Play from here"
- Clang-15 failure HOT 1
- Compilation issues in the VST3 plugin HOT 1
- Support for sending OSC bundles HOT 4
- Crash when deleting the window device before closing the window HOT 4
- Unable to reopen a video window closed through the window manager
- Every process flips images vertically on Mac OS with the Metal API HOT 1
- Ossia crashes when the pipewire binaries and/or conf files are not installed HOT 2
- ossia lib for linux crashes Pure Data on start up.
- video produces Internal error: Error: it != passes.end() HOT 4
- Drag multiple objects in the scenario editor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from score.