After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 311846 - Text rendering issues in CVS HEAD
Text rendering issues in CVS HEAD
Status: VERIFIED DUPLICATE of bug 312075
Product: anjuta
Classification: Applications
Component: core application
CVS HEAD
Other All
: High blocker
: ---
Assigned To: Anjuta maintainers
Anjuta maintainers
: 312051 312326 312863 312882 313064 322508 330360 (view as bug list)
Depends on: 312075
Blocks:
 
 
Reported: 2005-07-28 10:37 UTC by Baishampayan Ghose
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The screenshot demonstrates the rendering bug. (51.54 KB, image/png)
2005-07-28 10:38 UTC, Baishampayan Ghose
Details

Description Baishampayan Ghose 2005-07-28 10:37:33 UTC
Please describe the problem:
Anjuta has a major text rendering issue in the editor. It's impossible to type
something as the scrollbar and the text cursor keep on moving right and left
arbitrarily.
It's also not possible to view an already created file as the text gets mangles
when you scroll up and down. Most probably this is a Scintilla and Pango CVS
HEAD issue. The scintilla bug tracker has no such bug filed as of this report.
I am attaching a screenshot to demonstrate the bug.

Steps to reproduce:
1. Open any file in Anjuta
2. Scroll up and down a bit


Actual results:
The text is garbled

Expected results:
The text should be rendered normally

Does this happen every time?
Yes

Other information:
This bug is most probably related to Scintilla and Pango 2.8
Comment 1 Baishampayan Ghose 2005-07-28 10:38:59 UTC
Created attachment 49873 [details]
The screenshot demonstrates the rendering bug.
Comment 2 Baishampayan Ghose 2005-07-28 10:50:45 UTC
> Other information:
> This bug is most probably related to Scintilla and Pango 2.8
                                                    ^^^^^^^^^^^^
It's Pango 1.8 not 2.8 ... a typo!
Comment 3 Naba Kumar 2005-08-02 09:25:52 UTC
*** Bug 312326 has been marked as a duplicate of this bug. ***
Comment 4 Naba Kumar 2005-08-02 10:42:56 UTC
*** Bug 312051 has been marked as a duplicate of this bug. ***
Comment 5 Naba Kumar 2005-08-09 05:56:07 UTC
*** Bug 312863 has been marked as a duplicate of this bug. ***
Comment 6 Naba Kumar 2005-08-09 05:56:35 UTC
*** Bug 312882 has been marked as a duplicate of this bug. ***
Comment 7 Naba Kumar 2005-08-09 05:59:26 UTC
Reopening the bug until a concrete resolution is reached in the pango bugreport.
Comment 8 Naba Kumar 2005-08-09 06:01:23 UTC

*** This bug has been marked as a duplicate of 312075 ***
Comment 9 tpgww 2005-08-10 00:03:26 UTC
I managed to get 1.2.3 usable again (though the text rendering is not as good as
it was) by dropping in a lot of replacement files from the latest (1.6.5)
scintilla, with some consequential changes, as follows:

REPLACEMENTS:

all the files in /scintilla, EXCEPT
KeyWords.cxx
test-scintilla.cxx
(this means that a lot of the new Lex*.cxx do not get built)

/scintilla/include
Converter.h
KeyWords.h
Platform.h
PropSet.h
SciLexer.h
Scintilla.h
Scintilla.iface
ScintillaWidget.h
SString.h

CONSEQUENTIALS:

--- aneditor-original.cxx	2004-03-31 14:52:44.000000000 +1000
+++ aneditor.cxx	2005-08-10 09:26:53.000000000 +1000
@@ -556,8 +556,10 @@
 	int lineEnd = SendEditor(SCI_GETLINEENDPOSITION, line);
 	int len = lineEnd - lineStart + 1;
-	char *text_buffer = SString::StringAllocate (len);
+//	char *text_buffer = SString::StringAllocate (len);
+	char *text_buffer = SContainer::StringAllocate (len);
 	GetRange(wEditor, lineStart, lineEnd, text_buffer);
 	text_buffer[len] = '\0';
-	text.attach(text_buffer, len);
+//	text.attach(text_buffer, len);
+	text = text_buffer;
 }
 
@@ -1160,9 +1162,11 @@
 	int doclen = LengthDocument();
 	int end = (doclen - pos >= radius ? pos + radius : doclen);
-	char *chunk = SString::StringAllocate(2 * radius);
+//	char *chunk = SString::StringAllocate(2 * radius);
+	char *chunk = SContainer::StringAllocate(2 * radius);
 	GetRange(start, end, chunk, false);
 	chunk[2 * radius] = '\0';
 	SString region;
-	region.attach(chunk);
+//	region.attach(chunk);
+	region = chunk;
 	return FindWordInRegion(buffer, maxlength, region, pos - start);
 }

THESE ARE UNRELATED WARNING-FIXES:

--- anjuta-original.c	2005-04-24 23:27:50.000000000 +1000
+++ anjuta.c	2005-08-09 21:08:36.000000000 +1000
@@ -582,9 +582,10 @@
 	gchar *fn;
 	TextEditor *te;
-	guint *explorer_height;
+//	guint *explorer_height;
+	guint explorer_height;
 
-	g_return_val_if_fail (fname, NULL);
+	g_return_val_if_fail (fname != NULL, 0);
 	fn = anjuta_get_full_filename (fname);
-	g_return_val_if_fail (fname != NULL, NULL);
+//	g_return_val_if_fail (fname != NULL, NULL);
 
 	te = app->explorer_view;
@@ -621,5 +622,5 @@
 			    and locat to to top of the explorer view */
 			scintilla_send_message (SCINTILLA (te->widgets.editor), SCI_GOTOLINE, 
-				linenum_text_editor_to_scintilla (lineno)+ explorer_height - 1, 0);
+				(linenum_text_editor_to_scintilla (lineno) + explorer_height - 1), 0);
 			scintilla_send_message (SCINTILLA (te->widgets.editor), SCI_GOTOLINE, 
 				linenum_text_editor_to_scintilla (lineno), 0);

Comment 10 Naba Kumar 2005-08-10 16:49:36 UTC
*** Bug 313064 has been marked as a duplicate of this bug. ***
Comment 11 Drew Vogel 2005-11-27 01:50:13 UTC
*** Bug 322508 has been marked as a duplicate of this bug. ***
Comment 12 Ian Carvalho 2005-12-12 04:12:49 UTC
I have the same problem when upgrading to pango-1.8.2.

When I de-installed pango-1.8.2 and re-installed the older version (pango-1.8.1)
the display problem disappears.  I am using precompiled binaries from the
FreeRockGnome project for both.

Comment 13 Naba Kumar 2006-02-27 09:33:40 UTC
*** Bug 330360 has been marked as a duplicate of this bug. ***
Comment 14 Diego 2006-04-04 14:35:27 UTC
hey i have the same problem but i have pango-1.10.1 what should i do? i have already tried reinstalling.
Comment 15 Naba Kumar 2006-12-04 09:58:24 UTC
Closing all fixed bugs. Sorry for the mass update :( ...