Bug 334717 - Kate crashes when saving Xournal files
Summary: Kate crashes when saving Xournal files
Status: RESOLVED DUPLICATE of bug 335121
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 3.13.0
Platform: Kubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-13 16:52 UTC by artghio
Modified: 2014-06-07 13:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Backtrace (6.11 KB, text/plain)
2014-05-13 16:53 UTC, artghio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description artghio 2014-05-13 16:52:52 UTC
On Kubuntu 13.10, Kate (I don't remember the version) could open, edit and save Xournal files (.xoj), which are XML files compressed by gzip.

On Kubuntu 14.04, Kate version 3.13.0 can open and edit Xournal files, but when saving (both 'Save' and 'Save as' commands) it will crash.

Reproducible: Always

Steps to Reproduce:
1. Open Xournal and create a .xoj file.
2. Open Kate and open the .xoj file.
3. Save the file ('File' -> 'Save' or 'Save as').
Actual Results:  
Kate crashes with segmentation fault.

Expected Results:  
The software should save the edited .xoj file.

Terminal output by command 'kate <filename>.xoj':

QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Bus::open: Can not get ibus-daemon's address. 
IBusInputContext::createInputContext: no connection to ibus-daemon 
KGzipFilter: Unsupported mode  10 . Only QIODevice::ReadOnly and QIODevice::WriteOnly supported 
KCrash: Application 'kate' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
Unable to start Dr. Konqi
Not forwarding the crash to Apport.
Comment 1 artghio 2014-05-13 16:53:42 UTC
Created attachment 86612 [details]
Backtrace
Comment 2 Dominik Haumann 2014-06-07 13:20:46 UTC
Paste the backtrace:

Thread 1 (Thread 0x7fec1fac97c0 (LWP 24935)):
[KCrash Handler]
#5  0x00007fec1c0c1688 in deflate () from /lib/x86_64-linux-gnu/libz.so.1
#6  0x00007fec1e23af9c in KGzipFilter::compress(bool) () from /usr/lib/libkdecore.so.5
#7  0x00007fec1e23d13c in KFilterDev::writeData(char const*, long long) () from /usr/lib/libkdecore.so.5
#8  0x00007fec1d285470 in QIODevice::write(char const*, long long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fec1d294b3d in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007fec1d29bfff in QTextStream::operator<<(QString const&) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007fec0ce568b6 in Kate::TextBuffer::save(QString const&) () from /usr/lib/libkatepartinterfaces.so.4
#12 0x00007fec0cec6af0 in KateBuffer::saveFile(QString const&) () from /usr/lib/libkatepartinterfaces.so.4
#13 0x00007fec0cec0aa7 in KateDocument::saveFile() () from /usr/lib/libkatepartinterfaces.so.4
#14 0x00007fec198f573a in KParts::ReadWritePart::save() () from /usr/lib/libkparts.so.4
#15 0x00007fec0cea5fe0 in KateDocument::documentSave() () from /usr/lib/libkatepartinterfaces.so.4
Comment 3 Dominik Haumann 2014-06-07 13:21:23 UTC
Known issue, can be reproduced with libz-1.2.8, see bug #335121.

*** This bug has been marked as a duplicate of bug 335121 ***