Sign in Join

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

Mailing lists / lazarus / 2016-06

Access violation at current svn

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Lukas Gradl

Hi!

I tried to update my Lazarus svn to the current revision (52501) on a debian jessie x86_64 machine.
I compiled it by make clean;make all using fpc 3.1.1 from today.

The comilation finishes successfully, but on starting lazarus I get a window "Read error" "Access violation Access violation".

The console (where I started startlazarus from) says: [TJITForms.DoCreateJITComponent] Error Error: Access violation Stack trace:
$0000000000547F10
$0000000000988F72 DOCREATEJITCOMPONENT, line 1041 of ../designer/jitforms.pp
$00000000009883BA ADDNEWJITCOMPONENT, line 832 of ../designer/jitforms.pp $00000000009AC43D CREATECOMPONENT, line 1306 of customformeditor.pp $0000000000BF551F CREATENEWFORM, line 4477 of sourcefilemanager.pas $0000000000BEB3F6 NEWFILE, line 2139 of sourcefilemanager.pas $00000000004B83A3 DONEWFILE, line 5479 of main.pp $0000000000905468 DONEWEDITORFILE, line 707 of lazideintf.pas $0000000000952262 CREATESTARTFILES, line 1309 of projectdefs.pas $0000000000BF103B INITNEWPROJECT, line 3561 of sourcefilemanager.pas $00000000004BAA34 DONEWPROJECT, line 6129 of main.pp $00000000004A953A SETUPSTARTPROJECT, line 2317 of main.pp $00000000004A612F STARTIDE, line 1593 of main.pp $000000000041E9E7 main, line 133 of lazarus.pp
TCustomFormEditor.JITListException List.CurReadStreamClass=nil nil

Any Idea what I'm doing wrong or is just the svn broken?

regards
Lukas

Reply by email

Ondrej Pokorny
to Lukas Gradl
Lukas Gradl wrote 8 lines
Hi! I tried to update my Lazarus svn to the current revision (52501) on a debian jessie x86_64 machine. I compiled it by make clean;make all using fpc 3.1.1 from today. The comilation finishes successfully, but on starting lazarus I get a window "Read error" "Access violation Access violation".

It's a known issue. It's due to the recent FPC changes (PTypeInfo -> PPTypeInfo). Lazarus designer sources haven't been updated to handle these changes yet.

I recommend you to compile Lazarus with FPC 3.0 fixes branch or with FPC trunk rev 33943 until it gets sorted out. You can stil compile your own applications with the most recent FPC trunk.

Ondrej

Reply by email

Sven Barth
to Ondrej Pokorny
Ondrej Pokorny wrote 17 lines
On 13.06.2016 16:33, Lukas Gradl wrote: > Hi! > > I tried to update my Lazarus svn to the current revision (52501) on a > debian jessie x86_64 machine. > I compiled it by make clean;make all using fpc 3.1.1 from today. > > The comilation finishes successfully, but on starting lazarus I get a > window "Read error" "Access violation Access violation". It's a known issue. It's due to the recent FPC changes (PTypeInfo -> PPTypeInfo). Lazarus designer sources haven't been updated to handle these changes yet. I recommend you to compile Lazarus with FPC 3.0 fixes branch or with FPC trunk rev 33943 until it gets sorted out. You can stil compile your own applications with the most recent FPC trunk.

The fix done in r52482 is not correct however. ClassInfo will continue to return a PTypeInfo for backwards compatibility, so you'll need to dynamically allocate a pointer variable that gets that type info and then gets stuffed into the ParentInfoRef field.

Regards,
Sven

Reply by email

Mattias Gaertner
to Sven Barth
Show quoted text 5 lines
[...] The fix done in r52482 is not correct however. ClassInfo will continue to return a PTypeInfo for backwards compatibility, so you'll need to dynamically allocate a pointer variable that gets that type info and then gets stuffed into the ParentInfoRef field.

Thanks for the hint. Done.

Mattias

Reply by email