crashes immediately on pressing a key with python3.12 (Ubuntu Noble 24.04)

Bug #2063041 reported by theofficialgman
100
This bug affects 22 people
Affects Status Importance Assigned to Milestone
onboard (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

A number of functions were removed after their deprecation period ended in python3.12 from python3.11.
These removals cause onboard to crash immediately when pressing a key.

Revision history for this message
theofficialgman (theofficialgman) wrote (last edit ):

to fix this, I first pulled the latest debian changes, then applied this additional patch https://github.com/Azkali/onboard-keyman/commit/ac8633670a5467e7b7364651e77be2c94f7e3104.patch and also set LC_ALL=en_US.UTF-8 in the debian rules for the tests so that the tests would pass.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in onboard (Ubuntu):
status: New → Confirmed
Revision history for this message
Steve Bell (comfortscs54) wrote :

Ubuntu 24.04 internet upgrade from 23.10 Onboard worked prior to the upgrade. Afterward the keyboard would display but instantly vanish when any key was pressed, followed by a request to submit a report, which I did. It fails in every attempt to use the keyboard.

Revision history for this message
qhaz (qhaz) wrote :

Confirm problems with Onboard crashing after recent distro upgrade.
Specifically, the Onboard appears to start up okay and run. However, when I attempt to interact with it i.e., move my mouse cursor onto the virtual keyboard, it immediately crashes and disappears completely. This problem has only just become apparent after a recent distribution upgrade to -

Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble

on OS

cat /proc/version
Linux version 6.8.0.31-generic (buildd@lcy02-amd64-080) (x86_64-linux-gnu-gcc-13 (Ubuntu 13 ld (GNU Binutils for Ubuntu) 2.42) #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2

using application Onboard version;

Onboard (Simple On-Screen Keyboard), application details are as follows;
Version: 1.4.1-5-ubuntu6
Size: 1959 kB

Revision history for this message
rostam (gnulinux666) wrote :

This program is especially necessary for disabled people and unfortunately the problem has not been solved yet !

Revision history for this message
bpl (benoit-planquelle) wrote :

And gnome original visual keyboard isn't clearly as good as onboard, for daily usage onboard is the best and vital.

Revision history for this message
bpl (benoit-planquelle) wrote :

https://bugs.launchpad.net/onboard/+bug/2064835/comments/2
Chris Cooper (superduper2024) wrote on 2024-05-08: Re: [Bug 2064835] Re: Onboard not working #2

Hello Mohamed,

Yes, it works. Well done.
Thank you very much. I rely on Onboard a lot.
Thanks again.

On 07/05/2024 19:21, mohamed wrote:
> Hello
>
> i just managed to solve the problem in Arch linux plasma KDE using
> onboard preferences, in keyboard i changed input even source to GTK, now
> onboard don't crash, i hope this help :)
>

Revision history for this message
Chris Cooper (superduper2024) wrote : Re: [Bug 2063041] Re: crashes immediately on pressing a key with python3.12 (Ubuntu Noble 24.04)

Thank you for your reply. I am using KDE and Onboard works fine in X11
but it always fails in Wayland. Thanks again.

On 06/06/2024 13:37, rostam wrote:
> gnome original visual keyboard does not have function key and not
> working on all programs , for arch there is a patch so I checked on
> virtual machine arch with gnome classic desktop and onboard worked but
> for debian distribution , ubuntu 24.04 doesn't work .
>

Revision history for this message
rostam (gnulinux666) wrote :

Hello Chris , Thank you . It partly works on xorg but "suggestion" don't work yet .

Revision history for this message
AdrianChallinor (adrian-challinor) wrote :

Using XUbuntu 24.4. Tried rebuilding onboard with code from repository and patch above. This was not successful. So for me the suggestion did nit work.

Revision history for this message
sudodus (nio-wiklund) wrote :

The following tweaks work for me in Lubuntu 24.04 LTS and Lubuntu Oracular.

sudo apt update # but not necessary to do any upgrade
sudo apt install onboard zenity

After installation 'onboard' fails with segfault, but it works to start 'onboard-settings' (via a terminal window or via the menu).

In the graphical user interface:

Select ‘Keyboard’ → ‘Advanced’ → ‘Input Options’

Then you can change “Input event source” from Xinput to GTK.

After these tweaks 'onboard-settings' can store and use the setting GTK and 'onboard' works in Lubuntu.

Revision history for this message
Johan Sarmiento (nahojshi) wrote :

The suggested tweak works on my machine. (Kubuntu24.04, KDEplasma 5.27.11)
GTK input works, but Xinput doesnt.

Revision history for this message
dr.n (dr.n) wrote (last edit ):

See also https://bugs.launchpad.net/onboard/+bug/2068851

I have now launched a fork in github: https://github.com/dr-ni/onboard.git since this launchpad repo seems to be dead.
If you are a developer and want to help to solve some of these problems you are very welcome to join it. We should resuscitate it again...

The deprecated warnings of the origin v4.2.1 build can be found in https://github.com/user-attachments/files/15933234/build_log.txt

Revision history for this message
dr.n (dr.n) wrote (last edit ):

Some more infos:

After replacement of all deprecated gdk calls https://github.com/dr-ni/onboard/commit/f8978694fe90703757208c4470dfd3fcf30c28d9
The behaviour is still the same. So I think there is another problem.

I also can confirm the problem with auto word suggestion on ubuntu mate 24.04:

With the proposed gtk setting (not XInput) the word suggestion is now broken.

Revision history for this message
AdrianChallinor (adrian-challinor) wrote :

I am afraid I gave up. I revert the PC in question back to Ubuntu 23.10 (where it will remain for the foreseeable future). Now I have Onboard back and a happy user typing away in greek.,

Revision history for this message
dr.n (dr.n) wrote (last edit ):

Again some news:

> With the proposed gtk setting (not XInput) the word suggestion is now broken.

I also got this problem resolveed by changing the setting 'key-stroke-generator' to 'AT-SPI'

Here my new v1.4.2 (XInput crash is fixed)
https://github.com/dr-ni/onboard.git

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

Other bug subscribers

Remote bug watches

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