Found an issue in SpiderBasic ? Please report it here !
User avatar
Niffo
 
Posts: 32
Joined: Sat Jun 16, 2018 10:30 pm

2.20 & 2.21B : Compiler crash if too many lines to compile ?

by Niffo Sat Oct 27, 2018 1:25 pm

In a near 10.000 lines project, i finally got a "The compiler appears to have crashed or quit unexpectedly. It will be restarted ..." each time i try to compile.

The same appears with SB 2.20 or 2.21B, and on Windows (x86) or Linux x64.
If i remove lines from the project (say 50), it does not crash anymore. It seems no matter where i remove the lines.

Fred, i can give you the whole source code if needed.

[Edit]Does not crash with debugger off. So maybe it is the same problem than this one ? viewtopic.php?f=11&t=1496[/Edit]

[Edit 2]It seems commenting the most possible the "debug" commands helps to avoid the crash ...[/Edit 2]

Image
User avatar
Niffo
 
Posts: 32
Joined: Sat Jun 16, 2018 10:30 pm

Re: 2.20 & 2.21B : Compiler crash if too many lines to compi

by Niffo Wed Oct 31, 2018 1:47 pm

Finally, i got the crash with or without debugger, i'm not able to work anymore :(
User avatar
Peter
 
Posts: 552
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1

Re: 2.20 & 2.21B : Compiler crash if too many lines to compi

by Peter Wed Oct 31, 2018 2:31 pm

I've been trying to figure that out. This small test code creates a SB file with over 50000 lines. This can be started without problems (Win10Pro).

Code: Select all
If CreateFile(0, "[YourPathTo]\test.sb")
  WriteStringN(0, "Global A = 0")
  WriteStringN(0, "Procedure ProcedureWithLongProcedureName()")
  WriteStringN(0, " A = A + 1")
  WriteStringN(0, "Endprocedure")
  For Counter = 0 To 50000
    WriteStringN(0, "ProcedureWithLongProcedureName()")
  Next
  WriteStringN(0, "Debug A")
  CloseFile(0)
Else
  Debug "!CreateFile()"
EndIf


Greetings ... Peter
User avatar
Niffo
 
Posts: 32
Joined: Sat Jun 16, 2018 10:30 pm

Re: 2.20 & 2.21B : Compiler crash if too many lines to compi

by Niffo Wed Oct 31, 2018 2:40 pm

Thank you Peter in your interest with this problem.
Unfortunately, it seems not to be so simple than having only one big file. Maybe (x)includes are needed or some type of commands ?
In my source code, even removing or adding pure lines of comments can trigger crash or not.
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 4 guests