[Gambas-user] Project crash due Textarea selection

pflora at libero.it pflora at libero.it
Tue Oct 6 19:23:51 CEST 2020


> The lines are zero-indexed.

If I put textarea.line = 0 program crashes immediately so I think Line is one-indexed.


When it crashes with fast clicks I see the following messages in the IDE:
(shm_hmi:3828): Gtk-CRITICAL **: 19:11:08.750: _gtk_text_line_char_locate: assertion 'char_offset >= 0' failed

(shm_hmi:3828): Gtk-ERROR **: 19:11:08.750: Char offset -1 is off the end of the line

It seems the problem is in locating the start of selected text.

With fast clicks some lines are printed without CR-LF so 2 lines are melted together.

With static text pasted in the textarea there are no problems with fast clicks.

As I wrote before this is not a real problem for me, just let you know this behaviour.

Thank you for your support.

My system:

[System]
Gambas=3.15.90
OperatingSystem=Linux
Kernel=5.0.0-32-generic
Architecture=x86_64
Distribution=Linux Mint 19.3 Tricia
Desktop=XFCE
Theme=windows
Language=it_IT.UTF-8
Memory=1844M

[Libraries]
Cairo=libcairo.so.2.11510.0
Curl=libcurl.so.4.5.0
DBus=libdbus-1.so.3.19.4
GDK2=libgdk-x11-2.0.so.0.2400.32
GDK3=libgdk-3.so.0.2200.30
GStreamer=libgstreamer-1.0.so.0.1405.0
GTK+2=libgtk-x11-2.0.so.0.2400.32
GTK+3=libgtk-3.so.0.2200.30
OpenGL=libGL.so.1.0.0
Poppler=libpoppler.so.73.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.9.5
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
CLUTTER_BACKEND=x11
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/<user>/1000/bus
DESKTOP_SESSION=xfce
DISPLAY=:0.0
GB_GUI=gb.qt4
GDMSESSION=xfce
GDM_LANG=it
GTK_MODULES=gail:atk-bridge
HOME=<home>
LANG=it_IT.UTF-8
LANGUAGE=it_IT.UTF-8
LOGNAME=<user>
PANEL_GDK_CORE_DEVICE_EVENTS=0
PATH=<home>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=<home>
QT_ACCESSIBILITY=1
QT_LOGGING_RULES=*.debug=false
QT_QPA_PLATFORMTHEME=qt5ct
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1082,unix/<hostname>:/tmp/.ICE-unix/1082
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=1168
SSH_AUTH_SOCK=/tmp/ssh-9XeY7GgTefxc/agent.1082
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-xfce:/etc/xdg:/etc/xdg
XDG_CURRENT_DESKTOP=XFCE
XDG_DATA_DIRS=/usr/share/xfce4:<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/usr/share
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
XDG_MENU_PREFIX=xfce-
XDG_RUNTIME_DIR=/run/<user>/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_DESKTOP=xfce
XDG_SESSION_ID=c1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7


More information about the User mailing list