[GNC] [SOLVED] Report charts are empty on fresh 4.8 install

Jason Spencer j8spencer at gmail.com
Fri Jan 20 01:35:58 EST 2023


Following this thread
<https://www.mail-archive.com/gnucash-devel@gnucash.org/msg43042.html>, I
noticed I still had old schemas in /usr/local/share/glib-2.0/schemas from
maybe two versions ago (and maybe a flatpak version at that.) There was
nothing in that folder except gnucash schemas from 2 years ago, so I
removed the whole thing. Now 4.8 runs fine, charts show up, and I see that
you *didn't* in fact re-style the register background :)

Thanks, John--then and now.

BTW, if this seems dangerous and I should re-compile these older schemas
for some reason, please let me know the steps to follow. I don't really
understand the details here.

On Thu, Jan 19, 2023 at 9:45 PM Jason Spencer <j8spencer at gmail.com> wrote:

> Based on some reading, I checked the trace file again, and I also see a
> few messages like this:
>
> ERROR <gnc.app-utils.gsettings> [gnc_gsettings_get_user_value()] Invalid
> key review-transactions for schema org.gnucash.dialogs.sxs.since-last-run
>
> The interesting part being that the schema used is not
> org.gnucash.GnuCash.dialogs.... I take it this may have been a problem in
> some versions, though it's not clear.
>
> On Thu, Jan 19, 2023 at 9:29 PM Jason Spencer <j8spencer at gmail.com> wrote:
>
>> Thanks very much for the help! The trace file is about 3700 lines long.
>> Probably half of them are this message:
>>
>>  ERROR <GLib-GIO> g_settings_new_full: assertion 'schema != NULL' failed
>>
>> There's also a variety of these:
>>
>> WARN <gnc.app-utils.gsettings> [gnc_gsettings_get_settings_ptr()]
>> Ignoring attempt to access unknown gsettings schema org.gnucash.GnuCash.
>> *general*
>>
>> where what's in bold ranges over general.register, general.report,
>> dialogs.account, dialogs.preferences, dialogs.fincalc, find,
>> window.pages.account-tree.summary, ...
>>
>> Some other interesting ones:
>> ERROR <gnc.app-utils> GVariant* gnc_gsettings_get_user_value(const
>> gchar*, const gchar*): assertion 'G_IS_SETTINGS (settings_ptr)' failed
>> ERROR <gnc.app-utils> gboolean gnc_gsettings_get_bool(const gchar*, const
>> gchar*): assertion 'G_IS_SETTINGS (settings_ptr)' failed
>> ERROR <gnc.app-utils> void gnc_gsettings_remove_cb_by_func(const gchar*,
>> const gchar*, gpointer, gpointer): assertion 'G_IS_SETTINGS (settings_ptr)'
>> failed
>>
>> Those are the major themes. They seem to repeat in block, but may by
>> cycling over different modules. Other than that, everything seems fine :)
>>
>> If I export the report to html, yes, it opens fine in a browser (firefox
>> 108). I'll hold off on Gnome web for now, since the GLIB assertions seem
>> like strong lead. I reinstalled libgtk-3-common (version 3.24.33-1ubuntu2)
>> and removed my .~/config/dconf/user file, but got the same results in
>> gnucash.
>>
>> Does any of this suggest a new debug route?
>>
>> On Wed, Jan 18, 2023 at 5:40 PM john <jralls at ceridwen.us> wrote:
>>
>>> No, if that doesn't work then something else is interfering with the
>>> javascript execution. Look in the tracefile (see
>>> https://wiki.gnucash.org/wiki/Tracefile) for errors from WebKit.
>>>
>>> Does the chart display if you export the report to a file and then open
>>> the file with your browser? Can you install Gnome Web (also based on
>>> WebKitGtk) and test if the exported report displays correctly with that?
>>>
>>> Regards,
>>> John Ralls
>>>
>>>
>>> On Jan 18, 2023, at 12:32 PM, Jason Spencer <j8spencer at gmail.com> wrote:
>>>
>>> That doesn't seem to help, at least the way I'm doing it. I tried both
>>> of these commands in zsh and got the same result:
>>> ➜ WEBKIT_DISABLE_COMPOSITING_MODE=1 gnucash
>>>         ~
>>>                              ~
>>> ➜ export WEBKIT_DISABLE_COMPOSITING_MODE=1
>>>        ~
>>> ➜ gnucash
>>>
>>> Is there a way from within gnucash I can check that? Or is there some
>>> package configuration I can check to see what libraries are doing the
>>> compositing/rendering?
>>>
>>> On Mon, Jan 16, 2023 at 4:25 PM John Ralls <jralls at ceridwen.us> wrote:
>>>
>>>>
>>>>
>>>> > On Jan 16, 2023, at 2:41 PM, Jason Spencer <j8spencer at gmail.com>
>>>> wrote:
>>>> >
>>>> > I have just upgraded to Linux Mint 21.1, and installed GnuCash 4.8
>>>> > (1:4.8-1build2) from the distro sources. I opened up a file I had in
>>>> my
>>>> > prior install (2.6), and the file opened fine--all accounts and
>>>> > transactions seem to be there. But when I run a report with a chart
>>>> (say,
>>>> > networth linechart or bar graph), the report is a blank screen. If I
>>>> > inspect the chart source, the body is a table with 4 empty cells.
>>>> >
>>>> > If I run a text-based report (e.g. Balance Sheet), I see the report
>>>> text
>>>> > and links fine, though it is scaled down to 6 or 8 pt font (though the
>>>> > style section says 10 and 15 pt fonts.)
>>>> >
>>>> > Is there some diagnostic I can run to troubleshoot the source of the
>>>> > problem?
>>>>
>>>> This is probably a distro problem with Webkit. Try setting
>>>> WEBKIT_DISABLE_COMPOSITING_MODE=1 in the environment before running GnuCash.
>>>>
>>>> Regards,
>>>> John Ralls
>>>>
>>>>
>>>


More information about the gnucash-user mailing list