News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Source editor window corrupts text when scrolling

Started by DivideByZero, December 06, 2010, 02:44:48 PM

Previous topic - Next topic

DivideByZero

With both CB 8.xx and 10.05, my source editor pane corrupts text frequently during scrolling.

This results in an editor pane that looks like a corrupted image, with half lines of text being repeated, etc...

Clicking the mouse in the editor pane, to double click a word, or drag-select some text, or similar action, usually causes a refresh which removes the corruption.

Research on the internet did suggest that there was a similar problem with wxWidgets at some point, but I'm reasonably sure that this didn't start happening until after I installed a new graphics card (6870).

Updating to 10.05 did not resolve the issue, neither did reinstalling the graphics drivers (Catalyst 10.10b Hotfix). I'm using a custom syntax highlighting color scheme, and Consolas (at 16 or 18 pt, IIRC), in case it matters.

Have not tested the PCs RAM, going to do that tonight, but I can only reproduce the problem with CB.

Any suggestions appreciated...

oBFusCATed

Try Scite, it uses the same (almost) component for the editor.
Another thing you could try is CodeLite, I think it also uses wxScintilla for its editor.
(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!]

Jenna

Minimizing and resuming should fix it too.
But that's of course just a workaround, not a fix.

If I understand correctly, the issue starts after installing a new graphics card.

Seems to be an ATI/AMD problem: see here: http://www.overclock.net/ati/850691-official-amd-radeon-hd-6850-6870-a-130.html#post11460642 .
And after reading more of the thread, I think either the HD6870 or the drivers are not really stable.

If that's the case, we will (most likely) not be able to (easily) fix this.

DivideByZero

Thanks, folks.

The 6870 is so new that Catalyst 10.11 doesn't even support it (I tired that, too :D).

I'll see what 10.12 brings, it does look like it's up to AMD to sort out.

At least I can probably skip testing my RAM...

Cheers!

DivideByZero

Couldn't reproduce with Catalyst 10.12, problem appears sorted.

gagsays

i recently update to ubuntu 11.04 and i also started having this 'scrolling-text-corruption' problem. i am using nvidia drivers 270.41.06
if somebody has found any solution to this, please share..
thanks

terrinator

I too am seeing this problem.  It started when I upgraded Ubuntu from 10.10 to 11.04.  I have tried removing and then reinstalling codeblocks and the problem remains.

oBFusCATed

Talk to the ubuntu devs, this seems like a driver bug.
Do you use compositing?

I'm on gentoo and see no problems (nvidia 270.41.03)
(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!]

terrinator

I am running Ubuntu 11.04 in a vm on a macbook pro.  When I was running codeblock in 10.10 I did not have this problem.

wspindler

I just had the same problem with corrupted lines in the Code::Blocks editor after updating from Ubuntu 10.10 to Ubuntu 11.04 and changing from an ATI to an NVidia graphics card. I disabled Unity unintentionally and had to reset it with

  unity --reset

from the command line. Although I do not know why, but this also made the editor problem disappear.

gagsays

Quote from: oBFusCATed on May 02, 2011, 09:22:11 PM
Talk to the ubuntu devs, this seems like a driver bug.
Do you use compositing?

I'm on gentoo and see no problems (nvidia 270.41.03)

yes i am, i guess it is required by Docky and other compiz eye candies.
but then i have been using composting when i was at 10.10 and previously i never had any problem.

wspindler

Composite was on before resetting unity and it is still enabled after the reset. Now the bug disappeared, i.e. in my case it did not influence the bug.
BTW: My NVidia driver version also is 270.41.06.

terrinator

For me running in a vm on a MacBook Pro this does not seem to be a unity issue in Ubuntu 11.04.  I have tried all display modes (ie. Ubuntu (unity), Ubuntu Classic, etc) and I am still seeing the issue.  I had high hopes that Ubuntu Classic would resolve the issue but it did not.

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

terrinator

SciTE works.  No scrolling problems in the editor.  The display mode I am currently using in Ubuntu 11.04 is Ubuntu Classic.