QCAD Bugtracker

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category ECMAScript
  • Assigned To
    Andrew
  • Operating System macOS High Sierra (10.13)
  • Severity Low
  • Priority Very Low
  • Reported Version 3.24.3
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 1
  • Private
Attached to Project: QCAD Bugtracker
Opened by Vladimir Syroezhkin - 03.08.2020
Last edited by Andrew - 05.08.2020

FS#2103 - Crash when lengthen() executed twice

This code was executed in the Script Shell window. Then the program is failing of and closed.

a = addLine(0,0,100,100);
lengthen(a, true, 50); // success
lengthen(a, true, 50); // FAILED!
Closed by  Andrew
05.08.2020 10:02
Reason for closing:  Not a bug
Admin
Andrew commented on 05.08.2020 10:02

Please try:

a = addLine(0,0,100,100);
var id = a.getId();

a = doc.queryEntity(id);
lengthen(a, true, 50);

a = doc.queryEntity(id);
lengthen(a, true, 50);
Vladimir Syroezhkin commented on 05.08.2020 14:33

I executed your script and it ran successfully. Interestingly after this I can call the length(a, true, 50); function an unlimited number of times and the program now doesn't crash.

But it seems to me that functions should not behave so unpredictably... So I thought it was a bug.

P.S. I inserted var doc = this.getDocument(); at the beginning.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing