After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 704056 - Online Banking (Online Actions) does not appear in Action menu
Online Banking (Online Actions) does not appear in Action menu
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: General
2.5.x
Other Windows
: Normal blocker
: ---
Assigned To: gnucash-general-maint
gnucash-general-maint
Depends on:
Blocks:
 
 
Reported: 2013-07-11 20:49 UTC by Rob
Modified: 2018-06-29 23:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Online functions missing from Actions menu (50.25 KB, image/png)
2013-08-21 18:41 UTC, Rob
Details
Online functions missing from Tools menu (49.17 KB, image/png)
2013-08-21 18:41 UTC, Rob
Details

Description Rob 2013-07-11 20:49:54 UTC
Steps to reproduce:
+ Install 2.4.13, use to manage finances and download transactions from bank
+ Remove 2.4.13 in prep to upgrade
+ Install 2.5.4, open previously used file

Expected result:
Online Actions should appear in the Actions menu

Actual result:
Online functions are nowhere to be found in the menus, though Online Banking does appear in Preferences.

Tested in 2.5.4 on Windows Vista 64.

Works as expected in 2.4.13 on the same machine.
Comment 1 Christian Stimming 2013-07-14 18:45:25 UTC
In 2.5.x, there are three window views where the online functions should appear in the menus:
- When opening a new-style account register window for an account that has online banking enabled
- When opening an old-style account register window for an account that has online banking enabled (beware: You must not open old and new style windows simultaneously, as this will crash almost immediately)
- When selecting such an account in the account tree overview window

Which if those three places does not have the functions? In bug#700582, we already noted that the new-style register window didn't have it, but in r23052 (last month) I fixed this and 2.5.4 should contain this bugfix.
Comment 2 Rolf 2013-08-07 17:28:50 UTC
In none of the three cases outlined above does the online functionality appear in the menus. My setup matches that of Rob.
Comment 3 John Ralls 2013-08-08 02:36:24 UTC
Rob said 2.5.4, but he meant 2.5.3 because I just released 2.5.4 last Sunday. I checked 2.5.4 before I shipped it and the Online Banking Setup and Online Actions worked correctly. 

Rolf, are you using 2.5.4 or 2.5.3? If the latter, please try 2.5.4.
Comment 4 Rolf 2013-08-08 05:55:59 UTC
Yup - I had the problem with both .3 and .4 (I installed .4 yesterday and continued to experience the same issue)
Comment 5 Christian Stimming 2013-08-10 20:51:59 UTC
Well, the problem is that I can't reproduce the problem. I.e. the menu entries show up since r23052 and I don't see any problem with my HBCI/aqbanking setup. I use this on Linux only, not on Windows; however the code that enables the menu entry is the (now) the same in register2 as in register1 and to my knowledge there isn't anything windows-specific in there.

Can someone else confirm that there is a problem with the online banking entries, perhaps on windows only? Can someone else confirm that the online banking entries show up on windows in register2?
Comment 6 John Ralls 2013-08-10 22:15:52 UTC
Nope, he's right. I just checked 2.5.4 in Win7 and the online stuff doesn't show up. This doesn't have anything to do with which register: The Tools>Setup Online Banking entry is missing. 

My recollection is that that happens when GC can't find AQB, but it's there. Running Gnucash with --log gnc.import.aqbanking=debug produces no useful output.
Comment 7 Rob 2013-08-21 18:41:02 UTC
Created attachment 252642 [details]
Online functions missing from Actions menu
Comment 8 Rob 2013-08-21 18:41:52 UTC
Created attachment 252643 [details]
Online functions missing from Tools menu
Comment 9 Rob 2013-08-21 18:42:54 UTC
Oops, my original post was for version 2.5.3. I'm also experiencing this in 2.5.4. How do we troubleshoot this?
Comment 10 Christian Stimming 2013-09-01 21:14:42 UTC
If the "Tools->Setup Online Banking" entry is missing, the libgncmod-aqbanking DLL could not be loaded on windows and we need to find out why. Can you locate the file libgncmod-aqbanking.dll in your gnucash installation (probably in the bin/ folder), then run the dependencywalker tool on this DLL (download from dependencywalker.com) and give us a screenshot of the list of missing DLLs (lower part of the window)? All the libgncmod-... files are no problem, but maybe there are others missing. Also, can you use the dependencywalker to check for potential load errors with the DLLs aqbanking/bin/libaqbanking-34.dll and gwenhywfar/bin/libgwenhywfar-60.dll and gwenhywfar/bin/libgwengui-gtk2-0.dll (inside the gnucash folder)? Thanks.
Comment 11 Rolf 2013-09-02 06:23:53 UTC
I've emailed you the output files directly
Comment 12 John Ralls 2013-09-07 23:29:40 UTC
I've debugged into this a bit and the problem is that the symbols libgncmod_aqbanking_gnc_module_foo aren't getting exported into libgncmod-aqbanking.dll.a, though they are getting into libgncmod-aqbanking.dll.

Lack of those symbols cause gnc_module_system_refresh() to not add it to the module list.

Christian, I'll keep trying to work this out on my own, but if you know the reason for this, by all means jump in and tell me!
Comment 13 Christian Stimming 2013-09-08 19:07:45 UTC
@John: Wow, that's a very good information! In a mingw build, by default all symbols will get exported. However, if at least one symbol has the declspec(dllexport) attribute (in the header), I think the mingw compiler switches off its default behaviour and instead exports only those marked symbols.

To fix this, either the symbols with the dllexport have to be identified and this attribute to be removed again, or all missing symbols need to get the dllexport attribute again.

However, on the libgncmod-aqbanking side there haven't been any changes recently. I wonder how this gets introduced from any dependency headers (which might have been changed recently), such as libgwenhywfar or libaqbanking?
Comment 14 John Ralls 2013-09-08 21:14:34 UTC
As it happens I was just looking at the applicable bit of the libtool manual. I added --export-symbols-regex libgncmod-aqbanking.* to libgncmod_aqbanking_la_LDFLAGS, which gets the menu items back, but launching the aqbanking setup wizard seems to hang, so there must be more going on.
Comment 15 John Ralls 2013-09-09 03:04:49 UTC
It seems the regex needs to be just .*, which I've committed as r23160. Ugly as heck, but it eventually worked for me locally. If tomorrow's nightly works, I'll release 2.5.5.

Christian, if you can find a more elegant solution, by all means commit it, but failing that I'll close this bug in a day or two.
Comment 16 Christian Stimming 2013-09-09 19:52:57 UTC
Thanks for finding this solution. I also don't know any other workaround that is less ugly. No idea why this module suddenly doesn't export its symbols anymore. There are no commits on the gnucash side that could have caused this, and I also didn't observe any commits with problems on the gwenhywfar or aqbanking side. Maybe yet somewhere else. Anyway, thanks for fixing.
Comment 17 John Ralls 2018-06-29 23:17:21 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=704056. Please update any external references or bookmarks.