Found an issue in SpiderBasic ? Please report it here !
User avatar
Niffo
 
Posts: 35
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: 35
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: 559
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: 35
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.
Fred
Site Admin
 
Posts: 1075
Joined: Mon Feb 24, 2014 10:51 am

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

by Fred Mon Jan 14, 2019 7:16 pm

I know it's a bit late, but could your send me the code by PM so I can find the issue ? Will be indeed deleted on issue found !
User avatar
Niffo
 
Posts: 35
Joined: Sat Jun 16, 2018 10:30 pm

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

by Niffo Wed Jan 16, 2019 9:52 am

Sadly i am not able anymore to give you a crashing code. I have entirely reorganized my source code and removed a big file (port of "TabBarGadget.pbi" ;-) ) and that solved the problem for me.
But you should be able to find a crashing code from other users like "Stefan" or "C.K." : viewtopic.php?f=11&t=1496
Fred
Site Admin
 
Posts: 1075
Joined: Mon Feb 24, 2014 10:51 am

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

by Fred Fri Jan 18, 2019 7:39 pm

Could you try with 2.21 beta 2 ?
User avatar
Niffo
 
Posts: 35
Joined: Sat Jun 16, 2018 10:30 pm

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

by Niffo Mon Jan 21, 2019 11:13 am

Fred wrote:Could you try with 2.21 beta 2 ?


The same with 2.21 beta 2.

I have restored my previous crashing code so i am able to send it to you. PM coming soon ...
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 1 guest