After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 352099 - Crash on Text Editor (possible out-of-memory problem)
Crash on Text Editor (possible out-of-memory problem)
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
2.18.x
Other All
: High critical
: ---
Assigned To: Gedit maintainers
Gedit maintainers
: 356734 364476 368991 369346 369795 370479 372785 374101 374919 376664 378226 378588 379217 379530 379962 380223 380465 380715 380745 380816 381422 381881 381898 382266 382727 382829 383325 383417 384117 384314 385395 387334 388347 389606 390341 390380 390583 391175 391694 393433 393581 394254 395468 396010 396732 397433 397491 397953 399240 400062 402067 404744 405199 406503 407448 407762 408033 410304 410326 412347 412364 412989 413064 414497 414680 414996 415602 417071 417089 417951 418017 418223 418565 419372 419558 419603 420827 421029 421223 421932 422102 422128 422977 423080 423155 424804 425565 426071 426692 426771 427549 427814 428238 429847 430575 430988 431411 431797 431952 433631 434258 435522 435808 438395 439330 440736 442340 446618 446971 447483 453705 454234 455559 461140 461311 461547 462511 463643 464537 466699 467213 471012 472688 474182 474479 476098 477525 478391 479077 479093 480718 481829 483318 486265 488926 488927 489350 500260 516625 516837 594338 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-08-20 03:02 UTC by bob.collier
Modified: 2010-04-04 15:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description bob.collier 2006-08-20 03:02:40 UTC
What were you doing when the app crashed?:
Trying to install a game


Distribution: Fedora Core release 5.91 (FC6 Test2)
Gnome Release: 2.15.4 2006-07-12 (Red Hat, Inc)
BugBuddy Version: 2.15.0

Memmory status: size: 1685356544 vsize: 0 resident: 1685356544 share: 0 rss: 888475648 rss_rlim: 0
CPU usage: start_time: 1156024998 rtime: 0 utime: 2908 stime: 0 cutime:2546 cstime: 0 timeout: 362 it_real_value: 0 frequency: 0

Backtrace was generated from '/usr/bin/gedit'

(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1208194640 (LWP 3943)]
(no debugging symbols found)
0xb7fe8402 in __kernel_vsyscall ()

Thread 1 (Thread -1208194640 (LWP 3943))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #2 gnome_gtk_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 __kernel_vsyscall
  • #5 raise
    from /lib/libc.so.6
  • #6 abort
    from /lib/libc.so.6
  • #7 g_logv
    from /lib/libglib-2.0.so.0
  • #8 g_log
    from /lib/libglib-2.0.so.0
  • #9 g_realloc
    from /lib/libglib-2.0.so.0
  • #10 g_convert_with_iconv
    from /lib/libglib-2.0.so.0
  • #11 g_convert
    from /lib/libglib-2.0.so.0
  • #12 gedit_convert_from_utf8
  • #13 gedit_convert_to_utf8
  • #14 gedit_document_new
  • #15 gedit_document_new
  • #16 g_source_get_current_time
    from /lib/libglib-2.0.so.0
  • #17 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #18 g_main_context_check
    from /lib/libglib-2.0.so.0
  • #19 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #20 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #21 main
  • #0 __kernel_vsyscall

Comment 1 Paolo Maggi 2006-08-21 08:36:35 UTC
Thanks for taking the time to report this bug.
This bug report isn't very useful because it doesn't describe the bug well. If you have time and can still reproduce the bug, please read http://bugzilla.gnome.org/bug-HOWTO.html and add a description of how to reproduce this bug.

You'll also need to add a better stack trace if possibile; please see http://live.gnome.org/GettingTraces for more information about how to do so.

Anyway, looking at the available stack trace it seems an out-of-memory problem to me.
Comment 2 Karsten Bräckelmann 2006-09-19 14:47:30 UTC
*** Bug 356734 has been marked as a duplicate of this bug. ***
Comment 3 Karsten Bräckelmann 2006-09-20 12:14:04 UTC
Moving over bug 356734 comment 2 from the closed duplicate:

> Paolo Maggi, gedit developer:
> The crash is due to an out-of-memory condition.
> I'm not sure how we should manage these cases, we should probably try to
> "convert to UTF-8" in an incremental way.
Comment 4 Karsten Bräckelmann 2006-10-23 17:04:49 UTC
*** Bug 364476 has been marked as a duplicate of this bug. ***
Comment 5 Paolo Maggi 2006-11-01 18:50:23 UTC
*** Bug 368991 has been marked as a duplicate of this bug. ***
Comment 6 Paolo Maggi 2006-11-02 13:13:28 UTC
*** Bug 369346 has been marked as a duplicate of this bug. ***
Comment 7 André Klapper 2006-11-03 03:57:34 UTC
*** Bug 369795 has been marked as a duplicate of this bug. ***
Comment 8 Paolo Maggi 2006-11-04 14:05:38 UTC
*** Bug 370479 has been marked as a duplicate of this bug. ***
Comment 9 André Klapper 2006-11-09 19:39:51 UTC
*** Bug 372785 has been marked as a duplicate of this bug. ***
Comment 10 André Klapper 2006-11-12 09:31:09 UTC
*** Bug 374101 has been marked as a duplicate of this bug. ***
Comment 11 cedric 2006-11-12 11:09:36 UTC
I've been asked to give more informations about the bug I got (374101). It is for sure a "out of memory" bug. I received two XML files which I wanted to preview. The 1st one was 200 Mo, and it opened without problem. The second one was 800 Mo and it crashed (I have only 512 Mo RAM on my system).
Regards.
Comment 12 Karsten Bräckelmann 2006-11-14 00:04:27 UTC
*** Bug 374919 has been marked as a duplicate of this bug. ***
Comment 13 Susana 2006-11-18 15:19:10 UTC
*** Bug 376664 has been marked as a duplicate of this bug. ***
Comment 14 simtris 2006-11-19 14:57:59 UTC
I think too for the out of memory.

1/Open my Docs directory (FAT32)  in nautilus
2/Open the pagefile.sys (2Go) with gedit
3/Crash

I have 1Go of memory. I think the bug is  proportionnal of you're amount of RAM.

I'll try open différent files seize once i was return on Linux
Comment 15 Cees Timmerman 2006-11-21 09:54:28 UTC
gEdit 2.16.1 on Ubuntu 6.10 swelled to 300+ MB on this 386 MB RAM machine when something opened the crash report i had just uploaded here: http://librarian.launchpad.net/5119270/_usr_bin_python.1002.crash

I'm switching to SciTE.
Comment 16 Damien Durand 2006-11-22 21:13:19 UTC
*** Bug 378226 has been marked as a duplicate of this bug. ***
Comment 17 Susana 2006-11-23 20:46:00 UTC
*** Bug 378588 has been marked as a duplicate of this bug. ***
Comment 18 Jens Granseuer 2006-11-25 20:07:55 UTC
*** Bug 379217 has been marked as a duplicate of this bug. ***
Comment 19 Susana 2006-11-26 19:20:17 UTC
*** Bug 379530 has been marked as a duplicate of this bug. ***
Comment 20 Fabio Bonelli 2006-11-28 15:13:58 UTC
*** Bug 379962 has been marked as a duplicate of this bug. ***
Comment 21 Susana 2006-11-28 21:16:10 UTC
*** Bug 380223 has been marked as a duplicate of this bug. ***
Comment 22 Susana 2006-11-29 15:38:34 UTC
*** Bug 380465 has been marked as a duplicate of this bug. ***
Comment 23 Susana 2006-11-30 08:26:05 UTC
*** Bug 380715 has been marked as a duplicate of this bug. ***
Comment 24 Susana 2006-11-30 08:28:24 UTC
*** Bug 380745 has been marked as a duplicate of this bug. ***
Comment 25 knowfaith 2006-11-30 12:41:16 UTC
I was installing files for my nvidia card, I have 1 gig of memory. is there anyway to resolve this issue?
Comment 26 Damien Durand 2006-11-30 18:36:47 UTC
*** Bug 380816 has been marked as a duplicate of this bug. ***
Comment 27 André Klapper 2006-12-02 14:09:42 UTC
*** Bug 381422 has been marked as a duplicate of this bug. ***
Comment 28 Damien Durand 2006-12-03 15:55:29 UTC
*** Bug 381898 has been marked as a duplicate of this bug. ***
Comment 29 edd pearson 2006-12-03 15:59:23 UTC
i was installing true combat elite on ubuntu edgy eft
Comment 30 Bruno Boaventura 2006-12-03 17:36:06 UTC
*** Bug 381881 has been marked as a duplicate of this bug. ***
Comment 31 Bruno Boaventura 2006-12-04 15:21:00 UTC
*** Bug 382266 has been marked as a duplicate of this bug. ***
Comment 32 Susana 2006-12-05 21:34:43 UTC
*** Bug 382727 has been marked as a duplicate of this bug. ***
Comment 33 Damien Durand 2006-12-06 04:26:03 UTC
*** Bug 382829 has been marked as a duplicate of this bug. ***
Comment 34 Bruno Boaventura 2006-12-07 15:02:26 UTC
*** Bug 383325 has been marked as a duplicate of this bug. ***
Comment 35 Bruno Boaventura 2006-12-07 21:06:49 UTC
*** Bug 383417 has been marked as a duplicate of this bug. ***
Comment 36 Damien Durand 2006-12-09 19:07:48 UTC
*** Bug 384117 has been marked as a duplicate of this bug. ***
Comment 37 Damien Durand 2006-12-10 10:50:22 UTC
*** Bug 384314 has been marked as a duplicate of this bug. ***
Comment 38 Baptiste Mille-Mathias 2006-12-10 10:56:11 UTC
Hi dear reporters,

Thanks for taking the time to report this bug.

Unfortunately, that stack traces are missing some elements that will help a lot
to solve the problem, so it will be hard for the developers to fix that crash.
Can you get us a stack trace with debugging symbols? Please see
http://live.gnome.org/GettingTraces for more information on how to do so. (install debug packages of liglib2 and libgtk2)

Thanks in advance! It will help us a lot
Comment 39 cedric 2006-12-10 11:18:36 UTC
I was asked for more infos, is that ok ? 
I installed the debuginfo package... not sure it was the (only) thing to do.

------

Distribution: Fedora Core release 6 (Zod)
Gnome Release: 2.16.0 2006-09-04 (Red Hat, Inc)
BugBuddy Version: 2.16.0

System: Linux 2.6.18-1.2849.fc6 #1 SMP Fri Nov 10 12:45:28 EST 2006 i686
X Vendor: The X.Org Foundation
X Vendor Release: 70101000
Selinux: Enforcing
Accessibility: Disabled
----------- .xsession-errors ---------------------
Error: No running window found
Error: No running window found
GLib-ERROR **: gmem.c:135: failed to allocate 998535286 bytes
aborting...
** (bug-buddy:32536): WARNING **: Impossible de charger l'icône pour Ouvrir le dossier
Error: No running window found
libnm_glib_nm_state_cb: dbus returned an error.
  (org.freedesktop.DBus.Error.ServiceUnknown) The name org.freedesktop.NetworkManager was not provided by any .service files
GLib-ERROR **: gmem.c:135: failed to allocate 998535286 bytes
aborting...
** (bug-buddy:511): WARNING **: Impossible de charger l'icône pour Ouvrir le dossier
--------------------------------------------------

Memory status: size: 1064759296 vsize: 0 resident: 1064759296 share: 0 rss: 591097856 rss_rlim: 0
CPU usage: start_time: 1165749113 rtime: 0 utime: 600 stime: 0 cutime:476 cstime: 0 timeout: 124 it_real_value: 0 frequency: 0

Backtrace was generated from '/usr/bin/gedit'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1208961328 (LWP 509)]
0x00dfe402 in __kernel_vsyscall ()

Thread 1 (Thread -1208961328 (LWP 509))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #2 gnome_gtk_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 __kernel_vsyscall
  • #5 raise
    from /lib/libc.so.6
  • #6 abort
    from /lib/libc.so.6
  • #7 g_logv
    from /lib/libglib-2.0.so.0
  • #8 g_log
    from /lib/libglib-2.0.so.0
  • #9 g_malloc
    from /lib/libglib-2.0.so.0
  • #10 g_convert_with_iconv
    from /lib/libglib-2.0.so.0
  • #11 g_convert
    from /lib/libglib-2.0.so.0
  • #12 gedit_convert_to_utf8_from_charset
    at gedit-convert.c line 83
  • #13 gedit_convert_to_utf8
    at gedit-convert.c line 226
  • #14 update_document_contents
    at gedit-document-loader.c line 344
  • #15 load_local_file_real
    at gedit-document-loader.c line 560
  • #16 g_source_get_current_time
    from /lib/libglib-2.0.so.0
  • #17 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #18 g_main_context_check
    from /lib/libglib-2.0.so.0
  • #19 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #20 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #21 main
    at gedit.c line 568
  • #0 __kernel_vsyscall

Comment 40 Baptiste Mille-Mathias 2006-12-10 11:34:48 UTC
Hi Cedric,
it seems you didn't installed the libglib2 debug package (not sure how it is called on Fedora though), we need this one too to track this issue.

thanks for your help
Comment 41 cedric 2006-12-10 11:48:38 UTC
Sorry i didn't find them (the libglib2) because they're indeed not exactly same name on fedora.
Here's the log with these installed at the moment : gedit-debuginfo, glib2-debuginfo, gtk2-engines-debuginfo and gtk2-debuginfo. Hope it'll help more...

-----

Distribution: Fedora Core release 6 (Zod)
Gnome Release: 2.16.0 2006-09-04 (Red Hat, Inc)
BugBuddy Version: 2.16.0

System: Linux 2.6.18-1.2849.fc6 #1 SMP Fri Nov 10 12:45:28 EST 2006 i686
X Vendor: The X.Org Foundation
X Vendor Release: 70101000
Selinux: Enforcing
Accessibility: Disabled
----------- .xsession-errors ---------------------
** (bug-buddy:511): WARNING **: Impossible de charger l'icône pour Ouvrir le dossier
XS[src/xmms-sid.c:xs_init:216]: xs_init()
XS[src/xs_config.c:xs_init_configuration:164]: initializing configuration ...
XS[src/xs_config.c:xs_read_configuration:265]: loading from config-file ...
XS[src/xs_config.c:xs_read_configuration:320]: OK
XS[src/xmms-sid.c:xs_reinit:163]: initializing emulator engine #1...
XS[src/xmms-sid.c:xs_reinit:177]: init#1: OK, 1
XS[src/xmms-sid.c:xs_reinit:189]: init#2: OK, 0
XS[src/xmms-sid.c:xs_init:226]: OK
GLib-ERROR **: gmem.c:135: failed to allocate 998535286 bytes
aborting...
** (bug-buddy:761): WARNING **: Impossible de charger l'icône pour Ouvrir le dossier
--------------------------------------------------

Memory status: size: 1064755200 vsize: 0 resident: 1064755200 share: 0 rss: 591900672 rss_rlim: 0
CPU usage: start_time: 1165751082 rtime: 0 utime: 654 stime: 0 cutime:519 cstime: 0 timeout: 135 it_real_value: 0 frequency: 0

Backtrace was generated from '/usr/bin/gedit'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1208621360 (LWP 758)]
0x00846402 in __kernel_vsyscall ()

Thread 1 (Thread -1208621360 (LWP 758))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #2 gnome_gtk_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 __kernel_vsyscall
  • #5 raise
    from /lib/libc.so.6
  • #6 abort
    from /lib/libc.so.6
  • #7 IA__g_logv
    at gmessages.c line 497
  • #8 IA__g_log
    at gmessages.c line 517
  • #9 IA__g_malloc
    at gmem.c line 135
  • #10 IA__g_convert_with_iconv
    at gconvert.c line 575
  • #11 IA__g_convert
    at gconvert.c line 726
  • #12 gedit_convert_to_utf8_from_charset
    at gedit-convert.c line 83
  • #13 gedit_convert_to_utf8
    at gedit-convert.c line 226
  • #14 update_document_contents
    at gedit-document-loader.c line 344
  • #15 load_local_file_real
    at gedit-document-loader.c line 560
  • #16 g_timeout_dispatch
    at gmain.c line 3422
  • #17 IA__g_main_context_dispatch
    at gmain.c line 2045
  • #18 g_main_context_iterate
    at gmain.c line 2677
  • #19 IA__g_main_loop_run
    at gmain.c line 2881
  • #20 IA__gtk_main
    at gtkmain.c line 1001
  • #21 main
    at gedit.c line 568
  • #0 __kernel_vsyscall

Comment 42 Baptiste Mille-Mathias 2006-12-10 12:09:13 UTC
Stack trace with debug symbols
Confirming the bug.
Comment 43 Baptiste Mille-Mathias 2006-12-10 12:09:55 UTC
oups, confirming for real
Comment 44 Bruno Boaventura 2006-12-13 15:17:55 UTC
*** Bug 385395 has been marked as a duplicate of this bug. ***
Comment 45 Paolo Borelli 2006-12-19 00:18:20 UTC
*** Bug 387334 has been marked as a duplicate of this bug. ***
Comment 46 Susana 2006-12-21 20:45:37 UTC
*** Bug 388347 has been marked as a duplicate of this bug. ***
Comment 47 Susana 2006-12-26 01:42:50 UTC
*** Bug 389606 has been marked as a duplicate of this bug. ***
Comment 48 Paolo Maggi 2006-12-28 19:10:31 UTC
*** Bug 390380 has been marked as a duplicate of this bug. ***
Comment 49 Paolo Maggi 2006-12-28 19:12:00 UTC
*** Bug 390341 has been marked as a duplicate of this bug. ***
Comment 50 Paolo Borelli 2006-12-29 10:28:53 UTC
*** Bug 390583 has been marked as a duplicate of this bug. ***
Comment 51 Paolo Maggi 2006-12-31 15:41:10 UTC
*** Bug 391175 has been marked as a duplicate of this bug. ***
Comment 52 Pascal Terjan 2007-01-02 06:57:00 UTC
*** Bug 391694 has been marked as a duplicate of this bug. ***
Comment 53 Paolo Borelli 2007-01-03 00:13:25 UTC
Here is the log of an irc discussion about the bug:


(14:25:25) <paolo> so I tried to find a way to fix a bug that is really pissing me
(14:27:35) <paolo> BTW, I'm speaking of the "out-of-memory" in gedit_convert_to_utf8
(14:27:46) <pbor> yeah
(14:28:14) <paolo> too many people is experiencing it
(14:28:22) <pbor> well, actually avoiding the silly strdup in the non-converting case would be a good enough stop-gap solution
(14:28:38) <paolo> and I think we can try to alleviate this problem
(14:29:04) <paolo> pbor: sure, this could be a first step
(14:29:13) <nud> paolo: would it be possible (at first) to avoid crashing but notice there is not enough memory ?
(14:29:17) <pbor> we need to convert in chunks and feed chuncks to the buffer
(14:29:25) <paolo> I think the problem cannot be solved since if you try to open a 100Gb file in gedit it will crash
(14:29:29) <nud> so at least it doesn't crash, and we can smarten our way later
(14:29:52) <paolo> well, it not so easy
(14:29:56) <pbor> nud: we could use try_malloc instead of blindly strduping
(14:29:57) <nud> otherwise you'll just crash for a bigger file, which is not that smart either
(14:30:23) <paolo> I think the solution is this one
(14:30:26) <pbor> paolo: yeah, I know it's not easy
(14:31:00) <nud> otherwise we should have a way not to load the whole file in memory, but that one looks a lot more difficult to achieve
(14:31:03) <nud> if not impossible
(14:31:07) <paolo> - for files that does not need to be convert: do not strdup ;(
(14:31:37) <paolo> - for files that should be converted to utf8
(14:32:13) <paolo>     - convert it in chunks of X bytes (where X > 20000 or something)
(14:32:42) <paolo>    - if conversion fails it could be a real failure or not 
(14:32:42) <pbor> nud: it's not impossible... g_convert returns the 'remainder' that has not been converted, so you can convert in a loop
(14:33:15) <nud> pbor: it's possible not to have the whole file in the gtktextbuffer ?
(14:33:31) <paolo>     - user the "remainder", if it is > 4 -> error, otherwise try to convert the following chunk
(14:34:02) <paolo> all the chunks go in a list
(14:34:15) <paolo> then if all the the file is converted. feed the list to the buffer
(14:34:16) <pbor> nud: that isn't the problem, textbuffer doesn't malloc a single block of memory... the problem happens during g_convert where we put all the contents in a single string
(14:35:02) <paolo> nud: see http://bugzilla.gnome.org/show_bug.cgi?id=352099#c41
(14:35:05) <pbor> paolo: why do we have to keep them in a list... can't we feed them to the buffer as we go?
(14:35:07) <bugsbot> paolo: Bug 352099 cri, High, ---, gedit-maint@gnome.bugs, NEW, Crash on Text Editor (possible out-of-memory problem)
(14:35:12) <paolo> you will see the crash is due a a very big malloc
(14:35:25) <nud> pbor: it doesn't malloc but the idea was to spare memory by only having a subpart of the file in memory
(14:35:31) <pbor> paolo: keeping them in a list means we cannot reuse the block of memory
(14:35:38) <nud> doesn't vim do something like that ? less does, at least ;-)
(14:35:51) <paolo> pbor: no, conversion could fail for example at the last byte of the file
(14:36:41) <nud> paolo: but then you wouldn't spare memory, would you ?
(14:36:42) <pbor> nud: that's a secondary problem, unless you go out of adress space swap will take care of things (more or less)
(14:37:00) <paolo> nud: why?
(14:37:07) <pbor> paolo: and why is that a problem? if the error occurs we clear the buffer
(14:37:08) <nud> since you'd have two copies of the file, one in the list and one in the buffer
(14:37:13) <paolo> pbor: well, swap space is << of address space
(14:37:40) <paolo> nud: no, we will free the list while feeding the buffer
(14:37:46) <nud> ok
(14:38:22) <pbor> paolo: but it means that we have to allocate a large number of 2000 bytes buffers
(14:38:23) <paolo> pbor: syntax hl and all text buffer machinery  like view updating and so on will work
(14:38:47) <pbor> paolo: while I'd rather reuse the same
(14:38:51) <paolo> pbor: we can choose big block of 4 Mb for example
(14:39:27) <paolo> in this way you will have multiple blocks only a very big files
(14:39:56) <paolo> note that the blocks are allocated from g_convert so we cannot choose their real size
(14:40:17) <pbor> dunno, I don't like the idea of mallocing 4MB every time we open a simple text file either
(14:40:30) <paolo> no, we don't malloc them
(14:41:04) <paolo> we split the input file in block of X bytes (4 Mb or less, we can decide later)
(14:41:40) <paolo> then convert the first X bytes, g_convert will allocate Y bytes for the result, we put them in a list
(14:41:43) <paolo> and so on
(14:42:02) <paolo> then if the entire file is converted
(14:42:14) <paolo> we put the first Y bytes in the buffer and free them
(14:42:17) <paolo> and so on
(14:42:37) <paolo> otherwise try with another encoding
(14:43:12) <pbor> yes, I got what you mean
(14:43:41) <pbor> it's still not clear to me why we cannot simply put them in the buffer instead of keeping them in a list
(14:43:46) <paolo> I agree with you that using the buffer could be a better solution, but there is no need to freeze view updating while populating the buffer
(14:44:20) <paolo> we can disable syntax hl, but not view updating
(14:44:40) <pbor> we can use a separate buffer and attach it to the view after it has been populated
(14:45:31) <paolo> yep, I also thought to this solution
(14:45:54) <paolo> but I'm not sure gedit will manage it in the correct way
(14:46:04) <pbor> anyway, even with the list it would be a great improvement
(14:46:57) <nud> paolo: cant you disconnect the buffer from the view ?
(14:46:59) *nud goes anyway
(14:47:01) nud quit (Ex-Chat)
(14:47:03) <paolo> furthermore when you fill the buffer, I suspect strange operation will happen inside the data structure
(14:47:35) <pbor> yes... but that's why I would prefer populating as we go
(14:48:13) <pbor> I am scared that populating from a list of chunks would expose performance problems
(14:48:32) <paolo> we could use the list of temporary solution and later propose a change to gtktextview to freeze it
(14:48:43) <pbor> like the view doing a whole lot of work every time we insert a block and then redo it for the next block etc
(14:49:26) <pbor> well, actually we should maybe propose a to move this whole conversion/pupulate business inside gtk itself whenit works :)
Comment 54 Jens Granseuer 2007-01-06 17:05:42 UTC
*** Bug 393433 has been marked as a duplicate of this bug. ***
Comment 55 Jens Granseuer 2007-01-06 17:06:05 UTC
*** Bug 393581 has been marked as a duplicate of this bug. ***
Comment 56 Pedro de Medeiros 2007-01-08 19:35:34 UTC
*** Bug 394254 has been marked as a duplicate of this bug. ***
Comment 57 palfrey 2007-01-12 12:00:28 UTC
*** Bug 395468 has been marked as a duplicate of this bug. ***
Comment 58 Jens Granseuer 2007-01-13 13:39:01 UTC
*** Bug 396010 has been marked as a duplicate of this bug. ***
Comment 59 Susana 2007-01-15 21:47:17 UTC
*** Bug 396732 has been marked as a duplicate of this bug. ***
Comment 60 palfrey 2007-01-17 00:31:14 UTC
*** Bug 397433 has been marked as a duplicate of this bug. ***
Comment 61 Susana 2007-01-17 13:53:45 UTC
*** Bug 397491 has been marked as a duplicate of this bug. ***
Comment 62 palfrey 2007-01-18 18:18:27 UTC
*** Bug 397953 has been marked as a duplicate of this bug. ***
Comment 63 palfrey 2007-01-22 13:44:23 UTC
*** Bug 399240 has been marked as a duplicate of this bug. ***
Comment 64 Damien Durand 2007-01-24 11:46:47 UTC
*** Bug 400062 has been marked as a duplicate of this bug. ***
Comment 65 Susana 2007-01-29 13:11:05 UTC
*** Bug 402067 has been marked as a duplicate of this bug. ***
Comment 66 Bruno Boaventura 2007-02-05 21:34:35 UTC
*** Bug 404744 has been marked as a duplicate of this bug. ***
Comment 67 Bruno Boaventura 2007-02-07 04:01:46 UTC
*** Bug 405199 has been marked as a duplicate of this bug. ***
Comment 68 Christian Kirbach 2007-02-10 21:04:53 UTC
*** Bug 406503 has been marked as a duplicate of this bug. ***
Comment 69 Susana 2007-02-13 13:30:31 UTC
*** Bug 407448 has been marked as a duplicate of this bug. ***
Comment 70 Susana 2007-02-14 12:02:01 UTC
*** Bug 407762 has been marked as a duplicate of this bug. ***
Comment 71 Damien Durand 2007-02-15 17:04:35 UTC
*** Bug 408033 has been marked as a duplicate of this bug. ***
Comment 72 Damien Durand 2007-02-21 09:28:22 UTC
*** Bug 410304 has been marked as a duplicate of this bug. ***
Comment 73 Damien Durand 2007-02-21 12:13:24 UTC
*** Bug 410326 has been marked as a duplicate of this bug. ***
Comment 74 Pedro Villavicencio 2007-02-26 18:57:38 UTC
*** Bug 412347 has been marked as a duplicate of this bug. ***
Comment 75 Pedro Villavicencio 2007-02-26 19:29:02 UTC
*** Bug 412364 has been marked as a duplicate of this bug. ***
Comment 76 Bruno Boaventura 2007-02-28 23:42:51 UTC
*** Bug 412989 has been marked as a duplicate of this bug. ***
Comment 77 Bruno Boaventura 2007-02-28 23:43:04 UTC
*** Bug 413064 has been marked as a duplicate of this bug. ***
Comment 78 Susana 2007-03-04 12:30:36 UTC
*** Bug 414497 has been marked as a duplicate of this bug. ***
Comment 79 Susana 2007-03-05 14:15:15 UTC
*** Bug 414680 has been marked as a duplicate of this bug. ***
Comment 80 Pedro Villavicencio 2007-03-05 18:17:17 UTC
*** Bug 414996 has been marked as a duplicate of this bug. ***
Comment 81 Susana 2007-03-07 12:48:27 UTC
*** Bug 415602 has been marked as a duplicate of this bug. ***
Comment 82 palfrey 2007-03-11 14:04:05 UTC
*** Bug 417071 has been marked as a duplicate of this bug. ***
Comment 83 Paolo Borelli 2007-03-11 15:01:06 UTC
*** Bug 417089 has been marked as a duplicate of this bug. ***
Comment 84 Damien Durand 2007-03-14 09:09:05 UTC
*** Bug 417951 has been marked as a duplicate of this bug. ***
Comment 85 Damien Durand 2007-03-14 09:10:30 UTC
*** Bug 418017 has been marked as a duplicate of this bug. ***
Comment 86 Damien Durand 2007-03-14 19:52:25 UTC
*** Bug 418223 has been marked as a duplicate of this bug. ***
Comment 87 Damien Durand 2007-03-15 19:35:09 UTC
*** Bug 418565 has been marked as a duplicate of this bug. ***
Comment 88 Damien Durand 2007-03-17 16:46:19 UTC
*** Bug 419372 has been marked as a duplicate of this bug. ***
Comment 89 Damien Durand 2007-03-18 10:03:12 UTC
*** Bug 419558 has been marked as a duplicate of this bug. ***
Comment 90 Damien Durand 2007-03-18 10:05:33 UTC
*** Bug 419603 has been marked as a duplicate of this bug. ***
Comment 91 Pedro Villavicencio 2007-03-21 15:11:28 UTC
*** Bug 421029 has been marked as a duplicate of this bug. ***
Comment 92 Pedro Villavicencio 2007-03-21 15:12:19 UTC
*** Bug 420827 has been marked as a duplicate of this bug. ***
Comment 93 Pedro Villavicencio 2007-03-21 23:53:09 UTC
*** Bug 421223 has been marked as a duplicate of this bug. ***
Comment 94 Pedro Villavicencio 2007-03-23 16:27:02 UTC
*** Bug 421932 has been marked as a duplicate of this bug. ***
Comment 95 Damien Durand 2007-03-24 12:24:37 UTC
*** Bug 422102 has been marked as a duplicate of this bug. ***
Comment 96 Damien Durand 2007-03-24 12:26:47 UTC
*** Bug 422128 has been marked as a duplicate of this bug. ***
Comment 97 Pedro Villavicencio 2007-03-27 02:24:57 UTC
*** Bug 423155 has been marked as a duplicate of this bug. ***
Comment 98 Damien Durand 2007-03-27 18:20:18 UTC
*** Bug 423080 has been marked as a duplicate of this bug. ***
Comment 99 Pedro Villavicencio 2007-03-31 13:29:15 UTC
*** Bug 424804 has been marked as a duplicate of this bug. ***
Comment 100 Damien Durand 2007-04-03 14:17:19 UTC
*** Bug 425565 has been marked as a duplicate of this bug. ***
Comment 101 Damien Durand 2007-04-04 11:19:21 UTC
*** Bug 426071 has been marked as a duplicate of this bug. ***
Comment 102 Pedro Villavicencio 2007-04-06 01:34:18 UTC
*** Bug 426771 has been marked as a duplicate of this bug. ***
Comment 103 palfrey 2007-04-08 11:50:03 UTC
*** Bug 427549 has been marked as a duplicate of this bug. ***
Comment 104 Pedro Villavicencio 2007-04-09 01:39:43 UTC
*** Bug 426692 has been marked as a duplicate of this bug. ***
Comment 105 Pedro Villavicencio 2007-04-09 13:14:41 UTC
*** Bug 427814 has been marked as a duplicate of this bug. ***
Comment 106 palfrey 2007-04-10 17:22:52 UTC
*** Bug 428238 has been marked as a duplicate of this bug. ***
Comment 107 Pedro Villavicencio 2007-04-15 02:54:11 UTC
*** Bug 429847 has been marked as a duplicate of this bug. ***
Comment 108 Pedro Villavicencio 2007-04-18 02:13:52 UTC
*** Bug 430575 has been marked as a duplicate of this bug. ***
Comment 109 Iestyn Pryce 2007-04-18 16:05:54 UTC
*** Bug 430988 has been marked as a duplicate of this bug. ***
Comment 110 Iestyn Pryce 2007-04-19 20:33:27 UTC
*** Bug 431411 has been marked as a duplicate of this bug. ***
Comment 111 Pedro Villavicencio 2007-04-21 01:49:25 UTC
*** Bug 431797 has been marked as a duplicate of this bug. ***
Comment 112 Paolo Borelli 2007-04-21 12:02:51 UTC
*** Bug 431952 has been marked as a duplicate of this bug. ***
Comment 113 Paolo Borelli 2007-04-21 12:03:06 UTC
*** Bug 422977 has been marked as a duplicate of this bug. ***
Comment 114 palfrey 2007-04-26 16:02:10 UTC
*** Bug 433631 has been marked as a duplicate of this bug. ***
Comment 115 Damien Durand 2007-04-29 08:18:02 UTC
*** Bug 434258 has been marked as a duplicate of this bug. ***
Comment 116 palfrey 2007-05-03 18:07:50 UTC
*** Bug 435522 has been marked as a duplicate of this bug. ***
Comment 117 Pedro Villavicencio 2007-05-04 15:00:56 UTC
*** Bug 435808 has been marked as a duplicate of this bug. ***
Comment 118 palfrey 2007-05-15 13:32:14 UTC
*** Bug 438395 has been marked as a duplicate of this bug. ***
Comment 119 Pedro Villavicencio 2007-05-18 02:09:57 UTC
*** Bug 439330 has been marked as a duplicate of this bug. ***
Comment 120 Susana 2007-05-24 12:00:54 UTC
*** Bug 440736 has been marked as a duplicate of this bug. ***
Comment 121 palfrey 2007-06-12 16:23:26 UTC
*** Bug 446618 has been marked as a duplicate of this bug. ***
Comment 122 Susana 2007-06-13 16:44:21 UTC
*** Bug 446971 has been marked as a duplicate of this bug. ***
Comment 123 Pedro Villavicencio 2007-06-15 00:37:47 UTC
*** Bug 447483 has been marked as a duplicate of this bug. ***
Comment 124 Pedro Villavicencio 2007-06-17 22:21:14 UTC
*** Bug 442340 has been marked as a duplicate of this bug. ***
Comment 125 Iestyn Pryce 2007-07-05 14:49:53 UTC
*** Bug 453705 has been marked as a duplicate of this bug. ***
Comment 126 palfrey 2007-07-06 14:51:07 UTC
*** Bug 454234 has been marked as a duplicate of this bug. ***
Comment 127 André Klapper 2007-07-10 14:10:43 UTC
*** Bug 455559 has been marked as a duplicate of this bug. ***
Comment 128 André Klapper 2007-07-10 14:14:51 UTC
ALL the duplicates of the last 4 months are from different distros with version 2.16.
I have not seen a single report about this on 2.18.
Maybe this has been fixed in the meantime.
Comment 129 Iestyn Pryce 2007-07-28 05:23:29 UTC
*** Bug 461140 has been marked as a duplicate of this bug. ***
Comment 130 Iestyn Pryce 2007-07-28 21:56:52 UTC
*** Bug 461311 has been marked as a duplicate of this bug. ***
Comment 131 Damien Durand 2007-07-29 19:59:17 UTC
*** Bug 461547 has been marked as a duplicate of this bug. ***
Comment 132 Iestyn Pryce 2007-08-01 16:46:00 UTC
*** Bug 462511 has been marked as a duplicate of this bug. ***
Comment 133 Iestyn Pryce 2007-08-06 12:06:06 UTC
*** Bug 463643 has been marked as a duplicate of this bug. ***
Comment 134 Bruno Boaventura 2007-08-08 20:19:41 UTC
*** Bug 464537 has been marked as a duplicate of this bug. ***
Comment 135 Trifon Trifonov 2007-08-12 11:52:32 UTC
In reply to comment #128)
> ALL the duplicates of the last 4 months are from different distros with version
> 2.16.
> I have not seen a single report about this on 2.18.
> Maybe this has been fixed in the meantime.
> 

I am not able to reproduce the bug in 2.18 anymore. A 150 MB text file is opened successfully.
Comment 136 palfrey 2007-09-05 17:51:38 UTC
*** Bug 467213 has been marked as a duplicate of this bug. ***
Comment 137 palfrey 2007-09-05 17:54:03 UTC
*** Bug 471012 has been marked as a duplicate of this bug. ***
Comment 138 palfrey 2007-09-05 17:56:44 UTC
*** Bug 472688 has been marked as a duplicate of this bug. ***
Comment 139 palfrey 2007-09-06 12:16:01 UTC
*** Bug 474182 has been marked as a duplicate of this bug. ***
Comment 140 André Klapper 2007-09-13 09:43:04 UTC
*** Bug 466699 has been marked as a duplicate of this bug. ***
Comment 141 André Klapper 2007-09-13 09:43:09 UTC
*** Bug 476098 has been marked as a duplicate of this bug. ***
Comment 142 Paolo Borelli 2007-09-21 19:30:45 UTC
*** Bug 474479 has been marked as a duplicate of this bug. ***
Comment 143 Paolo Borelli 2007-09-21 19:31:01 UTC
*** Bug 478391 has been marked as a duplicate of this bug. ***
Comment 144 Paolo Borelli 2007-09-22 10:06:04 UTC
*** Bug 479093 has been marked as a duplicate of this bug. ***
Comment 145 Paolo Borelli 2007-09-23 07:28:44 UTC
*** Bug 479077 has been marked as a duplicate of this bug. ***
Comment 146 Susana 2007-10-06 13:52:22 UTC
*** Bug 481829 has been marked as a duplicate of this bug. ***
Comment 147 Susana 2007-10-06 14:04:16 UTC
*** Bug 483318 has been marked as a duplicate of this bug. ***
Comment 148 André Klapper 2007-10-28 23:31:06 UTC
*** Bug 480718 has been marked as a duplicate of this bug. ***
Comment 149 André Klapper 2007-10-28 23:31:10 UTC
*** Bug 486265 has been marked as a duplicate of this bug. ***
Comment 150 André Klapper 2007-10-28 23:35:19 UTC
from bug 489350:

  • #3 <signal handler called>
  • #4 __kernel_vsyscall
  • #5 raise
    from /lib/libc.so.6
  • #6 abort
    from /lib/libc.so.6
  • #7 IA__g_logv
    at gmessages.c line 497
  • #8 IA__g_log
    at gmessages.c line 517
  • #9 IA__g_malloc
    at gmem.c line 135
  • #10 IA__g_convert_with_iconv
    at gconvert.c line 593
  • #11 IA__g_convert
    at gconvert.c line 744
  • #12 ??
  • #13 gedit_convert_to_utf8
  • #14 ??
  • #15 ??
  • #16 g_timeout_dispatch
    at gmain.c line 3422
  • #17 IA__g_main_context_dispatch
    at gmain.c line 2045
  • #18 g_main_context_iterate
    at gmain.c line 2677
  • #19 IA__g_main_loop_run
    at gmain.c line 2881
  • #20 IA__gtk_main
    at gtkmain.c line 1154
  • #21 main

Comment 151 André Klapper 2007-10-28 23:35:28 UTC
*** Bug 489350 has been marked as a duplicate of this bug. ***
Comment 152 André Klapper 2007-10-28 23:36:17 UTC
*** Bug 488927 has been marked as a duplicate of this bug. ***
Comment 153 André Klapper 2007-10-28 23:36:20 UTC
*** Bug 488926 has been marked as a duplicate of this bug. ***
Comment 154 Teppo Turtiainen 2007-12-25 12:00:52 UTC
*** Bug 500260 has been marked as a duplicate of this bug. ***
Comment 155 Teppo Turtiainen 2007-12-25 12:42:49 UTC
*** Bug 477525 has been marked as a duplicate of this bug. ***
Comment 156 Gianluca Borello 2008-02-16 14:29:08 UTC
*** Bug 516837 has been marked as a duplicate of this bug. ***
Comment 157 André Klapper 2008-09-27 20:37:47 UTC
*** Bug 516625 has been marked as a duplicate of this bug. ***
Comment 158 Paolo Borelli 2009-09-12 16:20:12 UTC
*** Bug 594338 has been marked as a duplicate of this bug. ***
Comment 159 Paolo Borelli 2010-04-04 15:05:10 UTC
This is finally fixed!

We now do encoding conversion in chunks using gio's GCharsetConverter