Opened 12 years ago
Closed 12 years ago
#34919 closed defect (invalid)
kmymoney4-devel does not run on Lion 10.7.4
Reported by: | bs48@… | Owned by: | mkae (Marko Käning) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.1 |
Keywords: | Cc: | nerdling (Jeremy Lavergne), pixilla (Bradley Giesbrecht) | |
Port: | kmymoney4-devel |
Description
(Opened at marko's request)
I am able to compile kmymoney4-devel against Qt 4.8 OK, but it does not run; the process simply appears to hang, and its icon stays in the Dock. No windows are opened.
I am using MacOS X Lion 10.7.4.
Change History (16)
comment:1 Changed 12 years ago by mkae (Marko Käning)
Owner: | changed from macports-tickets@… to mk@… |
---|---|
Port: | kmymoney4-devel added |
comment:2 Changed 12 years ago by mkae (Marko Käning)
Status: | new → assigned |
---|
comment:3 Changed 12 years ago by mkae (Marko Käning)
Cc: | snc@… added |
---|
comment:4 Changed 12 years ago by mkae (Marko Käning)
comment:5 Changed 12 years ago by nerdling (Jeremy Lavergne)
I saw something suspicious /Applications/MacPorts/KDE4/kmymoney.app/Contents/MacOS/kmymoney.shell:
DYLD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kmymoney4-devel/kmymoney4-devel/work/build/lib/./:/opt/local/lib${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH} "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kmymoney4-devel/kmymoney4-devel/work/build/kmymoney/kmymoney.app/Contents/MacOS/kmymoney" "$@"
comment:6 Changed 12 years ago by mkae (Marko Käning)
It looks like that shell command desperately needs a patch!
It surprises me that this doesn't fail here on my Snow Leopard, though...
I'll have a look at the sources later and report.
comment:7 Changed 12 years ago by mkae (Marko Käning)
I've found the same strange content in my kmymoney.shell script here! This can only mean that this script gets never executed, since that build directory doesn't exist anymore.
Instead the executable kmymoney in the same directory gets to run. In my case at least successfully.
What happens if you run the app on your system, snc? Do you see the same output and hang like bs48?
comment:8 Changed 12 years ago by mkae (Marko Käning)
Cc: | pixilla@… added |
---|
comment:9 Changed 12 years ago by pixilla (Bradley Giesbrecht)
Caveat, I have not been following this ticket so what I have to report may be completely off topic.
I just installed kmymoney4-devel and initially kmymoney.app crashed for me. I rebooted and got a different crash from kmymoney.app with a bunch of /var/log/system.log entries about write failures to ~/Library/Preferences/KDE.
After recursively changing the owner of ~/Library/Preferences/KDE to my username kmymoney is launching for me.
comment:10 Changed 12 years ago by mkae (Marko Käning)
Thanks for testing this, pixilla!
Great that it finally ran on your system after those changes to the KDE-directory's ownership.
Can you figure out whether the ownership was wrongly set during port installation or whether it was due to a different problem on your end!
If it was indeed caused by the port installation itself (resulting in a directory with root permissions) then we seem to be back to old times... Do you remember that we fought a while with these things in kmymoney 1.0.x times and wrote a special startup script to handle this issue for the user who calls kmymoney? Will we have to do the same thing for kmymoney4(-devel) now again? :-(
comment:11 Changed 12 years ago by mkae (Marko Käning)
I tested the permission problem on my SL by simply setting
$ sudo chown root:admin Library/Preferences/KDE $ sudo chmod go-rx Library/Preferences/KDE
Trying to run the app in the next step then fails, as described above by pixilla:
$ /opt/clean-slate/Applications/KDE4/kmymoney.app/Contents/MacOS/kmymoney QFile::remove: Empty or null file name trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied QFile::remove: Empty or null file name kmymoney(608)/KSharedDataCache KSharedDataCache::Private::mapSharedMemory: Failed to establish shared memory mapping, will fallback to private memory -- memory usage will increase kmymoney(608)/KSharedDataCache: Unable to find an appropriate lock to guard the shared cache. This *should* be essentially impossible. :( kmymoney(608)/KSharedDataCache: Unable to perform initial setup, this system probably does not really support process-shared pthreads or semaphores, even though it claims otherwise. kmymoney(608)/KSharedDataCache: Unable to unmap shared memory segment 0x117f00000 trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied kmymoney(608)/KSharedDataCache KSharedDataCache::Private::mapSharedMemory: Failed to establish shared memory mapping, will fallback to private memory -- memory usage will increase kmymoney(608)/KSharedDataCache: Unable to find an appropriate lock to guard the shared cache. This *should* be essentially impossible. :( kmymoney(608)/KSharedDataCache: Unable to perform initial setup, this system probably does not really support process-shared pthreads or semaphores, even though it claims otherwise. kmymoney(608)/KSharedDataCache: Unable to unmap shared memory segment 0x118400000 trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied kbuildsycoca4 running... trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied kbuildsycoca4: ERROR creating database '/Users/marko/Library/Preferences/KDE/cache-markos-imac/ksycoca4'! Insufficient permissions in target directory. QFile::remove: Empty or null file name ERROR: Running KSycoca failed. trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied kmymoney(608): No ksycoca4 database available! kmymoney(608)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned initialize() D-Bus call failed: "The name org.kde.kded was not provided by any .service files" kmymoney(608)/kdecore (K*TimeZone*): No time zone information obtained from ktimezoned trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied kbuildsycoca4 running... trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied kbuildsycoca4: ERROR creating database '/Users/marko/Library/Preferences/KDE/cache-markos-imac/ksycoca4'! Insufficient permissions in target directory. QFile::remove: Empty or null file name ERROR: Running KSycoca failed. trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied kmymoney(608): No ksycoca4 database available! kmymoney(608)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType "KMyMoneyPlugin" not found trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied kbuildsycoca4 running... trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied kbuildsycoca4: ERROR creating database '/Users/marko/Library/Preferences/KDE/cache-markos-imac/ksycoca4'! Insufficient permissions in target directory. QFile::remove: Empty or null file name ERROR: Running KSycoca failed. trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied kmymoney(608): No ksycoca4 database available! trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied kbuildsycoca4 running... trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied kbuildsycoca4: ERROR creating database '/Users/marko/Library/Preferences/KDE/cache-markos-imac/ksycoca4'! Insufficient permissions in target directory. QFile::remove: Empty or null file name ERROR: Running KSycoca failed. trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied kmymoney(608): No ksycoca4 database available! kmymoney(608)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType "KResources/Plugin" not found trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied QFile::remove: Empty or null file name trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied kbuildsycoca4 running... trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied kbuildsycoca4: ERROR creating database '/Users/marko/Library/Preferences/KDE/cache-markos-imac/ksycoca4'! Insufficient permissions in target directory. QFile::remove: Empty or null file name ERROR: Running KSycoca failed. trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied trying to create local folder /Users/marko/Library/Preferences/KDE/share: Permission denied KCrash: Application 'kmymoney' crashing... KCrash: Attempting to start /opt/clean-slate/lib/kde4/libexec/drkonqi.app/Contents/MacOS/drkonqi from kdeinit sock_file=/Users/marko/Library/Preferences/KDE/socket-markos-imac/kdeinit4__tmp_launch-ZC2ukE_org.x_0 Warning: connect() failed: : Permission denied KCrash: Attempting to start /opt/clean-slate/lib/kde4/libexec/drkonqi.app/Contents/MacOS/drkonqi directly Unable to start Dr. Konqi markos-imac:~ marko$ trying to create local folder /Users/marko/Library/Preferences/KDE/cache-markos-imac: Permission denied QFile::remove: Empty or null file name drkonqi(614)/KSharedDataCache KSharedDataCache::Private::mapSharedMemory: Failed to establish shared memory mapping, will fallback to private memory -- memory usage will increase drkonqi(614)/KSharedDataCache: Unable to find an appropriate lock to guard the shared cache. This *should* be essentially impossible. :( drkonqi(614)/KSharedDataCache: Unable to perform initial setup, this system probably does not really support process-shared pthreads or semaphores, even though it claims otherwise. drkonqi(614)/KSharedDataCache: Unable to unmap shared memory segment 0x118230000 drkonqi(614): The specified process does not exist.
So, let's hope that this is the same thing which bs48 experiences.
comment:12 Changed 12 years ago by mkae (Marko Käning)
bs48, are there any updates to this ticket from your end?
comment:13 follow-up: 14 Changed 12 years ago by mkae (Marko Käning)
Looks like other users also seem to have this issue: http://forum.kde.org/viewtopic.php?f=69&t=107660
This means that the install of kdelibs4 once again is broken with respect to the preferences folder permissions. :(
I'll soon have a look into this and create a workaround in kmymoney4(-devel)'s portfiles.
comment:14 Changed 12 years ago by IanWadham
Replying to mk@…:
Looks like other users also seem to have this issue: http://forum.kde.org/viewtopic.php?f=69&t=107660
This means that the install of kdelibs4 once again is broken with respect to the preferences folder permissions. :(
I'll soon have a look into this and create a workaround in kmymoney4(-devel)'s portfiles.
FWIW, I re-installed kdelibs4 (indirectly) 3 days ago, on 13 Sept 2012. I wanted to install kdesdk4, but my installation of qt4-mac with +mysql was no longer valid, so I had to re-install qt4-mac without it. That led to a whole lot of dependents of Qt being automatically re-installed, including kdelibs4. Googling about another problem, I came across this ticket. After reading it, I checked my entire /Users/ianw/Library/Preferences/KDE chain and all the ownerships and permissions were correct (i.e accessible only by ianw). My group membership is admin, but there were no group permissions, and I ran the install of qt4-mac via "sudo".
Actually I have not had a problem with permissions since starting with Macports on Snow Leopard in July 2011. I am now on Lion, OS X 10.7.4 and have been through several installs of kdelibs4. I wonder if there is some point in the kdelibs4 installation procedure where being a member of admin makes a difference? I am effectively "root" as far as Apple software is concerned (e.g. when giving permission to download and install software from the Web that is not from Macports or Apple, such as Flash Player).
comment:15 Changed 12 years ago by bs48@…
Success! I am now able to run KMyMoney.
It turned out that as I had Homebrew installed previously, when I removed it and installed MacPorts, it did not uninstall all of the old state.
OS X was trying to start dbus with Homebrew's configuration files... As soon as I located and removed all of the Homebrew related files, KMyMoney started working.
Thanks for all your hard work on this.
comment:16 Changed 12 years ago by mkae (Marko Käning)
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
Great, I am happy to hear that it does work for you eventually! :-)
This is what happens when bs48 is running kmymoney from the command line:
...and the application then just sits there. No windows, no other output, but icon is in dock.
The above is actually "normal noise" when KMM gets started on my Snow Leopard. So, I guess something else goes wrong at a later point in time.
bs48, please do the following:
1) run KMM
2) wait a few seconds
3) right-click hopping application icon in dock and choose "Force Quit"
4) choose to send a crash report
5) copy report and attach it to this ticket