[Gambas-user] Reading pen pressure from wacom tablets

Benoît Minisini gambas at ...1...
Thu Aug 16 14:07:11 CEST 2012


Le 16/08/2012 09:06, Ricardo Díaz Martín a écrit :
> Ok, this is the information I got:
>
> - When I said crash in the IDE too, it means after the crash in the
> project, if you still moving the pen in the tablet, the IDE got the crash
> with no information (IDE disappear)

If the IDE segfaults too, then this crash may be a bug in Qt itself...

> - With gtk+ components the tablet is not detected. Tablet is detected as
> normal mouse. No crash in the project. No crash in the IDE.

How do you know that the tablet is not detected? Did you any X11 stuff 
to configure your tablet?

> - The event Move, Down, Up are right fired. Work as expected with the pen
> and with the mouse.
> - If you set Tracking property to true in the drawing area control you you
> got the MouseDown event and MouseUp event some times is fired and some
> times no.

Mmm...

> - I got the same crash by compiling gambas with no qt4 optimizations
>
> gdb with gambas3 qt4 no optimizations compiled was:
> Starting program: /usr/local/bin/gbx3
> [Depuración de hilo usando libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> [Nuevo Thread 0x7fffea237700 (LWP 20134)]
> [Nuevo Thread 0x7fffe9a36700 (LWP 20135)]
> [Nuevo Thread 0x7fffe37c4700 (LWP 20136)]
>
> Program received signal SIGSEGV, Segmentation fault.
> QBasicAtomicInt::ref (this=0x18700000131) at
> /usr/include/qt4/QtCore/qatomic_x86_64.h:121
> 121                 : "memory");
>
>
> gdb backtrace was:
> #0  QBasicAtomicInt::ref (this=0x18700000131) at
> /usr/include/qt4/QtCore/qatomic_x86_64.h:121
> #1  0x00007ffff5da1184 in QString (other=..., this=0x7fffffffcd10) at
> /usr/include/qt4/QtCore/qstring.h:726
> #2  text (this=0x7fffffffd2b0) at /usr/include/qt4/QtGui/qevent.h:236
> #3  CWidget::eventFilter (this=0x7ffff60082a0, widget=0x986050,
> event=0x7fffffffd2b0) at CWidget.cpp:2822

---> That lines means the crash occurs while receiving a *keyboard* 
event. Does it make any sense to receive a keyboard event while using a pen?

We must find other Gambas users having a tablet to help us!

-- 
Benoît Minisini




More information about the User mailing list