-
Notifications
You must be signed in to change notification settings - Fork 71
macOS fixes #914
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
base: dev
Are you sure you want to change the base?
macOS fixes #914
Conversation
Solve the crash Log on MacOS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is more change than expected. Imho many of the fixed issues are simply issues because QMapShack crashed when closing. QMapShack will store it's last state properly when closed without crash. And it shouldn't store it's state when crashing, as the state could be the reason for the crash resulting in an unrecoverable situation.
Can you please describe what part fixed the crash. Isolate it from the rest and test if all the other "fixes" are really necessary?
Some code changes seem to be introduced by different formatting/ indentation. This is defined by the file .clang-format. Please make sure all formatting is done by clang-format.
There are many meaningless comments and debug output in German. No one except Germans will understand that stuff. Please strictly use English and avoid meaningless one line comments that state the obvious. Instead document why these changes are necessary. Especially as so far non of them seemed to be necessary.
|
I wrote you an e-Mail on Thursday, you know that AI for me because I can't coding. That's why comments Output is in Germany, That's why I need your help more than other people. |
|
I did a test with qt6.11.0 Beta 1 (works now with macOS26), the original code has the same issue like #817 when closing the app: EXC_BAD_ACCESS (A bad access to memory terminated the process) - just to know and wiith the code what ai did, it works fine but perhaps there is another solution to fix the problem. |
|
Maybe this call stack helps? QMS created today with MacOSX/build-all.sh script from recent dev branch. Last debug output before crash: |
|
This traceback is without debug info. No chance to get a hint out of that. I spent quite some time on this code and gave up. This is too much change without proper root cause analysis. I am sure the AI gave explanations but the transcript of the whole process is missing. From what I read in the code: Shutting down QMapShack crashes because in the dtor of CMainWidget objects are destroyed and that might trigger signals or other stuff on objects already destroyed. Without knowing the real culprit this is hard to fix the easy way. Probably that was the same conclusion of the AI. As a result it moved some code into the closeEvent() handler. And tried to block many signals in the dtor (in a very stupid, and code excessive way). And it did a lot of other stuff I do not know why. In fact some of it is against the concepts of QMapShack. The only chance I see: Someone is compiling a proper debug version for MacOS and starts to analyze the tracebacks. When we understand the root cause we can decide on a small and easy fix. Or on the large solution similar to what the AI did, but less brutal code. Right now this is too much of a change with too much questions on the code. I am sorry but that can not be merged. |
|
@kiozen |
What is the linked issue for this pull request:
QMS-#817
What you have done:
Solve macOS problems.