Sanny Builder Bug Tracker - Sanny Builder
View Issue Details
0000039Sanny Builder[All Projects] compilerpublic2016-04-10 19:212016-04-22 23:56
0000039: SannyBuilder crashes when compiling a big file.
I have extended main.scm from gta SA with approximately 60000 LOC of automatically generated code. SannyBuilder is capable of compiling the code with the following statistics: MAIN size is 728958; Largest mission: 68445; largest script 35122.

When I increase the size of additional code, for example 70000 LOC, then I get the following crash:

"Sanny Builder 3 - application error: Access violation at address 00405474 in module 'sanny.exe'. Read of address 000000C7."
The main.txt with the extended code can be downloaded here: [^]

The extended code has been generated using this Python script:

def generatedFileWithStatements():
    outfile = open(pathToMain + "\\statements.txt",'w')
    outfile.write("//This file was generated to test the size of main.scm that SannyBuilder can compile.\n")
    for i in range(0,70000):
        #outfile.write('0662: write_debug_message "Test %d"\n'%i)
        outfile.write('0004: $1515 = %d\n'%i)
        if j>500:
            outfile.write('0001: wait 0 \n')


And is added to main.txt using {$INCLUDE statements.txt} before Mission 0.

Please note, the problem occurs also when the maximum size of each mission is not execeeded. For this simply use a smaller number of statements in the Python loop (e.g. 30000) and add {$INCLUDE statements.txt} in several missions. Now the size of the missions is not too big, but the compiler still crashes.
Please help, because this issue is an urgent problem for me. I want to compile a main.scm which is much bigger than the normal main.scm from GTA SA. The reason is that I'm merging the main.scm from SA, VC, and LC into one using some advanced SCM refactoring tools that I'm developing. Using fastman92limitadjuster the game will be able to handle the code at runtime. The problem is really that SB cannot compile it.

I have reported this issue already here: [^]
No tags attached.
? (508) 2016-04-10 19:21
Issue History
2016-04-10 19:21goodidea82New Issue
2016-04-10 19:21goodidea82Statusnew => assigned
2016-04-10 19:21goodidea82Assigned To => Seemann
2016-04-10 19:21goodidea82File Added:
2016-04-10 19:27goodidea82Note Added: 0000034
2016-04-22 23:56SeemannNote Added: 0000037
2016-04-22 23:56SeemannStatusassigned => closed
2016-04-22 23:56SeemannResolutionopen => duplicate

2016-04-10 19:27   
Sorry for multiple copies of this issue in the BugTracker. I tried multiple times to upload the issue and got ERRORS from the bugtracker during upload because I have a attached the whole main.scm and it was too big.
2016-04-22 23:56 [^]