Core dump on print #480
Comments
|
Could be solved by installing and running |
|
@noqsi, I can confirm the crash on Debian (mix of stable/oldstable/testing). Could you try this? @graahnul-grom, it looks like there are some racing conditions when using |
|
This prevents the crash on my Xenial VM.
On Oct 17, 2019, at 3:08 AM, Vladimir Zhbanov ***@***.***> wrote:
@noqsi <https://github.com/noqsi>, I can confirm the crash on Debian (mix of stable/oldstable/testing).
If i comment out those two lines in schematic/src/gschem_log_widget.c:348, it works without crash:
while (gtk_events_pending())
gtk_main_iteration();
Could you try this?
@graahnul-grom <https://github.com/graahnul-grom>, it looks like there are some racing conditions when using gtk_main_iteration in such a way and many lines are added to the log (by g_log). Probably it affects only some systems, though we have to fix this. Please look into it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#480?email_source=notifications&email_token=AADC2QO6O4H36GY2SYEBTLDQPAFQTA5CNFSM4JA4YHY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBPBXPI#issuecomment-543038397>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADC2QIMKMR2J3PJKECATALQPAFQTANCNFSM4JA4YHYQ>.
John Doty Noqsi Aerospace, Ltd.
jpd@noqsi.com
|
|
Thanks, John. |
|
Cannot reproduce it, on FreeBSD File->Print works fine. |
|
@graahnul-grom, it could be an issue on Debian and its derivations. It crashed on my PC, too, as I already said, and John has confirmed that my fix worked. I decided it's better to not deprive our users of the printing functionality until we fix it otherwise, so I committed my work-around patch, sorry. |
|
You were right committing this, there's nothing to be sorry about. |
|
‘patch’ doesn’t like the patch versus 1.9.9
Hunk #3 FAILED at 314.
1 out of 4 hunks FAILED
On Oct 18, 2019, at 4:47 PM, dmn ***@***.***> wrote:
Though it breaks scrolling in the log window (reported in #238 <#238>, fixed in #239 <#239>).
@vzh <https://github.com/vzh> @noqsi <https://github.com/noqsi> Could you please try the attached patch? It should fix the
scrolling issue (using a different trick). Will it crash on Debian?
log_scroll.diff.txt <https://github.com/lepton-eda/lepton-eda/files/3745600/log_scroll.diff.txt>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#480?email_source=notifications&email_token=AADC2QNZGBQP2HN7CY476XDQPIOFZA5CNFSM4JA4YHY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBV5IUI#issuecomment-543937617>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADC2QPCTKQENTOJBX2G7MDQPIOFZANCNFSM4JA4YHYQ>.
John Doty Noqsi Aerospace, Ltd.
jpd@noqsi.com
|
|
@noqsi This patch should be applied to the latest git source tree. |
|
@noqsi Here's the patch against 1.9.9 release. |
|
Just rebuilt from patched git, all is well. No crash on print.
On Oct 18, 2019, at 5:54 PM, dmn ***@***.***> wrote:
@noqsi <https://github.com/noqsi> Here's the patch against 1.9.9 release.
log_scroll_199.diff.txt <https://github.com/lepton-eda/lepton-eda/files/3745800/log_scroll_199.diff.txt>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#480?email_source=notifications&email_token=AADC2QOKHPUQ3JUCGSVZFOTQPIWCBA5CNFSM4JA4YHY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBWFA2A#issuecomment-543969384>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADC2QLSBYMFHWGCP2EIB3LQPIWCBANCNFSM4JA4YHYQ>.
John Doty Noqsi Aerospace, Ltd.
jpd@noqsi.com
|
|
@noqsi Thank you, John. And what about scrolling? Does the window scroll to the bottom when something is written to the log? |
|
On Oct 18, 2019, at 6:15 PM, dmn ***@***.***> wrote:
Thank you, John. And what about scrolling? Does the window scroll to the bottom
when something is written to the log?
Yes.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#480?email_source=notifications&email_token=AADC2QPTHFIULIBGDTFGYTTQPIYRBA5CNFSM4JA4YHY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBWG5ZY#issuecomment-543977191>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADC2QPRKFD7NGUJFTOLGNLQPIYRBANCNFSM4JA4YHYQ>.
John Doty Noqsi Aerospace, Ltd.
jpd@noqsi.com
|
|
Отлично, сейчас запилим PR. Ваше здоровье, камрад Джон! |
|
On Oct 18, 2019, at 7:43 PM, dmn ***@***.***> wrote:
Отлично, сейчас запилим PR. Ваше здоровье, камрад Джон!
何ですか?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#480?email_source=notifications&email_token=AADC2QMYGJICOSSQVJFGANTQPJCYNA5CNFSM4JA4YHY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBWO3TI#issuecomment-544009677>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADC2QNCUQMBZATC6PJVHB3QPJCYNANCNFSM4JA4YHYQ>.
John Doty Noqsi Aerospace, Ltd.
jpd@noqsi.com
|
|
@noqsi, he jokes :-) Literally, it's something like "Greate, we'll make a PR just now. (A cup of wine, vodka, or some) to you health, comrade John!" @graahnul-grom, your patch works great, anything is scrolled correctly. Waiting for the promised PR. |
Make the log window scroll to the bottom whenever a message is written to the log. Log window's inability to automatically scroll was reported in lepton-eda#238 and then fixed in lepton-eda#239 (git: fc72ce3). However, as it was discovered recently (lepton-eda#480), current implementation of that fix may lead to crash on some systems (Debian, in particular) when File->Print is invoked. The crash itself was fixed in git ad4ada5, and this commit fixes scrolling again.
Make the log window scroll to the bottom whenever a message is written to the log. Log window's inability to automatically scroll was reported in #238 and then fixed in #239 (git: fc72ce3). However, as it was discovered recently (#480), current implementation of that fix may lead to crash on some systems (Debian, in particular) when File->Print is invoked. The crash itself was fixed in git ad4ada5, and this commit fixes scrolling again.
In 1.9.9, File->Print causes the following:
The text was updated successfully, but these errors were encountered: