Codelite IDE (based on wxWidgets and Scintilla) has grey stripes

Bug #769232 reported by Thomas Krause
64
This bug affects 14 people
Affects Status Importance Assigned to Milestone
overlay-scrollbar
Fix Released
Undecided
Unassigned
overlay-scrollbar (Ubuntu)
Fix Released
Undecided
Unassigned
Natty
Fix Released
Undecided
Unassigned
Oneiric
Fix Released
Undecided
Unassigned

Bug Description

I got an upgrade on my Natty Beta 2 today that activates the Ayatana scrollbar for all non-blacklisted applications by default (#766660).

Unfortunally since then the Codelite IDE (v.2.10.0.4778) which is based on the wxWidgets toolkit draws grey stripes on the codeeditor text field when scrolling (see attached screenshot). This behavior did not occur before the update.

Since of course also some other packages have been updated I can not be 100% sure if the new scrollbar is the cause of the problems. Since I did not find any advise how to disable it for a certain application by myself I could not test this seperatly.

Revision history for this message
Thomas Krause (krause) wrote :
Revision history for this message
Andrea Cimitan (cimi) wrote :

seems more an issue of the app itself, but we could reconsider blacklisting the app until the developer (or us) will figure out which is the issue behind the broken scrolling.
which video card are you running?

Revision history for this message
Andrea Cimitan (cimi) wrote :

you could load your app without the scrollbar with `LIBOVERLAY_SCROLLBAR=0 app`

Revision history for this message
Thomas Krause (krause) wrote :

Starting it with "LIBOVERLAY_SCROLLBAR=0" removes the problem.

Revision history for this message
Thomas Krause (krause) wrote :

I'm using a Intel GMA 965

output from lshw:
-display:0
             description: VGA compatible controller
             product: Mobile GM965/GL960 Integrated Graphics Controller (primary)
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 0c
             width: 64 bits
             clock: 33MHz
             capabilities: vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:45 memory:f6e00000-f6efffff memory:e0000000-efffffff ioport:eff8(size=8)

Revision history for this message
Thomas Krause (krause) wrote :

Since the other big wxWidgets IDE Code::blocks seems to have the same problem according to the bug that was marked as a duplicate ( #768730 ) I tried to find other wxWidget based editors and check if they have the same problem.

I found pype (Python Programmers Editor) and SPE (Stani's Python Editor) and both have the exact same problem as Codelite. I could not find out if they use the same wxWidget control.

Revision history for this message
Thomas Krause (krause) wrote :

The same bug occurs also with pgadmin3 (when using the the SQL text editor for queries). pgadmin3 uses (surprise :) ) the wxWidgets toolkit

Is there any possibility to use a sort of configure file for blacklisting instead of hardcoding it into a C-Array (which should not get too large since linear search is used)?

I'm also not sure if should file seperate bugs for each program or if one is sufficient.

Here is the current list of wxWidget-programs with some kind of source code editor I tested and which did *not* work

- codelite
- Code::Blocks
- pgadmin3
- pype
- SPE

Revision history for this message
Thomas Krause (krause) wrote :

It seems like all of these projects use scintilla under the hood for the source code editor.

pgAdmin3 uses wxStyledTextCtrl (http://wiki.wxwidgets.org/WxStyledTextCtrl) and codelite uses it's another wrapper wxscintilla(http://wxcode.sourceforge.net/components/wxscintilla/index.php) which is claimed to be derived from some older version of wxStyledTextCtrl.

I try to find some non-wxWidgets Text editors using scintilla in order to find out if this is a problem of the bindings or a more deeper one lying in scintilla itself.

Thomas Krause (krause)
summary: - Codelite IDE (based on wxWidgets) has grey stripes
+ Codelite IDE (based on wxWidgets and Scintilla) has grey stripes
Revision history for this message
Thomas Krause (krause) wrote :

scite (a plain scintilla editor) uses GTK (2.0) but does not uses the new scrollbars. So I can't really test Scintilla itself. Any idea why scite does not trigger the new scroll bars?

Revision history for this message
Andrea Cimitan (cimi) wrote :

because the scrollbars are enabled using the gtkscrolledwindow, so I bet scintilla isn't

Revision history for this message
Andrea Cimitan (cimi) wrote :

In the meanwhile I've blacklisted all the apps you said apart spe and pype, they might require a per-app patch (setting LIBOVERLAY_SCROLLBAR=0 in their python load script)

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted overlay-scrollbar into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in overlay-scrollbar (Ubuntu Natty):
status: New → Fix Committed
tags: added: verification-needed
Andrea Cimitan (cimi)
Changed in ayatana-scrollbar:
status: New → Fix Released
Revision history for this message
Thomas Krause (krause) wrote :

I can confirm blacklisting codelite, codeblocks and pgadmin3 works after installing the updated package from "proposed".

Revision history for this message
Rick Spencer (rick-rickspencer3) wrote :

I verified that the new scrollbars are blacklisted, and there is no corruption.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package overlay-scrollbar - 0.1.12-0ubuntu1

---------------
overlay-scrollbar (0.1.12-0ubuntu1) natty-proposed; urgency=low

  * New upstream release.
    - Updated blacklist:
      * -deja-dup
      * -inkscape
      * -lshw-gtk
      * +vmplayer
    - some apps show grey overlay instead orange even if the window is
      focused (LP: #771511)
    - anjuta doesn't display scrollbar after resetting the layout (LP: #771563)
  * debian/control
    - Changed maintainer to ~ubuntu-desktop

overlay-scrollbar (0.1.10-0ubuntu1) natty-proposed; urgency=low

  * New upstream release.
    - Updated blacklist:
      * vmware (LP: #770625)
      * gnucash (LP: #770304)
      * pgadmin3, codeblocks and codelite (LP: #769232)
    - liferea and cardapio requires
      GDK_POINTER_MOTION_MASK (LP: #769217) (LP: #769460)
    - liboverlay doesn't work in detached tabs (LP: #769427)
    - Scrollbar's slider appears away from the mouse (LP: #763707)
 -- Ken VanDine <email address hidden> Wed, 27 Apr 2011 10:23:24 -0400

Changed in overlay-scrollbar (Ubuntu Natty):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to oneiric as well.

Changed in overlay-scrollbar (Ubuntu Oneiric):
status: New → Fix Released
Revision history for this message
James Tunnicliffe (dooferlad) wrote :

I see this problem in three wxPython applications: WinPDB, SPE and Editra, so it is beginning to sound like this impacts all wxWidgets applications that are using the same editor widgets as those programs.

Not sure if it is possible to auto blacklist all applications depending on their apt dependencies, but by the sounds of it, anything depending on wxWidgets probably should be set to use the old scroll bars.

Revision history for this message
Kruptein (darragh-ssa) wrote :

Okay I'm the editor of Deditor an other wxPython and scintilla based text-editor and I also notice the grey-stripes, should I add the LIBOVERLAY_SCROLLBAR=0 app-wise or will it be auto-set in oneiric?

Revision history for this message
Nicolás Abel Carbone (nicocarbone) wrote :

@Kruptein: On my setup, Code-Blocks IDE is working fine with overlay scrollbars in oneiric, no more grey-stripes. I haven't tried other wxWidgets app, but I think the problem is gone in oneiric.

Revision history for this message
Kruptein (darragh-ssa) wrote :

@Nicolás: I think that Code-Blocks IDE is just added to a certain blacklist as mentioned above, but since my editor is not that widely used as code-blocks it isn't blacklisted (yet)

thanks anyway :)

Revision history for this message
Nicolás Abel Carbone (nicocarbone) wrote :

@Kruptein: I know, Code-Blocks was added to the blacklist in Natty. Then, it worked ok using the regular scroolbars. But now, in Oneiric it is using the new overlay scrollbars (so, it is not balcklisted), and works fine.

Have you tried your editor in Oneiric? Is Deditor packaged in some PPA? If so, I can test it for you in Oneiric.

Revision history for this message
Kruptein (darragh-ssa) wrote :

well I would be very happy if you tried it out for me :)

You can download a deb file from: https://launchpad.net/deditor
and a ppa: ppa:darragh-ssa/deditor

Revision history for this message
Nicolás Abel Carbone (nicocarbone) wrote :

@Kruptein: I downloaded the .deb and run it. The overlay scrollbars are working perfectly!

Revision history for this message
Kruptein (darragh-ssa) wrote :

okay thanks a lot :) !

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.