libsForQt5.qmltermwidget: Fetch patch to Lomiri's patch series#275475
libsForQt5.qmltermwidget: Fetch patch to Lomiri's patch series#2754751 commit merged intoNixOS:masterfrom
Conversation
ee5ceb4 to
3a96799
Compare
ghost
left a comment
There was a problem hiding this comment.
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
...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 = relaxedsandbox = trueTested the tests/terminal-emulators.nix entry for
lomiri.lomiri-terminal-appafter 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.