-
Notifications
You must be signed in to change notification settings - Fork 54
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
MacOS M1 crashes in TApplication.CreateForm #568
Comments
Hi! Well, I do not know the very latest Lazarus. I have not checked how many fix versions are released since 3.2. Just wondering could your problem be related to Lazarus version in use, not the Cqrlog itself. |
So it's not latest …
Not sure whether this might be related. I have chosen Qt5 as the toolkit, since for other reasons, the ports tree is compiled without X11 support, so I cannot use Gtk (it complains about a missing library then). The memory access violation encountered looks to me like a null pointer for some kind of struct/object, plus an offset into that one ($3F8 if I remember correctly). I understand too little of the Pascal ecosystem used here, and who calls what. What is TApplication.CreateForm be used for? It successfully completes at the first call, but crashes at the next one. I did successfully compile CQRlog on that device before, presumably with an older version of Lazarus and Freepascal. It's a bit sad it no longer works, because the Apple Silicon CPU is really a huge step forward compared to Intel, in particular for portable operation. |
I reverted Lazarus to 2.2.4 for a test, the exact same error message (at the same location) happens. Tried compiling one of the example projects (Easter holiday, a small GUI) from Lazarus, they work – so it's not a general issue that the compiler cannot compile anything at all. |
Ok! My Pascal starts from 1982 and I do not have either very good knowledge of these graphical UIs like Delphi and Lazarus. |
I once started a branch to port CQRlog to MacOS, in particular to the Apple Silicon version.
https://github.com/dl8dtl/cqrlog/tree/macos_port
That used to work, well, to some degree at least. Recently, I cannot get it to run at all. It crashes now with an invalid access exception in TApplication.CreateForm, at the second call to this procedure. The call stack is
at Instance.Create(Self) (line 2176).
I have basic Pascal knowledge, but I am completely at a loss with the complexity of this.
Anyone having any clues what this might mean?
The text was updated successfully, but these errors were encountered: