Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2020-11

Access Violation on second compile with FPC Text IDE

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

James Richters

I'm suddenly getting an access violation when compiling after a file changed with the FPC text IDE:

Recompiling because of I:\Programming\Gcode\Mill\pastep.pas sysinit.pp(0) Error: Compilation raised exception internally Error: Compiler exited
Error: Access violation

I haven't changed anything as far as FPC goes, and I'm using the same procedure I always have.. I make my edits in notepad++ then go to the text IDE and compile it.. it detects which files changed and re-compiles those.. it normally works fine, but now I am always getting this. I restart the text IDE and compile it and run it and it's fine.. no problems, I make even a minor change, and try to re-compile it and bam I get this access violation error. Does anyone know what this error actually means or how to track it down?

James

Reply by email

C Western
to James Richters
James Richters wrote 11 lines
I'm suddenly getting an access violation when compiling after a file changed with the FPC text IDE: Recompiling because of I:\Programming\Gcode\Mill\pastep.pas sysinit.pp(0) Error: Compilation raised exception internally Error: Compiler exited Error: Access violation I haven't changed anything as far as FPC goes, and I'm using the same procedure I always have.. I make my edits in notepad++ then go to the text IDE and compile it.. it detects which files changed and re-compiles those.. it normally works fine, but now I am always getting this. I restart the text IDE and compile it and run it and it's fine.. no problems, I make even a minor change, and try to re-compile it and bam I get this access violation error. Does anyone know what this error actually means or how to track it down? James

Is this with a recent trunk? I have started seeing this recently; an interface change in one unit causes a crash when compiling another unit. The workaround is to force recompilation of everything, which I do by deleting all the compiled files for the program. It is tricky to report as a bug, as it is intermittent, and I have only seen it on a large program.

Colin

Reply by email

Vojtěch Čihák
to C Western

Hello,
 
look at this bugreport. I reported it as a Lazarus issue but now it looks like FPC trunk issue.  
https://bugs.freepascal.org/view.php?id=37856
 
Vojtech aka Blaazen
______________________________________________________________

Show quoted text 5 lines
Od: "C Western via fpc-pascal" Komu: Datum: 12.11.2020 09:30 Předmět: Re: [fpc-pascal] Access Violation on second compile with FPC Text IDE
James Richters wrote 9 lines
I'm suddenly getting an access violation when compiling after a file changed with the FPC text IDE: Recompiling because of I:\Programming\Gcode\Mill\pastep.pas sysinit.pp(0) Error: Compilation raised exception internally Error: Compiler exited Error: Access violation I haven't changed anything as far as FPC goes, and I'm using the same procedure I always have.. I make my edits in notepad++ then go to the text IDE and compile it.. it detects which files changed and re-compiles those.. it normally works fine, but now I am always getting this.  I restart the text IDE and compile it and run it and it's fine.. no problems, I make even a minor change, and try to re-compile it and bam I get this access violation error.  Does anyone know what this error actually means or how to track it down?

Is this with a recent trunk? I have started seeing this recently; an interface change in one unit causes a crash when compiling another unit. The workaround is to force recompilation of everything, which I do by deleting all the compiled files for the program. It is tricky to report as a bug, as it is intermittent, and I have only seen it on a large program.

Colin

Reply by email

James Richters
to C Western: Is this with a recent trunk? I have started seeing this recently; an interface change in…

It's not a really recent trunk, maybe from 8 months ago or so.. It is a really really large program, but it's something I've been working on for many years and I have not experienced this until just recently, and I haven't changed anything. Just for fun I tried compiling it on Win32 and windows 32 bit is not crashing, but it's strange that after I execute the program once, when it is finsihed the blue screen is empty, yet I can compile and run it again. I have not changed any FPC files and this is a new problem, it happens every single time now on the Win64... and Win32 comes back with the blank screen every time now... So the only thing I can think of is that I must have had some windows update happen and that's what's casing this behavior.

Earlier message 6 lines
-----Original Message----- Is this with a recent trunk? I have started seeing this recently; an interface change in one unit causes a crash when compiling another unit. The workaround is to force recompilation of everything, which I do by deleting all the compiled files for the program. It is tricky to report as a bug, as it is intermittent, and I have only seen it on a large program. Colin

Reply by email