View Issue Details

IDProjectCategoryView StatusLast Update
0007196ardourbugspublic2017-01-03 23:05
Reporterimportmidi Assigned Topaul  
PrioritynormalSeveritycrashReproducibilityalways
Status feedbackResolutionopen 
PlatformlinuxOSdebianOS Versionavlinux
Product Version5.5 
Summary0007196: import a midi file crashes Ardour
Descriptionimport a midi file crashes Ardour
Steps To Reproduceimport the midi file joined
Additional Informationimport dialog doesn't provide "one track by channel" option
TagsNo tags attached.

Activities

importmidi

2017-01-02 17:41

reporter  

x42

2017-01-02 20:24

administrator   ~0019258

Investigation underway

(gdb) bt
#0 0x00007fffec25ffdf in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58
0000001 0x00007fffec26140a in __GI_abort () at abort.c:89
#2 0x00007fffec258e47 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x5555565a76fc "px != 0", file=file@entry=0x5555565a76d0 "/usr/include/boost/smart_ptr/shared_ptr.hpp", line=line@entry=710, function=function@entry=0x5555565a7aa0 <boost::shared_ptr<ARDOUR::Region>::operator->() const::__PRETTY_FUNCTION__> "typename boost::detail::sp_member_access<T>::type boost::shared_ptr<T>::operator->() const [with T = ARDOUR::Region; typename boost::detail::sp_member_access<T>::type = ARDOUR::Region*]") at assert.c:92
#3 0x00007fffec258ef2 in __GI___assert_fail (assertion=0x5555565a76fc "px != 0", file=0x5555565a76d0 "/usr/include/boost/smart_ptr/shared_ptr.hpp", line=710, function=0x5555565a7aa0 <boost::shared_ptr<ARDOUR::Region>::operator->() const::__PRETTY_FUNCTION__> "typename boost::detail::sp_member_access<T>::type boost::shared_ptr<T>::operator->() const [with T = ARDOUR::Region; typename boost::detail::sp_member_access<T>::type = ARDOUR::Region*]") at assert.c:101
0000004 0x0000555555ae19e9 in boost::shared_ptr<ARDOUR::Region>::operator->() const (this=0x7fffffffb220) at /usr/include/boost/smart_ptr/shared_ptr.hpp:710
0000005 0x00007ffff6704d1e in ARDOUR::Playlist::add_region_internal(boost::shared_ptr<ARDOUR::Region>, long, int) (this=0x55555ccc5a90, region=..., position=0, sub_num=0)
    at ../libs/ardour/playlist.cc:745
#6 0x00007ffff67044ee in ARDOUR::Playlist::add_region(boost::shared_ptr<ARDOUR::Region>, long, float, bool, int) (this=0x55555ccc5a90, region=..., position=0, times=1, auto_partition=false, sub_num=0) at ../libs/ardour/playlist.cc:688
#7 0x0000555555d26f8b in Editor::finish_bringing_in_material(boost::shared_ptr<ARDOUR::Region>, unsigned int, unsigned int, long&, Editing::ImportMode, boost::shared_ptr<ARDOUR::Track>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::shared_ptr<ARDOUR::PluginInfo>) (this=
    0x55555a07bb90, region=..., in_chans=1, out_chans=2, pos=@0x55555a07d158: 0, mode=Editing::ImportAsTrack, existing_track=..., new_track_name="musexport22-t0-1-1", instrument=...)
    at ../gtk2_ardour/editor_audio_import.cc:1050
0000008 0x0000555555d26271 in Editor::add_sources(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::vector<boost::shared_ptr<ARDOUR::Source>, std::allocator<boost::shared_ptr<ARDOUR::Source> > >&, long&, Editing::ImportDisposition, Editing::ImportMode, int, int, boost::shared_ptr<ARDOUR::Track>&, bool, boost::shared_ptr<ARDOUR::PluginInfo>) (this=0x55555a07bb90, paths=std::vector of length 1, capacity 1 = {...}, sources=std::vector of length 18, capacity 32 = {...}, pos=@0x55555a07d158: 0, disposition=Editing::ImportDistinctChannels, mode=Editing::ImportAsTrack, target_regions=-1, target_tracks=-1, track=..., instrument=...) at ../gtk2_ardour/editor_audio_import.cc:932



in gtk2_ardour/editor_audio_import.cc:1050 the "copy" is NULL.

RegionFactory::create fails in MidiRegion::clone() midi_source(0)->write_to (lm, newsrc, bbegin, bend) fails because midi_source(0)->_model is NULL..

as for why this is.. more digging is needed.

x42

2017-01-02 21:36

administrator   ~0019259

For now: disable Session > Properties > Misc > MIDI region copies are independent and the file(s) will import.

paul

2017-01-03 22:40

administrator   ~0019261

Should be fixed as of 5.5-375-g5fac2c66c

Issue History

Date Modified Username Field Change
2017-01-02 17:41 importmidi New Issue
2017-01-02 17:41 importmidi File Added: musexport22.mid
2017-01-02 20:24 x42 Note Added: 0019258
2017-01-02 21:36 x42 Note Added: 0019259
2017-01-03 22:40 paul Note Added: 0019261
2017-01-03 23:05 paul Assigned To => paul
2017-01-03 23:05 paul Status new => feedback