View Issue Details

IDProjectCategoryView StatusLast Update
0000053MAIDENSCore Applicationpublic2020-04-29 19:16
Reporteradministrator Assigned Toadministrator  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformAllOSWindows & macOS 
Product Version1.5 
Target Version1.5Fixed in Version1.5 
Summary0000053: Runtime Exception when adding a Part to a score with a shifted Part
DescriptionIf I change a two staves Part into a a one staff Part, and then, in the same score, I try to add another Part, a Runtime Exception occurs in the Abc2Svg library.

This likely has to do with the voices that were left orphaned by the part switch. They likely overflow the voice counters and/or confuse the voice handling logic, since the library probably does not have a way to respond to voices that do not show on any staff.

The easiest fix would probably be not to send these voices in Abc2Svg in the first place, but more research is needed.
Steps To Reproduce1. Load attached MAID file. It has a one line Piano tune.
2. Select the piano Part and change its "Instrument" to "Flute" in the Editor.
3. Select the first section of the score and add a new Part. Set the new Part's "Instrument" to, e.g., "Harpsichord".

The expected result is for a two staves harpsichord Part to be added to the score.
The actual result is a RTE in class Abc2Svg.as (see "Additional Information").
Additional InformationRangeError: Error #1125: The index 1 is out of range 1.
    at Abc2Svg/init_music_line()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\abc2svg-as3-library\src\Abc2Svg.as:11788]
    at Abc2Svg/set_piece()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\abc2svg-as3-library\src\Abc2Svg.as:13414]
    at Abc2Svg/output_music()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\abc2svg-as3-library\src\Abc2Svg.as:13713]
    at Abc2Svg/generate()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\abc2svg-as3-library\src\Abc2Svg.as:19865]
    at Abc2Svg/end_tune()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\abc2svg-as3-library\src\Abc2Svg.as:8282]
    at Abc2Svg/tosvg()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\abc2svg-as3-library\src\Abc2Svg.as:8863]
    at Abc2Svg/getSvg()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\abc2svg-as3-library\src\Abc2Svg.as:8425]
    at ro.ciacob.maidens.view.components::MusicScoreViewer/_onAbcMarkupReady()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\maidens\core-application\app\src\ro\ciacob\maidens\view\components\MusicScoreViewer.mxml:515]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at ro.ciacob.desktop.signals::Observer/notifyChange()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\observer-library\src\ro\ciacob\desktop\signals\Observer.as:40]
    at ro.ciacob.desktop.signals::PTT/send()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\observer-library\src\ro\ciacob\desktop\signals\PTT.as:116]
    at ro.ciacob.maidens.controller::Controller/_sendScoreABC()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\maidens\core-application\app\src\ro\ciacob\maidens\controller\Controller.as:3262]
    at ro.ciacob.maidens.controller::Controller/_updateProjectScore()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\maidens\core-application\app\src\ro\ciacob\maidens\controller\Controller.as:3574]
    at ro.ciacob.maidens.controller::Controller/_updateAllViews()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\maidens\core-application\app\src\ro\ciacob\maidens\controller\Controller.as:3533]
    at ro.ciacob.maidens.controller::Controller/_commitPartData()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\maidens\core-application\app\src\ro\ciacob\maidens\controller\Controller.as:521]
    at ro.ciacob.maidens.controller::Controller/_onUserCommit()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\maidens\core-application\app\src\ro\ciacob\maidens\controller\Controller.as:2817]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at ro.ciacob.desktop.signals::Observer/notifyChange()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\observer-library\src\ro\ciacob\desktop\signals\Observer.as:40]
    at ro.ciacob.desktop.signals::PTT/send()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\observer-library\src\ro\ciacob\desktop\signals\PTT.as:116]
    at ro.ciacob.maidens.view.components::UIBase/_applyChanges()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\maidens\core-application\app\src\ro\ciacob\maidens\view\components\UIBase.mxml:256]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at ro.ciacob.desktop.operation::Procrastinator/_performAction()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\procrastinator-library\src\ro\ciacob\desktop\operation\Procrastinator.as:133]
    at ro.ciacob.desktop.operation::Procrastinator/_onTimerComplete()[K:\DATA\RW\PROJECTS\_PROGRAMMING_\claudius-iacob-eu--home-claudiusiacob-git\procrastinator-library\src\ro\ciacob\desktop\operation\Procrastinator.as:128]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.utils::Timer/tick()
TagsOSX, score editing, Windows

Activities

administrator

2020-04-28 23:09

administrator  

Der Pastrav.maid (3,374 bytes)

administrator

2020-04-29 19:16

administrator   ~0000015

There were several unrelated issues, actually. One of them made the program randomly crash when adding a new Part to a Section, even without shifting any of the existing Parts (like in the bug description).

Issue History

Date Modified Username Field Change
2020-04-28 23:09 administrator New Issue
2020-04-28 23:09 administrator Status new => assigned
2020-04-28 23:09 administrator Assigned To => administrator
2020-04-28 23:09 administrator Tag Attached: OSX
2020-04-28 23:09 administrator Tag Attached: score editing
2020-04-28 23:09 administrator Tag Attached: Windows
2020-04-28 23:09 administrator File Added: Der Pastrav.maid
2020-04-29 19:16 administrator Status assigned => resolved
2020-04-29 19:16 administrator Resolution open => fixed
2020-04-29 19:16 administrator Fixed in Version => 1.5
2020-04-29 19:16 administrator Note Added: 0000015