Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

we can not compile the CEF3 package in Windows 10 FPC version 3.3.1 (SVN 59585M) - FPC stack overflow #73

Open
Steve--W opened this issue Dec 9, 2018 · 3 comments

Comments

@Steve--W
Copy link

Steve--W commented Dec 9, 2018


I reported this to FPC bug team and they said..............................

The compiler produces an error: cef3ref.pas(1577,1) Error: Local variables size exceeds supported limit."That is stack size.

It works ok reducing array size -2 in cef3types.pasTCefRectArray = array[0..(High(Integer) div SizeOf(TCefRect)) - 2] of TCefRect;

Somebody should add a PCefRectArray = ^TCefRectArray type definition and use that instead of abusing the stack.EDIT : So no FPC issue, fix it in the upstream.


The details to reproduce the problem are...........................................

Use fpcupdeluxe (i386-win32) to install Lazarus version 2.1.0, with FPC version 3.3.1 (SVN 59585M)

Download FPCEF3 (version 3.3029.1) and try to install in Lazarus by selecting cef3.lpk in the "Package/Open Package File" menu then select compile......

The compile fails with error: cef3ref.pas(1577,1) Error: Local variables size exceeds supported limit.

The code snippet this error points to is .......
procedure TCefBrowserHostRef.ImeSetComposition(const Atext:ustring; underlinesCount: TSize; underlines: TCefCompositionUnderlineArray; const
replacementRange, selectionRange: TCefRange);
Var
t: TCefString;
(line 1577:) begin
t := CefString(Atext);
PCefBrowserHost(fData)^.ime_set_composition(fData, @t,underlinesCount,@underlines,@replacementRange, @selectionRange);
end;

@alkinnon
Copy link

alkinnon commented Feb 13, 2021

This is still an issue.

Following this guide: https://lazplanet.blogspot.com/2015/09/create-web-browser-in-3-minutes-using.html
used tortoisesvn to download.

tried reducing array size -2 in cef3types.pas
TCefRectArray = array[0..(High(Integer) div SizeOf(TCefRect)) - 2] of TCefRect;
Then tried compile again, didnt fix for me.

"Somebody should add a PCefRectArray = ^TCefRectArray type definition and use that instead of abusing the stack.
EDIT : So no FPC issue, fix it in the upstream." - I wish I understood this :(

Maybe I'll stick with gecko.

Any other workaround suggestions?

@Steve--W
Copy link
Author

Steve--W commented Feb 14, 2021 via email

@alkinnon
Copy link

Gave up and had no issues installing CEF4Delphi. I'll get busy reading up how to implement, many thanks Steve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants