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 598814 - text.getText(0, -1) triggers assertion in vteaccess.c
text.getText(0, -1) triggers assertion in vteaccess.c
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
unspecified
Other All
: High critical
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-10-17 23:53 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2009-10-22 18:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed fix (878 bytes, patch)
2009-10-17 23:54 UTC, Joanmarie Diggs (IRC: joanie)
none Details | Review

Description Joanmarie Diggs (IRC: joanie) 2009-10-17 23:53:29 UTC
Steps to reproduce:

1. Launch VTE and Accerciser
2. In Accerciser select the accessible object of ROLE_TERMINAL
3. In Accerciser's iPython console type:

    text = acc.queryText()
    text.getText(0, -1)

Expected results: The text displayed in the terminal would be returned.

Actual results: VTE dumps core with the following assertion:

Vte:ERROR:vteaccess.c:946:vte_terminal_accessible_get_text: assertion failed: ((start_offset >= 0) && (end_offset >= -1))
Comment 1 Joanmarie Diggs (IRC: joanie) 2009-10-17 23:54:44 UTC
Created attachment 145705 [details] [review]
proposed fix

This solves it for me.
Comment 2 Behdad Esfahbod 2009-10-22 18:10:18 UTC
Committed.  Thanks.

commit 3e523aa2db487828a332703461e84d6a2cf4ef04
Author: Behdad Esfahbod <behdad@behdad.org>
Date:   Thu Oct 22 14:07:51 2009 -0400

    Bug 598814 - text.getText(0, -1) triggers assertion in vteaccess.c