News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

CRASH CB with a text file

Started by LETARTARE, March 21, 2012, 11:00:52 AM

Previous topic - Next topic

LETARTARE

from http://forums.next.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-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

Jenna

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.

LETARTARE

yes, it works well !!!!
it is not intuitive.
is there a limit on file size ?
Well thank you Jens
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

Jenna

Quote from: LETARTARE 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

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.

MortenMacFly

Quote from: jens on March 21, 2012, 03:08:32 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

LETARTARE

What should I do to use wxScintilla version (3.0.4)  on 'C::B r7900' ?
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

oBFusCATed

(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!]

MortenMacFly

Quote from: oBFusCATed on March 22, 2012, 02:54:58 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

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!]

MortenMacFly

Quote from: oBFusCATed on March 22, 2012, 10:31:18 PM
Grrr, do we have to migrate to all png solution?
Best would be if we stick with the default ones.

Quote from: oBFusCATed on March 22, 2012, 10:31:18 PM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Quote from: MortenMacFly on March 23, 2012, 08:05:05 AM
Best would be if we stick with the default ones.
I like the png's, they look more modern.

Quote from: MortenMacFly on March 23, 2012, 08:05:05 AM
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!]