A couple of other notes: In order to run gnucash.exe from 
c:\gcdev64\gnucash\stable\inst\bin you have to have 
c:\gcdev64\msys2\mingw32\bin in %PATH%. In order to start from Windows Explorer 
by double clicking you’d have to add it to your global %PATH% in 
Settings>System>Advanced>Environment (or something like that, I’m not on a 
Win32 box ATM so I can’t check). That’s probably not a good idea.

The MSYS2 terminal doesn’t process gdb’s stdout correctly, so I find it works 
better to run gdb in a Powershell window. You still need to add mingw32\bin to 
the path, but doing so in the powershell window affects only that instance not 
your whole system so it’s much safer.

I generally avoid the problem by bundling and installing GnuCash: Once 
installed it can run happily in Powershell without needing any PATH 
modifications. Bundling might also point up some more places where you’re 
getting a mingw64 library instead of a mingw32 one.

You also might want to rebuild GnuCash with -DCMAKE_BUILD_TYPE=Debug set so 
that you get source lines included in your backtraces.

Regards,
John Ralls


> On Aug 16, 2024, at 08:58, John Ralls <jra...@ceridwen.us> wrote:
> 
> Failing to load an icon is unlikely to cause GnuCash to quit or crash and 
> IIRC there’s one that was removed from awaita but still referenced by Gtk, 
> hence that error message. Try starting under gdb and setting a breakpoint on 
> exit() to get a backtrace of where it’s really quitting or crashing.
> 
> Regards,
> John Ralls
> 
> 
>> On Aug 15, 2024, at 22:06, Hai Liang Wang <hailiang.hl.w...@gmail.com> wrote:
>> 
>> What I tried just now, but not work.
>> As mentioned in https://bbs.archlinux.org/viewtopic.php?id=261143
>> 
>> *update-mime-database /mingw32/share/mime*
>> 
>> *chmod -R 755 /mingw32/share/mime*
>> *gdk-pixbuf-query-loaders --update-cache*
>> 
>> And start gnucash.exe again, I get the same error as above.
>> 
>> Cheers.
>> Hai Liang W.
>> 
>> 
>> On Fri, Aug 16, 2024 at 12:53 PM Hai Liang Wang <hailiang.hl.w...@gmail.com>
>> wrote:
>> 
>>> hi, folks
>>> 
>>> After getting a build on my dev machine, I get *gnucash.exe* under
>>> *C:\gcdev64\gnucash\stable\inst\bin*.
>>> *But I cannot start by double click, nothing happens with double click.*
>>> So, I start it with mingw32 terminal, as below.
>>> 
>>> *Administrator@ZIHUATANEJO MINGW32 /c/gcdev64/gnucash/stable/inst/bin*
>>> *# ./gnucash.exe*
>>> *This is a development version. It may or may not work.*
>>> *Report bugs and other problems to gnucash-de...@gnucash.org
>>> <gnucash-de...@gnucash.org>*
>>> *You can also lookup and file bug reports at https://bugs.gnucash.org
>>> <https://bugs.gnucash.org>*
>>> *To find the last stable version, please refer to https://www.gnucash.org/
>>> <https://www.gnucash.org/>*
>>> *3:2024/08/16
>>> 12-45-24:gwen(25272):C:/gcdev64/gnucash/stable/src/gwenhywfar-5.11.2beta/src/base/i18n.c:
>>> 122: No translation found for WIN32 locale [English_United States.1252]*
>>> 
>>> *(gnucash.exe:25272): Gtk-WARNING **: 12:45:24.655: Could not load a
>>> pixbuf from icon theme.*
>>> *This may indicate that pixbuf loaders or the mime database could not be
>>> found.*
>>> ****
>>> *Gtk:ERROR:../gtk+-3.24.43/gtk/gtkiconhelper.c:495:ensure_surface_for_gicon:
>>> assertion failed (error == NULL): Failed to load
>>> C:\gcdev64\msys2\mingw32\share\icons\AdwaitaLegacy\32x32/status\image-missing.png:
>>> Unrecognized image file format (gdk-pixbuf-error-quark, 3)*
>>> *Bail out!
>>> Gtk:ERROR:../gtk+-3.24.43/gtk/gtkiconhelper.c:495:ensure_surface_for_gicon:
>>> assertion failed (error == NULL): Failed to load
>>> C:\gcdev64\msys2\mingw32\share\icons\AdwaitaLegacy\32x32/status\image-missing.png:
>>> Unrecognized image file format (gdk-pixbuf-error-quark, 3)*
>>> 
>>> As you can see, something with gtk breaks the start.
>>> I checked
>>> *C:\gcdev64\msys2\mingw32\share\icons\AdwaitaLegacy\32x32/status\image-missing.png*,
>>> which exist. I can open this png file on Windows Explorer.
>>> 
>>> Need some help, thanks.
>>> 
>>> Cheers.
>>> Hai Liang W.
>>> 
>> _______________________________________________
>> gnucash-user mailing list
>> gnucash-user@gnucash.org
>> To update your subscription preferences or to unsubscribe:
>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> -----
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
> 
> _______________________________________________
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to