Bug 363307 - kate crash when closing large text file
Summary: kate crash when closing large text file
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-05-20 06:55 UTC by Raf
Modified: 2016-05-30 07:54 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raf 2016-05-20 06:55:30 UTC
Application: kate (3.14.9)
KDE Platform Version: 4.14.9
Qt Version: 4.8.6
Operating System: Linux 3.16.7-35-default x86_64
Distribution: "openSUSE 13.2 (Harlequin) (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
I was closing kate after editing large text file (aprox 600MB)

-- Backtrace:
Application: Kate (kate), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fd02eaac780 (LWP 4100))]

Thread 3 (Thread 0x7fd0104e6700 (LWP 4101)):
#0  0x00007fd02d37503f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fd01f9ed8cb in  () at /usr/lib64/libQtScript.so.4
#2  0x00007fd01f9ed909 in  () at /usr/lib64/libQtScript.so.4
#3  0x00007fd02d3710a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fd02c0dd00d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7fcf8de9d700 (LWP 4104)):
#0  0x00007ffe3add6bb6 in  ()
#1  0x7fffffff00000000 in  ()
#2  0x2d73626000000000 in  ()
#3  0xffffffffffffffff in  ()#4  0xffffffffffffffff in  ()#5  0xffffffffffffffff in  ()#6  0x7fffffff00007fcf in  ()
#7  0x2d73600000000000 in  ()
#8  0xffffffffffffffff in  ()#9  0x2c0e9c4d00007fcf in  ()
#10 0x2d7e954700007fd0 in  ()
#11 0x2d65bd4700007fd0 in  ()
#12 0x0000000200007fd0 in  ()
#13 0xffffffffffffffff in  ()#14 0x000d216f00007fcf in  ()
#15 0xffffffffffffffff in  ()#16 0x0002c90d00007fcf in  ()
#17 0x2d73787500000000 in  ()
#18 0x0000000000007fd0 in  ()
#19 0xffffffffffffffff in  ()#20 0xffffffffffffffff in  ()#21 0xffffffffffffffff in  ()#22 0x0000000000007fcf in  ()
#23 0x2d735f8c00000000 in  ()
#24 0x0000000000007fd0 in  ()
#25 0x0000000000000000 in  ()

Thread 1 (Thread 0x7fd02eaac780 (LWP 4100)):
[KCrash Handler]
#5  0x00007fd02c02d0a7 in raise () at /lib64/libc.so.6
#6  0x00007fd02c02e458 in abort () at /lib64/libc.so.6
#7  0x00007fd02c405145 in __gnu_cxx::__verbose_terminate_handler() () at /usr/lib64/libstdc++.so.6
#8  0x00007fd02c4032e6 in  () at /usr/lib64/libstdc++.so.6
#9  0x00007fd02c403313 in  () at /usr/lib64/libstdc++.so.6
#10 0x00007fd02c403586 in __cxa_rethrow () at /usr/lib64/libstdc++.so.6
#11 0x00007fd02d708356 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#12 0x00007fd02d70d5b9 in QCoreApplication::exec() () at /usr/lib64/libQtCore.so.4
#13 0x00007fd017d56ff5 in kdemain () at /usr/lib64/libkdeinit4_kate.so
#14 0x0000000000408815 in _start ()

Reported using DrKonqi
Comment 1 Christoph Feck 2016-05-20 09:32:39 UTC
If this is reproducible, could you try running Kate from console, and add the output right before the error occurs?
Comment 2 Raf 2016-05-23 06:26:13 UTC
It is reproducible only with big (~600 MB) files.

Output from the terminal before the crash:

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
KCrash: Application 'kate' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
Comment 3 Christoph Cullmann 2016-05-29 13:45:53 UTC
This is OOM, sorry, we can't handle that.
I see no easy way to improve the memory usage of KTextEditor for large files ATM :/
Comment 4 Raf 2016-05-30 07:54:15 UTC
Ok, I understand. Frankly it is very rare when I use kate for such large files - in most cases console scripts for sting search or insert do the work. 

Anyway, thank you for the reply and clarification.