Bug 28114 - Fatal signal 6 (SIGABRT) if Keyboard.CreateKeyFromXml is overriden
Summary: Fatal signal 6 (SIGABRT) if Keyboard.CreateKeyFromXml is overriden
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.20.0
Hardware: PC Windows
: Normal normal
Target Milestone: 5.1.5 (C5SR3)
Assignee: Jonathan Pryor
Depends on:
Reported: 2015-03-17 11:41 UTC by Antao Almada
Modified: 2015-07-14 14:54 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Antao Almada 2015-03-17 11:41:39 UTC
When developing a soft keyboard, if Keyboard.CreateKeyFromXml is overriden, the app crashes with the message:

[libc] Fatal signal 6 (SIGABRT) at 0x00005660 (code=-6), thread 22112 (rinSoftKeyboard)

To reproduce:

1. Override the method calling the base implementation:

protected override Key CreateKeyFromXml (Resources res, Row parent, int x, int y, XmlReader parser)
    return base.CreateKeyFromXml (res, parent, x, y, parser);

A full project is available at https://bitbucket.org/lusovu/xamarinsoftkeyboard/

The method override is in the LatinKeyboard.cs file.

2. Compile and upload the keyboard to the device.

3. Tap on a edit text box and set the keyboard as the current IME. (The project includes a test activity making it easier to debug).

4. Keyboard crashes...
Comment 1 Jonathan Pryor 2015-04-14 16:15:27 UTC
Fixed in monodroid/1c8cce1d.
Comment 2 Jonathan Pryor 2015-06-05 15:04:51 UTC
*** Bug 30843 has been marked as a duplicate of this bug. ***
Comment 3 Jonathan Pryor 2015-07-07 14:03:01 UTC
Fixed in monodroid-5.1-series/58c4b158.
Comment 4 Mohit Kheterpal 2015-07-14 14:54:06 UTC
I am able to reproduce this issue with stable build of C5SR2 and I am also observe that this issue is working fine with C5SR3 build of XA and XVS 3.11.774.

Hence closing this issue.