Bug 25899 - TextBox crashes app when typing using Japanese input source
Summary: TextBox crashes app when typing using Japanese input source
Status: CONFIRMED
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: unspecified
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Community
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-01-10 05:48 UTC by Paul Stevenson
Modified: 2017-09-01 11:56 UTC (History)
4 users (show)

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


Attachments
simple windows form solution which has the issue (52.14 KB, application/zip)
2015-01-10 05:48 UTC, Paul Stevenson
Details


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 for Bug 25899 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Paul Stevenson 2015-01-10 05:48:45 UTC
Created attachment 9312 [details]
simple windows form solution which has the issue

Build an app with a text box, in Visual Studio (on a PC)... at least that's what I did.

Open it in Tamarin Studio on a Mac. (Mac Air running Yosemite in my case).
Run it.

works fine in English... but if you change the input source to Japanese (hiragana)... it crashes as soon as you type anything.

error message dump below... but it looks to me that HIToolkit is getting a NSNotFound in 64bit... (i.e. 64bit MAXINT). and trying to convert it to 32bit... (which obviously can't be done)... so it throws an error.

dump:
2015-01-10 19:46:05.576 mono[6576:470284] Warning - conversion from 64 bit to 32 bit integral value requested within NSPortCoder, but the 64 bit value 9223372036854775777 cannot be represented by a 32 bit value
2015-01-10 19:46:05.730 mono[6576:470074] HIToolbox: ignoring exception 'NSInvalidArgumentException' that raised inside Carbon event dispatch
(
	0   CoreFoundation                      0x9c119343 __raiseError + 195
	1   libobjc.A.dylib                     0x98081a2a objc_exception_throw + 276
	2   CoreFoundation                      0x9c11925d +[NSException raise:format:] + 141
	3   Foundation                          0x962ead6c -[NSXPCEncoder _checkObject:] + 367
	4   Foundation                          0x962fd128 -[NSXPCEncoder _encodeArrayOfObjects:forKey:] + 239
	5   Foundation                          0x962ce9fa -[NSDictionary(NSDictionary) encodeWithCoder:] + 1226
	6   Foundation                          0x962eb2c1 -[NSXPCEncoder _encodeObject:] + 605
	7   Foundation                          0x962fd141 -[NSXPCEncoder _encodeArrayOfObjects:forKey:] + 264
	8   Foundation                          0x962ce9fa -[NSDictionary(NSDictionary) encodeWithCoder:] + 1226
	9   Foundation                          0x962eb2c1 -[NSXPCEncoder _encodeObject:] + 605
	10  Foundation                          0x962eaa21 -[NSXPCEncoder encodeObject:forKey:] + 129
	11  Foundation                          0x962eb695 -[NSXPCEncoder encodeObject:] + 48
	12  Foundation                          0x962dec60 _walkAndEncodeData + 1263
	13  Foundation                          0x962de680 encodeInvocationArguments + 572
	14  Foundation                          0x962eb46d -[NSXPCEncoder encodeInvocation:] + 387
	15  Foundation                          0x962eb2c1 -[NSXPCEncoder _encodeObject:] + 605
	16  Foundation                          0x962eaa21 -[NSXPCEncoder encodeObject:forKey:] + 129
	17  Foundation                          0x96503a01 __51-[NSXPCConnection _decodeAndInvokeMessageWithData:]_block_invoke140 + 800
	18  CoreFoundation                      0x9c0869c3 __block_forwarding___ + 195
	19  CoreFoundation                      0x9c0868ed __forwarding_prep_b___ + 13
	20  HIToolbox                           0x952277e6 __60-[IMKInputSession imkxpc_attributesForCharacterIndex:reply:]_block_invoke_2 + 278
	21  HIToolbox                           0x9523b0ed __65-[IMKInputSession attributesForCharacterIndex:completionHandler:]_block_invoke + 648
	22  HIToolbox                           0x9523a9e4 __77-[IMKInputSession attributesForCharacterIndex_andLineRect:completionHandler:]_block_invoke + 3399
	23  HIToolbox                           0x95225661 __70-[IMKInputSession _createAndSendOffsetToPointEvent:completionHandler:]_block_invoke + 32
	24  HIToolbox                           0x952257c4 __48-[IMKInputSession _postEvent:completionHandler:]_block_invoke + 25
	25  HIToolbox                           0x9518b2c1 __SendTextInputEvent_WithCompletionHandler_block_invoke_2 + 156
	26  HIToolbox                           0x9518bbf2 __TrySendTextInput_SendEvent_WithContinuationHandler_block_invoke148 + 33
	27  HIToolbox                           0x9518a01f SendTSMEvent_WithCompletionHandler + 1017
	28  HIToolbox                           0x9518af8e __SendTextInputEvent_WithCompletionHandler_block_invoke + 669
	29  HIToolbox                           0x95188430 SendTextInputEvent_WithCompletionHandler + 1519
	30  HIToolbox                           0x95225793 -[IMKInputSession _postEvent:completionHandler:] + 178
	31  HIToolbox                           0x95225617 -[IMKInputSession _createAndSendOffsetToPointEvent:completionHandler:] + 361
	32  HIToolbox                           0x95239c80 -[IMKInputSession attributesForCharacterIndex_andLineRect:completionHandler:] + 618
	33  HIToolbox                           0x9523ae5d -[IMKInputSession attributesForCharacterIndex:completionHandler:] + 124
	34  HIToolbox                           0x952276a0 __60-[IMKInputSession imkxpc_attributesForCharacterIndex:reply:]_block_invoke + 516
	35  CoreFoundation                      0x9c025bc0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
	36  CoreFoundation                      0x9c017593 __CFRunLoopDoBlocks + 195
	37  CoreFoundation                      0x9c017175 __CFRunLoopRun + 2165
	38  CoreFoundation                      0x9c016696 CFRunLoopRunSpecific + 390
	39  CoreFoundation                      0x9c0164fb CFRunLoopRunInMode + 123
	40  HIToolbox                           0x9520c92e -[IMKClientXPCInvocation invocationAwaitXPCReply] + 624
	41  HIToolbox                           0x95214fa6 __49-[IMKInputSession handleEvent:completionHandler:]_block_invoke_2494 + 1973
	42  HIToolbox                           0x95212f90 -[IMKInputSession tryHandleEvent_GetOffsetAndLocationForMouseEvent__withDispatchCondition:initialization:dispatchWork:postEventCompletion:continuationHandler:] + 127
	43  HIToolbox                           0x95214369 __49-[IMKInputSession handleEvent:completionHandler:]_block_invoke_2449 + 1272
	44  HIToolbox                           0x95212da5 __87-[IMKInputSession tryHandleEventSwitchedInputMode:eventWasHandled:continuationHandler:]_block_invoke + 121
	45  HIToolbox                           0x951f7306 -[IMKClient switchedInputMode:completionHandler:] + 508
	46  HIToolbox                           0x95212d24 -[IMKInputSession tryHandleEventSwitchedInputMode:eventWasHandled:continuationHandler:] + 126
	47  HIToolbox                           0x95213e3d __49-[IMKInputSession handleEvent:completionHandler:]_block_invoke448 + 220
	48  HIToolbox                           0x95212e84 -[IMKInputSession tryHandleEvent_commitOnMouseDown_withDispatchCondition:dispatchWork:continuation:] + 131
	49  HIToolbox                           0x95213bc2 __49-[IMKInputSession handleEvent:completionHandler:]_block_invoke + 333
	50  HIToolbox                           0x9522212f -[IMKInputSession _eventIsOn:completionHandler:] + 3341
	51  HIToolbox                           0x9521337f -[IMKInputSession handleEvent:completionHandler:] + 894
	52  HIToolbox                           0x951a1d1c IMKInputSessionProcessEventRefWithCompletionHandler + 134
	53  HIToolbox                           0x951a0e34 InputMethodInstanceProcessEventRef_WithCompletionHandler + 115
	54  HIToolbox                           0x951874fd __TSMEventToInputMethod_WithCompletionHandler_block_invoke + 122
	55  HIToolbox                           0x95187455 TrySendLockEvent_BeforeEventToInputMethod_WithContinuationHandler + 436
	56  HIToolbox                           0x9518720b TSMEventToInputMethod_WithCompletionHandler + 154
	57  HIToolbox                           0x95187159 TSMEventToKeyboardInputMethod_WithCompletionHandler + 128
	58  HIToolbox                           0x951867ff TSMKeyEvent_WithCompletionHandler + 591
	59  HIToolbox                           0x95192be7 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_4 + 288
	60  HIToolbox                           0x95192ab3 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_3 + 336
	61  HIToolbox                           0x951928e9 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_2 + 261
	62  HIToolbox                           0x95192767 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke + 255
	63  HIToolbox                           0x951924f3 TSMProcessRawKeyEventWithOptionsAndCompletionHandler + 3730
	64  HIToolbox                           0x94f1616c TSMProcessRawKeyEvent + 266
	65  HIToolbox                           0x94f52c5c HandleCompatibilityKeyEvent + 323
	66  HIToolbox                           0x94ed2f08 _ZN13HIApplication12EventHandlerEP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv + 1792
	67  HIToolbox                           0x9508e5d4 _Z22_InvokeEventHandlerUPPP25OpaqueEventHandlerCallRefP14OpaqueEventRefPvPFlS0_S2_S3_E + 36
	68  HIToolbox                           0x94ed8501 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 2291
	69  HIToolbox                           0x94ed74dc _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 402
	70  HIToolbox                           0x94ed7343 SendEventToEventTargetWithOptions + 95
	71  HIToolbox                           0x94f0b1f9 _ZL29ToolboxEventDispatcherHandlerP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv + 1287
	72  HIToolbox                           0x94ed88cb _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 3261
	73  HIToolbox                           0x94ed74dc _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 402
	74  HIToolbox                           0x94eead25 SendEventToEventTarget + 88
	75  ???                                 0x06000b34 0x0 + 100666164
	76  ???                                 0x06000208 0x0 + 100663816
	77  ???                                 0x065082bb 0x0 + 105939643
	78  ???                                 0x05a7c130 0x0 + 94880048
	79  ???                                 0x05a7acdc 0x0 + 94874844
	80  ???                                 0x05a7a77c 0x0 + 94873468
	81  ???                                 0x0067a1d8 0x0 + 6791640
	82  ???                                 0x0067a34a 0x0 + 6792010
	83  mono                                0x0003bd6f mono_jit_runtime_invoke + 751
	84  mono                                0x001fd89f mono_runtime_invoke + 127
	85  mono                                0x002035e1 mono_runtime_exec_main + 401
	86  mono                                0x0020338a mono_runtime_run_main + 682
	87  mono                                0x000b36ed mono_jit_exec + 93
	88  mono                                0x000b59b0 mono_main + 7888
	89  mono                                0x0002e670 main + 768
	90  mono                                0x0002e365 start + 53
)