Author Topic: CRASH CB with a text file  (Read 5865 times)

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
CRASH CB with a text file
« on: March 21, 2012, 11:00:52 am »
from http://forums.codeblocks.org/index.php?PHPSESSID=tofb9t8sn4c8i7a670rkq2a4f5&topic=1022.msg108685#msg108685
I get the file 'All_codeblocks_fr_7900.7z'
Then I load the file 'All_codeblocks.po' (1346448 bytes) in the editor of 'C::B' (or any file of the same size)
This file is encoded in UTF-8 with 'EOL' = 'LF'
The editor uses 'EOL' = 'CRLF'.
if I backup after a change, 'C::B' crashes with the following error message:

I repeated this operation several times, it seems that the file size is the reason for the crash.
CB-13483, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.1
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: CRASH CB with a text file
« Reply #1 on: March 21, 2012, 02:16:21 pm »
Try to uncheck "Settings -> Editor -> Margins and caret -> Use changebar".

I know, that C:B can crash with very many changes tracked for the changebar, but i did not find the time to look into it deeper.

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: CRASH CB with a text file
« Reply #2 on: March 21, 2012, 02:22:43 pm »
yes, it works well !!!!
it is not intuitive.
is there a limit on file size ?
Well thank you Jens
CB-13483, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.1
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: CRASH CB with a text file
« Reply #3 on: March 21, 2012, 03:08:32 pm »
yes, it works well !!!!
it is not intuitive.
is there a limit on file size ?
Well thank you Jens

No limit in file size, but the changebar implementation seems to run out of memory for too many changes.
As written before, I digged not into it deeper, but will do, if I find the time.
It needs about 50k changed lines to crash, and that is really large.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CRASH CB with a text file
« Reply #4 on: March 22, 2012, 02:44:51 pm »
As written before, I digged not into it deeper, but will do, if I find the time.
Not sure, if you need this. On Windows, with recent wxScintilla (3.0.4) of my working copy it works just fine. I couldn't make is crash the ways as described, even with massive changes. Maybe it was a bug in the scintilla version we are using currently.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: CRASH CB with a text file
« Reply #5 on: March 22, 2012, 02:51:06 pm »
What should I do to use wxScintilla version (3.0.4)  on 'C::B r7900' ?
CB-13483, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.1
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CRASH CB with a text file
« Reply #6 on: March 22, 2012, 02:54:58 pm »
Wait for Morten to update it :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CRASH CB with a text file
« Reply #7 on: March 22, 2012, 08:32:05 pm »
Wait for Morten to update it :)
I won't, because it breaks the debugger branch. The PNG images you are using for BP markers will not work in combination with scintilla default ones, like bookmarks. Everything else is fine.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CRASH CB with a text file
« Reply #8 on: March 22, 2012, 10:31:18 pm »
Grrr, do we have to migrate to all png solution?
Have you reported this? Do they intend to fix it?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CRASH CB with a text file
« Reply #9 on: March 23, 2012, 08:05:05 am »
Grrr, do we have to migrate to all png solution?
Best would be if we stick with the default ones.

Have you reported this? Do they intend to fix it?
Yes, but as I didn't find the time to produce a minimal sample to reproduce and it works in SciTE the bug was closed immediately. So it may also be an issue in the wx part of wxScintilla. Then its our duty.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CRASH CB with a text file
« Reply #10 on: March 23, 2012, 09:03:06 am »
Best would be if we stick with the default ones.
I like the png's, they look more modern.

Yes, but as I didn't find the time to produce a minimal sample to reproduce and it works in SciTE the bug was closed immediately. So it may also be an issue in the wx part of wxScintilla. Then its our duty.
Can you give me a patch, so I can test it?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]