YCAMInterlab / ofxTimeline

lightweight timeline tools for openFrameworks
270 stars 140 forks source link

Crash when snapToOtherKeyframes not called #106

Closed patrickFuerst closed 10 years ago

patrickFuerst commented 10 years ago

If I don't set the flag timeline.enableSnapToOtherKeyframes(false) the app crashes after I added some key frames.

timeline.setup();
timeline.addCurves("curves", ofRange(0, 255));
timeline.addBangs("bangs");

This is the minimal setup I used.

After I added a couple of key frames I get the following from Visual Studio:

msvcp110d.dll!std::_Debug_message(const wchar_t * message, const wchar_t * file, unsigned int line) Line 15 C++
    TestTimeLine_debug.exe!std::_Tree_const_iterator<std::_Tree_val<std::_Tree_simple_types<unsigned __int64> > >::operator++() Line 262    C++
    TestTimeLine_debug.exe!std::_Tree_const_iterator<std::_Tree_val<std::_Tree_simple_types<unsigned __int64> > >::operator++(int __formal) Line 279    C++
    TestTimeLine_debug.exe!ofxTLPage::refreshSnapPoints() Line 378  C++
    TestTimeLine_debug.exe!ofxTLPage::mousePressed(ofMouseEventArgs & args, long millis) Line 193   C++
    TestTimeLine_debug.exe!ofxTimeline::mousePressed(ofMouseEventArgs & args) Line 1134 C++
    TestTimeLine_debug.exe!Poco::PriorityDelegate<ofxTimeline,ofMouseEventArgs,0>::notify(const void * sender, ofMouseEventArgs & arguments) Line 168   C++
    TestTimeLine_debug.exe!Poco::PriorityStrategy<ofMouseEventArgs,Poco::AbstractPriorityDelegate<ofMouseEventArgs> >::notify(const void * sender, ofMouseEventArgs & arguments) Line 81    C++
    TestTimeLine_debug.exe!Poco::AbstractEvent<ofMouseEventArgs,Poco::PriorityStrategy<ofMouseEventArgs,Poco::AbstractPriorityDelegate<ofMouseEventArgs> >,Poco::AbstractPriorityDelegate<ofMouseEventArgs>,Poco::FastMutex>::notify(const void * pSender, ofMouseEventArgs & args) Line 242    C++
    TestTimeLine_debug.exe!ofNotifyEvent<ofEvent<ofMouseEventArgs>,ofMouseEventArgs>(ofEvent<ofMouseEventArgs> & event, ofMouseEventArgs & args) Line 172   C++
    TestTimeLine_debug.exe!ofNotifyMousePressed(int x, int y, int button) Line 306  C++
>   TestTimeLine_debug.exe!ofAppGlutWindow::mouse_cb(int button, int state, int x, int y) Line 724  C++
obviousjim commented 10 years ago

Fixed with latest pushes to master