markmal / freeship-plus-in-lazarus

FreeShip Plus in Lazarus
GNU General Public License v3.0
187 stars 35 forks source link

Crash during Linesplan DXF export #85

Closed CzifraP closed 7 months ago

CzifraP commented 3 years ago

Hello,

when I tried to export the Linesplan of my hull to dxf I got this message below.

Program exception! Stacktrace:

Exception class: ERangeError Message: Range check error $0000000000A8D841 ADDSPLINE, line 1834 of Forms/FreeLinesplanFrme.pas $0000000000A8BD21 ADDINTERSECTION, line 1939 of Forms/FreeLinesplanFrme.pas $0000000000A8A5F9 EXPORTDXFEXECUTE, line 2075 of Forms/FreeLinesplanFrme.pas $000000000055EB9C $00000000005CE4E9 EXECUTE, line 246 of include/customaction.inc $000000000055E892 $0000000000729359 CLICK, line 919 of include/toolbutton.inc $0000000000726F7F MOUSEUP, line 175 of include/toolbutton.inc $00000000004A69D4 DOMOUSEUP, line 2301 of include/control.inc $00000000004A7755 WMLBUTTONUP, line 2783 of include/control.inc $000000000046EE3A $00000000004A4E08 PERFORM, line 1581 of include/control.inc $0000000000496FF4 ISCONTROLMOUSEMSG, line 4755 of include/wincontrol.inc $000000000049877F WNDPROC, line 5376 of include/wincontrol.inc $0000000000776738 DELIVERMESSAGE, line 112 of lclmessageglue.pas $00000000007574F5 DELIVERMESSAGE, line 3780 of gtk2proc.inc $0000000000766DBC DELIVERMOUSEUPMESSAGE, line 2209 of gtk2callback.inc $0000000000A8BD21 ADDINTERSECTION, line 1939 of Forms/FreeLinesplanFrme.pas $0000000000A8A5F9 EXPORTDXFEXECUTE, line 2075 of Forms/FreeLinesplanFrme.pas $000000000055EB9C $00000000005CE4E9 EXECUTE, line 246 of include/customaction.inc $000000000055E892 $0000000000729359 CLICK, line 919 of include/toolbutton.inc $0000000000726F7F MOUSEUP, line 175 of include/toolbutton.inc $00000000004A69D4 DOMOUSEUP, line 2301 of include/control.inc $00000000004A7755 WMLBUTTONUP, line 2783 of include/control.inc $000000000046EE3A $00000000004A4E08 PERFORM, line 1581 of include/control.inc $0000000000496FF4 ISCONTROLMOUSEMSG, line 4755 of include/wincontrol.inc $000000000049877F WNDPROC, line 5376 of include/wincontrol.inc $0000000000776738 DELIVERMESSAGE, line 112 of lclmessageglue.pas $00000000007574F5 DELIVERMESSAGE, line 3780 of gtk2proc.inc $0000000000766DBC DELIVERMOUSEUPMESSAGE, line 2209 of gtk2callback.inc

CzifraP commented 3 years ago

I found the cause of the exception here.

ADDSPLINE, line 1824 of Forms/FreeLinesplanFrme.pas NParams variable was used in the for loop instead of the right NValues variable.

FIFTYSIXFACTORY commented 1 year ago

Hi, I have a similar problem.It seems you found the cause of this problem, but did you fix it? If yes ,would you please to tell me how did you do,. thx

PS:here the crash report:

Program exception! Stacktrace:

Exception class: ERangeError Message: Range check error $0000000100408D72 line 1839 of Forms/FreeLinesplanFrme.pas $0000000100407477 line 1939 of Forms/FreeLinesplanFrme.pas $00000001004067BB line 2122 of Forms/FreeLinesplanFrme.pas $00000001000A6FAC $00000001000F155C line 98 of include/containedaction.inc $00000001000F335B line 246 of include/customaction.inc $00000001000A6D1B $000000010003B537 line 2914 of include/control.inc $00000001001C3629 line 919 of include/toolbutton.inc $00000001001C134E line 175 of include/toolbutton.inc $000000010003A384 line 2301 of include/control.inc $000000010003B1F5 line 2783 of include/control.inc $00000001000100F5 $000000010003A173 line 2241 of include/control.inc $0000000100038A48 line 1581 of include/control.inc $000000010002C19C line 4755 of include/wincontrol.inc $000000010002D6E1 line 5376 of include/wincontrol.inc $0000000100407477 line 1939 of Forms/FreeLinesplanFrme.pas $00000001004067BB line 2122 of Forms/FreeLinesplanFrme.pas $00000001000A6FAC $00000001000F155C line 98 of include/containedaction.inc $00000001000F335B line 246 of include/customaction.inc $00000001000A6D1B $000000010003B537 line 2914 of include/control.inc $00000001001C3629 line 919 of include/toolbutton.inc $00000001001C134E line 175 of include/toolbutton.inc $000000010003A384 line 2301 of include/control.inc $000000010003B1F5 line 2783 of include/control.inc $00000001000100F5 $000000010003A173 line 2241 of include/control.inc $0000000100038A48 line 1581 of include/control.inc $000000010002C19C line 4755 of include/wincontrol.inc $000000010002D6E1 line 5376 of include/wincontrol.inc

markmal commented 1 year ago

Thanks for finding. I'll check.

CzifraP commented 1 year ago

Hello FiftySixFactory

I didn't fixed on the git. I downloaded the source code from GIT. I installed the Lasarus IDE and I ran the code from the ide in debugging mode. I found the issue. I fixed in my source and I ran the Freeship from the Lasarus IDE. You can do the sam until markmal fix the code and build the packages again. P.s. I didn't do any git trick because i'm not realy familiar with it. I just wrote this message.