-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
libsForQt5.qmltermwidget: Fetch patch to Lomiri's patch series #275475
libsForQt5.qmltermwidget: Fetch patch to Lomiri's patch series #275475
Conversation
ee5ceb4
to
3a96799
Compare
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.
so looking at the patch, other than i am not familiar with the codebase, is that it sets the owner on every call -- seems ideally that would happen just once when the instance is created.
i suppose that this is a read / write object and if there is concurrent access that is gated elsewhere, but if it is supposed to be just read-only (and not returned as const)
QQmlEngine::setObjectOwnership(instance, QQmlEngine::CppOwnership);
as long as that is just writing the same data to the same location without side effects, that seems fine to me.
AFAIU, it does only set it once. I'm not sure how concurrent R/W access is gated, or if that's even necessary, and my patch doesn't really affect that AFAICT. It's just about marking object lifetime & responsibilities, which are currently wrong & cause a SIGABRT with |
that works for me -- preventing SIGABRT is a definite improvement. |
...to fix a crash in lomiri-terminal-app.
3a96799
to
84127ed
Compare
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.
LGTM
...to fix a crash in lomiri-terminal-app.
Description of changes
Working towards #99090.
A debugging of this issue can be found here: https://gitlab.com/ubports/development/apps/lomiri-terminal-app/-/issues/104#note_1662252236
I have submitted this to gber/qmltermwidget#1, where it (or a variant of it) should hopefully find its way into the UBports/Lomiri patch series.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
Tested the tests/terminal-emulators.nix entry for
lomiri.lomiri-terminal-app
after removing the workaround for this issue there, doesn't crash on shutdown nownix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usageCurrent hardware doesn't have enough RAM for
nixpkgs-review
. I testedcool-retro-term
(unaffected by this, but doesn't hurt I guess) andlomiri.lomiri-terminal-app
./result/bin/
)Add a 👍 reaction to pull requests you find important.