Bug 34028 - gnome-calculator crash or freeze
Summary: gnome-calculator crash or freeze
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: GNOME maintainers
QA Contact:
URL: https://gitlab.gnome.org/GNOME/gnome-...
Whiteboard:
Keywords: IN_ERRATA9
Depends on:
Blocks:
 
Reported: 2025-02-20 01:35 CET by katnatek
Modified: 2025-02-25 10:03 CET (History)
3 users (show)

See Also:
Source RPM: gnome-calculator,libsoup3
CVE:
Status comment:


Attachments

Description katnatek 2025-02-20 01:35:51 CET Comment hidden (obsolete)
Comment 1 katnatek 2025-02-20 01:43:19 CET
Description of problem:
 
Today, gnome-calculator start to crash or fail 
 
This is the last part of the message in terminal
 
 
 ../libsoup/soup-connection-manager.c:84):soup_host_free: runtime check
 failed: (host->conns == NULL)
 
 But the full version is similar to the upstream report in the link
 
 To reproduce
 
 1. open gnome-calculator in terminal
 2. try to make some operation resize,minimize,restore the window
 3. the application will crash or freeze

Sorry for the bad initial information

Summary: gnome-boxes crash or freeze => gnome-calculator crash or freeze
Source RPM: gnome-boxes => gnome-calculator

Comment 2 katnatek 2025-02-20 17:02:52 CET
Update to new version could be out of question
Need libadwaita >=1.4 and that need new gtk

Possible alternatives qalculate-gtk or qalculate-qt

CC: (none) => fri
Keywords: (none) => FOR_ERRATA9

Comment 3 Morgan Leijström 2025-02-20 17:59:33 CET
Confirming;

[morgan@svarten ~]$ gnome-calculator

(gnome-calculator:338197): Gtk-WARNING **: 17:12:53.817: Unknown key gtk-modules in /home/morgan/.config/gtk-4.0/settings.ini

** (gnome-calculator:338197): WARNING **: 17:12:54.975: currency-provider.vala:161: Couldn't download IMF currency rate file: HTTP/2 Error: INTERNAL_ERROR

(gnome-calculator:338197): libsoup-WARNING **: 17:12:54.975: (../libsoup/soup-session.c:334):soup_session_dispose: runtime check failed: (soup_connection_manager_get_num_conns (priv->conn_manager) == 0)

(gnome-calculator:338197): libsoup-WARNING **: 17:12:54.975: (../libsoup/soup-connection-manager.c:84):soup_host_free: runtime check failed: (host->conns == NULL)

The UI comes up but do not react on anything - not even the close button. This is under Plasma, X11.

What update made it start to fail?

---

We have several calculators packaged...

I believe galculator, mate-calc, kalk (Plasma) and kcalc (KDE) are more close to gnome-calculator.  There is also the less good looking xcalc.

My favourite calculator is speedcrunch, which use text mode similar to  qalculate-*.

And then we have some console mode and advanded math tools...
Comment 4 katnatek 2025-02-20 18:04:03 CET Comment hidden (obsolete)
Comment 5 katnatek 2025-02-20 18:04:35 CET
(In reply to katnatek from comment #4)
> (In reply to Morgan Leijström from comment #3)
> > Confirming;
> > 
> > [morgan@svarten ~]$ gnome-calculator
> > 
> > (gnome-calculator:338197): Gtk-WARNING **: 17:12:53.817: Unknown key
> > gtk-modules in /home/morgan/.config/gtk-4.0/settings.ini
> > 
> > ** (gnome-calculator:338197): WARNING **: 17:12:54.975:
> > currency-provider.vala:161: Couldn't download IMF currency rate file: HTTP/2
> > Error: INTERNAL_ERROR
> > 
> > (gnome-calculator:338197): libsoup-WARNING **: 17:12:54.975:
> > (../libsoup/soup-session.c:334):soup_session_dispose: runtime check failed:
> > (soup_connection_manager_get_num_conns (priv->conn_manager) == 0)
> > 
> > (gnome-calculator:338197): libsoup-WARNING **: 17:12:54.975:
> > (../libsoup/soup-connection-manager.c:84):soup_host_free: runtime check
> > failed: (host->conns == NULL)
> > 
> > The UI comes up but do not react on anything - not even the close button.
> > This is under Plasma, X11.
> > 
> > What update made it start to fail?
> > 
> My best guess is bug#33765 , but I don't remember if use the application in
> the time after the update and the bug catch
Comment 6 katnatek 2025-02-21 17:55:08 CET
Added in https://wiki.mageia.org/en/Mageia_9_Errata#Various_software

Keywords: FOR_ERRATA9 => IN_ERRATA9

Comment 7 Aurelian R 2025-02-21 20:57:57 CET
I think this is a duplicate of bug33540 and this patch,
https://gitlab.gnome.org/GNOME/libsoup/-/commit/31d415ca44349fe8c4d2e0b2fb56f84501ec9524.patch ,
is the patch that should fix it.

CC: (none) => arusanu

katnatek 2025-02-21 22:01:05 CET

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=33540

Comment 8 katnatek 2025-02-21 22:12:21 CET
(In reply to Aurelian R from comment #7)
> I think this is a duplicate of bug33540 and this patch,
> https://gitlab.gnome.org/GNOME/libsoup/-/commit/
> 31d415ca44349fe8c4d2e0b2fb56f84501ec9524.patch ,
> is the patch that should fix

Thank you making a test build to check
Comment 9 katnatek 2025-02-21 22:23:32 CET
(In reply to Aurelian R from comment #7)
> I think this is a duplicate of bug33540 and this patch,
> https://gitlab.gnome.org/GNOME/libsoup/-/commit/
> 31d415ca44349fe8c4d2e0b2fb56f84501ec9524.patch ,
> is the patch that should fix it.

Nyet, when I try to make a conversion between USD to MXN the conversion selector 
goes to /dev/null and not comeback

This is the last I get after

(gnome-calculator:19192): libsoup-WARNING **: 15:19:38.772: Disposing connection 0x2a5879f0 while still connected
katnatek 2025-02-21 22:58:54 CET

Source RPM: gnome-calculator => gnome-calculator,libsoup3

Comment 10 Aurelian R 2025-02-22 09:33:47 CET
(In reply to katnatek from comment #9)
> Nyet, when I try to make a conversion between USD to MXN the conversion
> selector 
> goes to /dev/null and not comeback

I've been unclear; the patch prevents gnome-calculator from crashing, but it doesn't address other issues, :(.
Comment 11 Lewis Smith 2025-02-22 21:34:22 CET
Thank you Aurelian both for the patch, and comment 10 about it.
The patch ref in comment 7 is equivalent to:
 https://bugs.mageia.org/show_bug.cgi?id=33540#c3

Can we not apply that and fix both bugs?
More obscure faults like "a conversion between USD to MXN" are better reported upstream.

Assignee: bugsquad => gnome

Comment 12 katnatek 2025-02-23 01:45:19 CET
(In reply to Lewis Smith from comment #11)
> Thank you Aurelian both for the patch, and comment 10 about it.
> The patch ref in comment 7 is equivalent to:
>  https://bugs.mageia.org/show_bug.cgi?id=33540#c3
> 
> Can we not apply that and fix both bugs?
> More obscure faults like "a conversion between USD to MXN" are better
> reported upstream.

Not my decision but I disagree that just mask the issue the conversion selector was working

The gnome-calculator issues with libsoup are fixed in version >= 46 https://gitlab.gnome.org/GNOME/gnome-calculator/-/tags/46.alpha (But not see if is for newer versions of libsoup)

And report upstream will produce "use a newer version"
Comment 13 David GEIGER 2025-02-23 09:51:24 CET
I think we should go with latest libsoup 3.4.x series with 3.4.5!

CC: (none) => geiger.david68210

Comment 14 katnatek 2025-02-24 21:10:32 CET
Morgan the tip on the errata have the same side effect that patch libsoup
The difference is terminal not produce message when the conversion selector
go to /dev/null
Comment 15 Morgan Leijström 2025-02-25 10:03:52 CET
I enhanced the explanation there a bit now.

Maybe I do not understand - is it more than currency conversion that do not work?

I find it usable as calculator.


There do seem to be some issue: for any change in settings dialogue the output in terminal is

** (gnome-calculator:467887): CRITICAL **: 09:25:33.985: history_view_set_serializer: assertion 'self != NULL' failed

- But the setting works.

---

The CLI version, gcalccmd, also fail updating rates - but do not crash.  Downloading rates or not is controlled by the same setting as for gnome-calculator.

[morgan@svarten ~]$ LC_ALL=C gcalccmd

** (process:476107): WARNING **: 09:48:44.830: currency-provider.vala:135: Couldn't download IMF currency rate file: HTTP/2 Error: INTERNAL_ERROR

** (process:476107): WARNING **: 09:48:44.836: currency-provider.vala:244: Failed to read exchange rates: Failed to open file ?/home/morgan/.cache/gnome-calculator/rms_five.xls?: No such file or directory

** (process:476107): WARNING **: 09:48:44.837: currency-provider.vala:386: Cannot use ECB rates as don't have EUR rate
> 5+6
11
> exit
[morgan@svarten ~]$

Note You need to log in before you can comment on or make changes to this bug.