Bug 360379

Summary: kmymoney don't start -->kmymoney: symbol lookup error: kmymoney: undefined symbol: _ZTI9onlineJob
Product: [Applications] kmymoney Reporter: soulrebell <marco_h123>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: CLOSED DOWNSTREAM    
Severity: normal CC: agander93, christian-david, ostroffjh
Priority: NOR    
Version: 4.7.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description soulrebell 2016-03-10 20:35:32 UTC
If i want to start kmymoney i become the following message
-->kmymoney: symbol lookup error: kmymoney: undefined symbol: _ZTI9onlineJob

I used kmymoney without any problems for three weeks since i updated to 4.7.2.
I didn't change something deliberately at my system (ubuntu 14.04 LTS).
The only thing i do was a update and upgrade of my system.



Reproducible: Always
Comment 1 allan 2016-03-10 21:21:51 UTC
First of all, do you have backup files?

Secondly, if you get the problem immediately on starting-up,  then it sounds like your .kmy file is at fault.  If you launch KMM from the console by entering "kmymoney -n", minus the punctuation, it will start up without loading that .kmy file.  This gives you a chance to do some investigating.  If you do have a backup, you can now try loading that, and look for the symbol in question.

If you don't have backup, then you are a bit stuck.  Are you reasonably confident in editing files?  If so, firstly make a copy of the problem .kmy file, just in case things go nasty.

Then, try to open the .kmy file with either kate or kwrite.  With luck, you should see an XML formatted file.  If you don't, then You may need to go into the KDE System settings program, and open File Associations.  Enter kmymoney into the search box and it should find x-kmymoney.  Select that, then look at the lower window on the right - Application Preference Order.  Click 'Add' and enter either/both kate/kwrite.  You should then be able to view your file.

Then if that gives you an xml-looking text file, search for the missing entry.  Copy every such entry and add to the bug report.  If there is sensitive data, you'll have to just disguise it.

See how that goes.

Allan
Comment 2 allan 2016-03-10 21:27:31 UTC
Does _ZTI9onlineJob sound like a valid symbol to you - it doesn't to me.  Wondering if your file might have got corrupted.

Allan
Comment 3 Jack 2016-03-10 21:37:43 UTC
It sounds to me like a linking symbol, not a stock symbol.  Is it possible the Ubuntu package has a compil/link problem?

Also - .kmy files are generally gzipped, so you would need to make a copy of it, renaming to something like X.xml.gz.  Then gunzip that file.  Then you can look at X.xml with any text editor.

I do agree with Allan suggestion to try "kmymoney -n" from a command line.  If that fails, then the error has nothing to do with your file.  If it succeeds, and you still get the error when opening your .kmy file, then something is funny in the file.
Comment 4 allan 2016-03-10 23:15:37 UTC
(In reply to Jack from comment #3)
> It sounds to me like a linking symbol, not a stock symbol.  Is it possible
> the Ubuntu package has a compil/link problem?

Yes, That's more likely, definitely.

> Also - .kmy files are generally gzipped, so you would need to make a copy of
> it, renaming to something like X.xml.gz.  Then gunzip that file.  Then you
> can look at X.xml with any text editor.
> 

I had found an old reply of mine with that method, that , I posted, had worked.  I did the same this time before posting, and it does open as a XML file without unzipping, provided the file associations are changed.

> I do agree with Allan suggestion to try "kmymoney -n" from a command line. 

> If that fails, then the error has nothing to do with your file.  If it
> succeeds, and you still get the error when opening your .kmy file, then
> something is funny in the file.
Comment 5 soulrebell 2016-03-11 05:46:43 UTC
I tried 
kmymoney -n
and i became the same message.
Comment 6 allan 2016-03-11 11:29:08 UTC
(In reply to soulrebell from comment #5)
> I tried 
> kmymoney -n
> and i became the same message.

OK so you received the same message, even when no data file was loaded.

Just to be certain, when did you receive the message?  Was it while KMM was loading?  Or, did KMM finish loading and allow you to choose your data file?

If it occurred while KMM was loading, then your data file is likely to be OK, but it then means that it is KMM itself which is the problem.

Either way, though, it wouldn't do any harm to uninstall KMM, then re-install.  Do make sure you uninstall everything - that is, as you installed an Ubuntu package, use the Software centre or Synaptic to uninstall it.  Then re-install it and try again.

It may be that the update you did has corrupted something.

Allan
Comment 7 Jack 2016-03-11 16:42:58 UTC
Hopefully I will get a chance to try this in a Kubuntu Virtual Box guest soon, but I wonder if the ubuntu package missed a dependency on either KBanking or one of the other  online-banking pieces.  If the packager had it installed, but the end user does not, it might produce this  error.

Soulrebell: would you please provide the exact Ubuntu package version of KMM you have.  That will help just in case we need to file a bug  report with Ubuntu.
Comment 8 soulrebell 2016-03-11 20:09:35 UTC
(In reply to allan from comment #6)
> Just to be certain, when did you receive the message?  Was it while KMM was
> loading?  Or, did KMM finish loading and allow you to choose your data file?

It was while KMM was loading.

I reinstalled KMM and this solved my problem.
Thank you.


(In reply to Jack from comment #7)
> Soulrebell: would you please provide the exact Ubuntu package version of KMM
> you have.  That will help just in case we need to file a bug  report with
> Ubuntu.


Package: kmymoney
Priority: optional
Section: kde
Installed-Size: 9805
Maintainer: Kubuntu Developers <kubuntu-devel@lists.ubuntu.com>
Architecture: amd64
Version: 4.7.2-0ubuntu1~ubuntu14.04~ppa2
Recommends: gnupg-agent, pinentry-qt4
Depends: libakonadi-kde4, libalkimia4, libaqbanking34 (>= 4.99.2), libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libgmp10, libgpgme++2, libgwengui-cpp0, libgwengui-qt4-0, libgwenhywfar60 (>= 3.11.6), libical1 (>= 1.0), libkabc4, libkcmutils4, libkdecore5, libkdeui5, libkfile4, libkholidays4, libkhtml5, libkio5, libkpimidentities4, libofx4, libqt4-dbus (>= 4:4.5.3), libqt4-network (>= 4:4.5.3), libqt4-sql (>= 4:4.5.3), libqt4-svg (>= 4:4.5.3), libqt4-xml (>= 4:4.5.3), libqtcore4 (>= 4:4.8.0), libqtgui4 (>= 4:4.8.0), libstdc++6 (>= 4.6), kmymoney-common (= 4.7.2-0ubuntu1~ubuntu14.04~ppa2)
Filename: pool/main/k/kmymoney/kmymoney_4.7.2-0ubuntu1~ubuntu14.04~ppa2_amd64.deb

If you need more information , then I will deliver this.
Comment 9 Jack 2016-03-11 20:24:19 UTC
Thanks for following up.  Since it now works for you now, I would guess that it was a transient issue related to dependencies, and they fixed it between between when you updated, and when you just reinstalled.  I suppose we can close as "worksforme"
Comment 10 allan 2016-03-11 21:13:23 UTC
(In reply to Jack from comment #9)
> Thanks for following up.  Since it now works for you now, I would guess that
> it was a transient issue related to dependencies, and they fixed it between
> between when you updated, and when you just reinstalled.  I suppose we can
> close as "worksforme"

But remember, [initially] "...I used kmymoney without any problems for three weeks since i updated to 4.7.2."

My money was on a local issue, caused when "The only thing i do was a update and upgrade of my system."

Anyway, all in order now.
Comment 11 Christian David 2016-03-13 07:43:01 UTC
Sorry, I am a bit late. Just wanted to note, something is heavily wrong here. Because the "undefined symbol: _ZTI9onlineJob" was introduced in version 4.8. So I assume some clashes between versions. We should rethink our .so version policy which could have prevented this very cryptic error message.
Comment 12 soulrebell 2016-03-25 07:42:27 UTC
Hi, 
for your information.
The above mentioned behavior of kmymoney is after every system update
A reinstall solved the problem.
Comment 13 allan 2016-03-25 11:34:54 UTC
Christian
Are you intending to follow up your concern outside of this bug?

Allan
Comment 14 Christian David 2016-03-26 10:13:59 UTC
I am 98% sure this is a downstream bug. It is also possible that a self compiled version and a version from the distribution interfere. KMyMoney 4.7 does not include any (reference to) "onlineJob", I added them in 4.8. So there is nearly no chance the issue is caused by us.

Maybe a self compiled plugin or kmm library was accidentally installed in a user or system location?