Author Topic: Source editor window corrupts text when scrolling  (Read 11256 times)

Offline DivideByZero

  • Single posting newcomer
  • *
  • Posts: 3
Source editor window corrupts text when scrolling
« on: December 06, 2010, 02:44:48 pm »
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...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Source editor window corrupts text when scrolling
« Reply #1 on: December 06, 2010, 02:59:11 pm »
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!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Source editor window corrupts text when scrolling
« Reply #2 on: December 06, 2010, 03:05:13 pm »
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.

Offline DivideByZero

  • Single posting newcomer
  • *
  • Posts: 3
Re: Source editor window corrupts text when scrolling
« Reply #3 on: December 06, 2010, 03:54:21 pm »
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!

Offline DivideByZero

  • Single posting newcomer
  • *
  • Posts: 3
Re: Source editor window corrupts text when scrolling
« Reply #4 on: December 15, 2010, 09:42:33 am »
Couldn't reproduce with Catalyst 10.12, problem appears sorted.

Offline gagsays

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Source editor window corrupts text when scrolling
« Reply #5 on: May 02, 2011, 09:30:39 am »
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

Offline terrinator

  • Single posting newcomer
  • *
  • Posts: 5
Re: Source editor window corrupts text when scrolling
« Reply #6 on: May 02, 2011, 09:02:57 pm »
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Source editor window corrupts text when scrolling
« Reply #7 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)
(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 terrinator

  • Single posting newcomer
  • *
  • Posts: 5
Re: Source editor window corrupts text when scrolling
« Reply #8 on: May 02, 2011, 10:29:08 pm »
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.

Offline wspindler

  • Single posting newcomer
  • *
  • Posts: 2
Re: Source editor window corrupts text when scrolling
« Reply #9 on: May 03, 2011, 12:07:29 pm »
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.

Offline gagsays

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Source editor window corrupts text when scrolling
« Reply #10 on: May 03, 2011, 12:10:59 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.

Offline wspindler

  • Single posting newcomer
  • *
  • Posts: 2
Re: Source editor window corrupts text when scrolling
« Reply #11 on: May 03, 2011, 12:23:36 pm »
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.

Offline terrinator

  • Single posting newcomer
  • *
  • Posts: 5
Re: Source editor window corrupts text when scrolling
« Reply #12 on: May 03, 2011, 04:41:08 pm »
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Source editor window corrupts text when scrolling
« Reply #13 on: May 03, 2011, 05:39:29 pm »
Does Scite work correctly?
(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 terrinator

  • Single posting newcomer
  • *
  • Posts: 5
Re: Source editor window corrupts text when scrolling
« Reply #14 on: May 03, 2011, 06:22:11 pm »
SciTE works.  No scrolling problems in the editor.  The display mode I am currently using in Ubuntu 11.04 is Ubuntu Classic.