This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kate segfaulting

Tags: None
(comma "," separated)
Aquous
Registered Member
Posts
7
Karma
0

Kate segfaulting

Mon May 02, 2011 2:01 pm
After a long and hard struggle, I finally got the emerge tool to work on windows. Most programs won't compile (they are all suffering from the same problem: they depend on gpgme-qt whose download mirror has vanished), but I did get Kate to compile. It also runs. But when I try to open a text file, it crashes.

Code: Select all
Program received signal SIGSEGV, Segmentation fault.
KSycocaEntry::name (this=0x0)
    at c:\KDE\git\kdelibs\kdecore\sycoca\ksycocaentry.cpp:159
159         Q_D(const KSycocaEntry);
(gdb) bt
#0  KSycocaEntry::name (this=0x0)
    at c:\KDE\git\kdelibs\kdecore\sycoca\ksycocaentry.cpp:159
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#1  0x0000000000000001 in ?? ()
    at /W64_4.4_164871-src/build-gcc/x86_64-w64-mingw32/libstdc++-v3/include/ext
/concurrence.h:75
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#2  0x0000000000228030 in ?? ()
#3  0x0000000065edc1c0 in QPauseAnimation::staticMetaObject ()
   from C:\KDE\bin\QtCore4.dll
#4  0x0000000000229060 in ?? ()
#5  0x0000000000228030 in ?? ()
#6  0x000000000e076d4e in Kate::TextLoader::TextLoader (this=0x227ed0,
    filename=..., proberType=KEncodingProber::Universal)
    at c:/KDE/git/kdelibs/kate/buffer//katetextloader.h:68
#7  0x0000000000227c70 in ?? ()
#8  0x0000000000000000 in ?? ()
(gdb)


My host OS is Windows 7 x64, the compiler is Mingw4 w64. KDE is at version 4.6.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Kate segfaulting

Tue May 03, 2011 7:01 am
Have you built the Sycoca following the installation? That should be done using "kbuildsycoca4 --noincremental". The messages involving "0x0" indicate a null pointer issue (which isn't good).


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Aquous
Registered Member
Posts
7
Karma
0

Re: Kate segfaulting

Tue May 03, 2011 7:58 am
We've made progress :)
I've run the kbuildsycoca command as you suggested and now when I start up Kate I get the following message:
No mime types installed. Check that shared-mime-info is installed, and that XDG_DATA_DIRS is not set, or includes /usr/share
followed by:
Could not find mime type “application/octet-stream”
shared-mime-info is installed, and XDG_DATA_DIRS is not set. However, Kate still crashes when trying to open a file.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Kate segfaulting

Tue May 03, 2011 8:07 am
Very odd, can you see if the environment variable XDG_DATA_DIRS is set? If so, does setting it influence the behaviour of "kbuildsycoca4 --noincremental"? It contains some fairly crucial mime types (used for file recognition, etc)


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Aquous
Registered Member
Posts
7
Karma
0

Re: Kate segfaulting

Tue May 03, 2011 8:42 am
I've managed to fix it! I've had to use yet another hack, but well, it works! :D
I used the binary installer to install a KDE system and copied over /share/mime to my self-compiled KDE install. Now I get no more error messages and Kate works.

There is one more tiny problem, though - I don't have the systemsettings application since kdebase-apps won't emerge due to depending on gpgme-qt which no longer exists... you wouldn't happen to know anything I can do to hack around that, would you? It'd be awesome to have my Kate look like the rest of my Windows apps 8)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Kate segfaulting

Wed May 04, 2011 6:00 am
Depends on what you need to change. Assuming you managed to build kde-runtime ok, then you should be able to execute "kcmshell4 --list" to get a list of available modules, then be able to open them by running "kcmshell4 <module name>".

Note that System Settings is part of kde-workspace rather than kde-baseapps.

Alternately, you should actually be able to build System Settings, as it can be configured and built as a single app (just run cmake with a base directory of kde-workspace/systemsettings).

I couldn't find any link to gpg or gpgme in either of kde-workspace or kde-baseapps.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Aquous
Registered Member
Posts
7
Karma
0

Re: Kate segfaulting

Wed May 04, 2011 6:41 am
Thanks! That's really helpful 8)

FTR, the actual problem with emerge is:
Code: Select all
c:\KDE>emerge kdebase-workspace
emerge.bat executed
08:38
emerge debug: buildAction: all
emerge debug: packageName: kdebase-workspace
emerge debug: buildType: RelWithDebInfo
emerge debug: buildTests: False
________________________________________________________________________________

<fetches some deps>

emerge debug: setdir category: contributed, package: gpgme-qt
emerge debug: cmakeInstallPrefix: c:/kde
emerge debug: base exec called. args: ['c:\\kde\\emerge\\portage\\contributed\\gpgme-qt\\gpgme-qt-20080115.py', 'fetch']
emerge debug: command: fetch
--2011-05-04 08:38:25--  http://saroengels.net/kde-windows/gnuwin32/gpgme-qt.tar.bz2
Resolving saroengels.net... 88.84.137.176
Connecting to saroengels.net|88.84.137.176|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-05-04 08:38:26 ERROR 404: Not Found.

emerge fatal error: command fetch failed
emerge fatal error: running python c:\kde\emerge\portage\contributed\gpgme-qt\gpgme-qt-20080115.py fetch
08:38

And like you, I've been unable to locate the requested file anywhere else on the internet. Which is not that surprising, really, since the requested package is 2.5 years old.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Kate segfaulting

Wed May 04, 2011 6:58 am
Hmm, at least for KDE 4.6, the recipe name seems to be "kde-workspace". KDE 4.5 had kdebase-workspace.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Aquous
Registered Member
Posts
7
Karma
0

Re: Kate segfaulting

Wed May 04, 2011 2:57 pm
Thanks. I had to brutally vandalize some of the scripts in the portage/ directory, but I got systemsettings to build. I now have Kate and Okular running on Windows :D
(yes, that's all I wanted, Kate and Okular, and 64-bit Qt headers... LOL)

Thanks for all your help, man. 8)


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, mickae, Sogou [Bot]