Resolved: Lemur Editor Crashing

Discuss Lemur and share techniques.
Post Reply
bxsj
Regular
Posts: 116
Joined: 24 Dec 2011 06:47
Location: Vienna

Resolved: Lemur Editor Crashing

Post by bxsj »

I worked on this template yesterday evening. This morning I tried to open it and the Lemur editor just crashes everytime I try to open it. The template is attached. This is mildy said unnerving, hours of work lost. Does it male sense to send the template to support? Does anybody have a clue on how to prevent such behavior?
B.
Edit:
When opening the xml file in IE, the following error message is displayed:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------

The character '<' cannot be used in an attribute value. Error processing resource 'file:///T:/Daten/Lemur/Library/V-Synth/V...

for(i=0;i<4;i++) sysexout = osc1_time_sysex;
---------^


Btw., operating system is Win 7 64 Bit
Attachments
V-Synth V01.jzml
(26.86 KiB) Downloaded 85 times
Last edited by bxsj on 08 Mar 2012 11:52, edited 1 time in total.
Win7 64, Ipad Lemur, Cubase6 and a bunch of Roland Synths and Samplers
axel_liine
Liine Staff
Posts: 126
Joined: 14 Dec 2011 12:12

Re: Lemur Editor Crashing

Post by axel_liine »

Looking into this. It appears the crash occurs within the arraytohex script, because of the arraytostring function. We've already seen that one in another crashing template that was sent to support.
Try editing the jzml from a text editoer (back up the file first), and delete line 191 : return(array_out);
This should allow you to open your template back while we chase the bug.
axel_liine
Liine Staff
Posts: 126
Joined: 14 Dec 2011 12:12

Re: Lemur Editor Crashing

Post by axel_liine »

Oops, I meant delete "return arraytostring(a);" in line 171 and leave everything else.
bxsj
Regular
Posts: 116
Joined: 24 Dec 2011 06:47
Location: Vienna

Re: Lemur Editor Crashing

Post by bxsj »

Thanks for the fast reply! :D
I can confirm that removing line 171 in my template, using WordPad, solves the crash when trying to open the template. In other templates the arraytohex function works just fine. So it must be specific to the stuff I do in this template. Here is what I noticed:
- I introduced a new function arraymerge that concatenates two arrays into one. Could this be causing the offending behavior?
- The script arraytohex lost all carriage returns
- The height value of menu midi_channel gets set to 8670 when I resize container settings? Before resizing it shows 510, but indicating a much higher height in the graphical display. Sounds confusing, so am I.

Again thanks for the help. At least I can access the template again. Any recommendations on how to circumvent this problem for the time being?

Take care,
B.
Win7 64, Ipad Lemur, Cubase6 and a bunch of Roland Synths and Samplers
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Lemur Editor Crashing

Post by Macciza »

Hi
The returning a function -arraytostring(a) - bit seems a bit weird to me . . .
Maybe assign it back to the array and return it instead as it is clearer as to what should happen . . .

Iam doing some similar stuff with some Roland gear and will send you some stuff . . .
Cheers
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
bxsj
Regular
Posts: 116
Joined: 24 Dec 2011 06:47
Location: Vienna

Re: Lemur Editor Crashing

Post by bxsj »

You saved my day :D I changed the script as per your recommendations and now it can be opened w/o a problem!!!
Thanks for your around the clock/world support. Greetz from Austria :)
Take care,
B.
Win7 64, Ipad Lemur, Cubase6 and a bunch of Roland Synths and Samplers
bxsj
Regular
Posts: 116
Joined: 24 Dec 2011 06:47
Location: Vienna

Re: Lemur Editor Crashing

Post by bxsj »

Solution:
Do not use the arraytostring function in a RETURN statement returning variables in a script.
Bad:
return arraytostring(a);
Good:
arraytostring(a);
return(a);

This is valid in Lemur editor version 3.04.

Cheers,
B.
Win7 64, Ipad Lemur, Cubase6 and a bunch of Roland Synths and Samplers
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Lemur Editor Crashing

Post by Macciza »

Hi

Also I don't think that the array merge function is even necessary -
you should just be to use {vector_1, vector_2} and they join . . .
I posted a Bank/Patch Change module somewhere the other day and will add an improved one soon
Have alook http://liine.net/forum/viewtopic.php?f= ... 2&start=10
Greetz from Australia

MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
axel_liine
Liine Staff
Posts: 126
Joined: 14 Dec 2011 12:12

Re: Lemur Editor Crashing

Post by axel_liine »

Macciza wrote:Hi
The returning a function -arraytostring(a) - bit seems a bit weird to me . . .
Maybe assign it back to the array and return it instead as it is clearer as to what should happen . . .

Iam doing some similar stuff with some Roland gear and will send you some stuff . . .
Cheers
MM
There shouldn't be any difference in doing

Code: Select all

return arraytostring(a);
and

Code: Select all

decl b = arraytostring(a);
return b;
I'm investigating that crash...
bxsj
Regular
Posts: 116
Joined: 24 Dec 2011 06:47
Location: Vienna

Re: Resolved: Lemur Editor Crashing

Post by bxsj »

Also I don't think that the array merge function is even necessary -
you should just be to use {vector_1, vector_2} and they join . . .
Thanks, very usefull piece of information (not mentioned in the manual?).
I posted a Bank/Patch Change module somewhere the other day and will add an improved one soon
Have alook viewtopic.php?f=24&t=1152&start=10
Thanks again. I am pretty new to Lemur and still learning.

I wish I had more time to spend with this amazing app.
Cheers,
B.
Win7 64, Ipad Lemur, Cubase6 and a bunch of Roland Synths and Samplers
Post Reply