Skip to content

Instantly share code, notes, and snippets.

@mnogu
Last active May 3, 2016 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnogu/6ae02c53cfbe520e6c112259e4fd7818 to your computer and use it in GitHub Desktop.
Save mnogu/6ae02c53cfbe520e6c112259e4fd7818 to your computer and use it in GitHub Desktop.
NullPointerException from StructuredSyntaxDocumentFilter.replaceMetaCharacters() with groovyConsole in groovy 2.4.6 and Google Japanese Input 2.17.2400.1
$ bin/groovyConsole
2016-05-03 12:44:30.764 java[2439:206562] An uncaught exception was raised
2016-05-03 12:44:30.764 java[2439:206562] NSConcreteAttributedString initWithString:: nil value
2016-05-03 12:44:31.114 java[2439:206562] (
0 CoreFoundation 0x00007fff903554f2 __exceptionPreprocess + 178
1 libobjc.A.dylib 0x00007fff88c7073c objc_exception_throw + 48
2 CoreFoundation 0x00007fff903bc4bd +[NSException raise:format:] + 205
3 Foundation 0x00007fff8e4b5255 -[NSConcreteAttributedString initWithString:] + 132
4 liblwawt.dylib 0x000000010f9473fe -[AWTView attributedSubstringForProposedRange:actualRange:] + 135
5 AppKit 0x00007fff87fba58d -[NSTextInputContext(NSInputContext_WithCompletion) attributedSubstringForProposedRange:completionHandler:] + 105
6 AppKit 0x00007fff87fb60a2 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_3520 + 115
7 AppKit 0x00007fff87fb361a -[NSTextInputContext tryHandleTSMEvent_attributedSubstringForProposedRange_withContext:dispatchCondition:dispatchWork:continuation:] + 101
8 AppKit 0x00007fff87fb6005 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke516 + 461
9 AppKit 0x00007fff87fb5d09 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2499 + 474
10 AppKit 0x00007fff87fba873 -[NSTextInputContext(NSInputContext_WithCompletion) firstRectForCharacterRange:completionHandler:] + 397
11 AppKit 0x00007fff87fb5b24 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke498 + 198
12 AppKit 0x00007fff87fb3279 __178-[NSTextInputContext tryHandleTSMEvent_offsetToPos_markedOrSelRange_withContext:markedOrSelRangeDispatchCondition:markedRangeContinuation:selectedRangeContinuation:continuation:]_block_invoke + 99
13 AppKit 0x00007fff87fb3209 -[NSTextInputContext tryHandleTSMEvent_offsetToPos_markedOrSelRange_withContext:markedOrSelRangeDispatchCondition:markedRangeContinuation:selectedRangeContinuation:continuation:] + 213
14 AppKit 0x00007fff87fb56cb __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke461 + 372
15 AppKit 0x00007fff878a4947 -[NSTextInputContext handleTSMEvent:completionHandler:] + 2429
16 AppKit 0x00007fff878a3f5e _NSTSMEventHandler + 324
17 HIToolbox 0x00007fff948987be _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1231
18 HIToolbox 0x00007fff94897c48 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 404
19 HIToolbox 0x00007fff94897aab SendEventToEventTargetWithOptions + 43
20 HIToolbox 0x00007fff948ecf7d SendTSMEvent_WithCompletionHandler + 417
21 HIToolbox 0x00007fff94a9f105 __SendTextInputEvent_WithCompletionHandler_block_invoke + 586
22 HIToolbox 0x00007fff94a9d3fd SendTextInputEvent_WithCompletionHandler + 1228
23 HIToolbox 0x00007fff94b09474 -[IMKInputSession _postEvent:completionHandler:] + 184
24 HIToolbox 0x00007fff94b09336 -[IMKInputSession _createAndSendOffsetToPointEvent:completionHandler:] + 300
25 HIToolbox 0x00007fff94b1d014 -[IMKInputSession attributesForCharacterIndex_andLineRect:completionHandler:] + 597
26 HIToolbox 0x00007fff94b1dcc8 -[IMKInputSession attributesForCharacterIndex:completionHandler:] + 113
27 HIToolbox 0x00007fff94b0b19b __60-[IMKInputSession imkxpc_attributesForCharacterIndex:reply:]_block_invoke + 502
28 CoreFoundation 0x00007fff902ea4ac __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
29 CoreFoundation 0x00007fff902c9d05 __CFRunLoopDoBlocks + 341
30 CoreFoundation 0x00007fff902c94ce __CFRunLoopRun + 910
31 CoreFoundation 0x00007fff902c8ed8 CFRunLoopRunSpecific + 296
32 HIToolbox 0x00007fff94af3588 -[IMKClientXPCInvocation invocationAwaitXPCReply] + 444
33 HIToolbox 0x00007fff94ae3006 -[IMKClient menuWithCompletionHandler:] + 2857
34 HIToolbox 0x00007fff94aac8e4 IMKInputSessionGetMenuIntoMenuWithCompletionHandler + 146
35 HIToolbox 0x00007fff94aabde2 GetInputMethodInstanceMenu_IntoMenu_WithCompletionHandler + 109
36 HIToolbox 0x00007fff94aa1c45 utTryToSetupInputMethodMenu + 367
37 HIToolbox 0x00007fff94aa1a56 __utSetupInputMethodMenuFromDeferredBlock_block_invoke + 208
38 CoreFoundation 0x00007fff902ea4ac __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
39 CoreFoundation 0x00007fff902c9d05 __CFRunLoopDoBlocks + 341
40 CoreFoundation 0x00007fff902c94ce __CFRunLoopRun + 910
41 CoreFoundation 0x00007fff902c8ed8 CFRunLoopRunSpecific + 296
42 HIToolbox 0x00007fff948c0935 RunCurrentEventLoopInMode + 235
43 HIToolbox 0x00007fff948c0677 ReceiveNextEventCommon + 184
44 HIToolbox 0x00007fff948c05af _BlockUntilNextEventMatchingListInModeWithFilter + 71
45 AppKit 0x00007fff876fdefa _DPSNextEvent + 1067
46 AppKit 0x00007fff876fd32a -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
47 libosxapp.dylib 0x000000010f7984e3 -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124
48 AppKit 0x00007fff876f1e84 -[NSApplication run] + 682
49 libosxapp.dylib 0x000000010f798346 +[NSApplicationAWT runAWTLoopWithApp:] + 156
50 liblwawt.dylib 0x000000010f93a539 -[AWTStarter starter:] + 873
51 Foundation 0x00007fff8e4dcf5e __NSThreadPerformPerform + 279
52 CoreFoundation 0x00007fff902ea881 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
53 CoreFoundation 0x00007fff902c9fbc __CFRunLoopDoSources0 + 556
54 CoreFoundation 0x00007fff902c94df __CFRunLoopRun + 927
55 CoreFoundation 0x00007fff902c8ed8 CFRunLoopRunSpecific + 296
56 java 0x000000010437e3b0 CreateExecutionEnvironment + 871
57 java 0x0000000104378b5c JLI_Launch + 1952
58 java 0x000000010437e70d main + 101
59 java 0x00000001043783b4 start + 52
60 ??? 0x0000000000000011 0x0 + 17
)
2016-05-03 12:51:16.463 java[2439:206562] An uncaught exception was raised
2016-05-03 12:51:16.463 java[2439:206562] NSConcreteAttributedString initWithString:: nil value
2016-05-03 12:51:16.466 java[2439:206562] (
0 CoreFoundation 0x00007fff903554f2 __exceptionPreprocess + 178
1 libobjc.A.dylib 0x00007fff88c7073c objc_exception_throw + 48
2 CoreFoundation 0x00007fff903bc4bd +[NSException raise:format:] + 205
3 Foundation 0x00007fff8e4b5255 -[NSConcreteAttributedString initWithString:] + 132
4 liblwawt.dylib 0x000000010f9473fe -[AWTView attributedSubstringForProposedRange:actualRange:] + 135
5 AppKit 0x00007fff87fba58d -[NSTextInputContext(NSInputContext_WithCompletion) attributedSubstringForProposedRange:completionHandler:] + 105
6 AppKit 0x00007fff87fb60a2 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_3520 + 115
7 AppKit 0x00007fff87fb361a -[NSTextInputContext tryHandleTSMEvent_attributedSubstringForProposedRange_withContext:dispatchCondition:dispatchWork:continuation:] + 101
8 AppKit 0x00007fff87fb6005 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke516 + 461
9 AppKit 0x00007fff87fb5d09 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2499 + 474
10 AppKit 0x00007fff87fba873 -[NSTextInputContext(NSInputContext_WithCompletion) firstRectForCharacterRange:completionHandler:] + 397
11 AppKit 0x00007fff87fb5b24 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke498 + 198
12 AppKit 0x00007fff87fb3279 __178-[NSTextInputContext tryHandleTSMEvent_offsetToPos_markedOrSelRange_withContext:markedOrSelRangeDispatchCondition:markedRangeContinuation:selectedRangeContinuation:continuation:]_block_invoke + 99
13 AppKit 0x00007fff87fb3209 -[NSTextInputContext tryHandleTSMEvent_offsetToPos_markedOrSelRange_withContext:markedOrSelRangeDispatchCondition:markedRangeContinuation:selectedRangeContinuation:continuation:] + 213
14 AppKit 0x00007fff87fb56cb __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke461 + 372
15 AppKit 0x00007fff878a4947 -[NSTextInputContext handleTSMEvent:completionHandler:] + 2429
16 AppKit 0x00007fff878a3f5e _NSTSMEventHandler + 324
17 HIToolbox 0x00007fff948987be _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1231
18 HIToolbox 0x00007fff94897c48 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 404
19 HIToolbox 0x00007fff94897aab SendEventToEventTargetWithOptions + 43
20 HIToolbox 0x00007fff948ecf7d SendTSMEvent_WithCompletionHandler + 417
21 HIToolbox 0x00007fff94a9f105 __SendTextInputEvent_WithCompletionHandler_block_invoke + 586
22 HIToolbox 0x00007fff94a9d3fd SendTextInputEvent_WithCompletionHandler + 1228
23 HIToolbox 0x00007fff94b09474 -[IMKInputSession _postEvent:completionHandler:] + 184
24 HIToolbox 0x00007fff94b09336 -[IMKInputSession _createAndSendOffsetToPointEvent:completionHandler:] + 300
25 HIToolbox 0x00007fff94b1d014 -[IMKInputSession attributesForCharacterIndex_andLineRect:completionHandler:] + 597
26 HIToolbox 0x00007fff94b1dcc8 -[IMKInputSession attributesForCharacterIndex:completionHandler:] + 113
27 HIToolbox 0x00007fff94b0b19b __60-[IMKInputSession imkxpc_attributesForCharacterIndex:reply:]_block_invoke + 502
28 CoreFoundation 0x00007fff902ea4ac __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
29 CoreFoundation 0x00007fff902c9d05 __CFRunLoopDoBlocks + 341
30 CoreFoundation 0x00007fff902c94ce __CFRunLoopRun + 910
31 CoreFoundation 0x00007fff902c8ed8 CFRunLoopRunSpecific + 296
32 HIToolbox 0x00007fff94af3588 -[IMKClientXPCInvocation invocationAwaitXPCReply] + 444
33 HIToolbox 0x00007fff94ae3006 -[IMKClient menuWithCompletionHandler:] + 2857
34 HIToolbox 0x00007fff94aac8e4 IMKInputSessionGetMenuIntoMenuWithCompletionHandler + 146
35 HIToolbox 0x00007fff94aabde2 GetInputMethodInstanceMenu_IntoMenu_WithCompletionHandler + 109
36 HIToolbox 0x00007fff94aa1c45 utTryToSetupInputMethodMenu + 367
37 HIToolbox 0x00007fff94aa1a56 __utSetupInputMethodMenuFromDeferredBlock_block_invoke + 208
38 CoreFoundation 0x00007fff902ea4ac __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
39 CoreFoundation 0x00007fff902c9d05 __CFRunLoopDoBlocks + 341
40 CoreFoundation 0x00007fff902c94ce __CFRunLoopRun + 910
41 CoreFoundation 0x00007fff902c8ed8 CFRunLoopRunSpecific + 296
42 HIToolbox 0x00007fff948c0935 RunCurrentEventLoopInMode + 235
43 HIToolbox 0x00007fff948c0677 ReceiveNextEventCommon + 184
44 HIToolbox 0x00007fff948c05af _BlockUntilNextEventMatchingListInModeWithFilter + 71
45 AppKit 0x00007fff876fdefa _DPSNextEvent + 1067
46 AppKit 0x00007fff876fd32a -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
47 libosxapp.dylib 0x000000010f7984e3 -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124
48 AppKit 0x00007fff876f1e84 -[NSApplication run] + 682
49 libosxapp.dylib 0x000000010f798346 +[NSApplicationAWT runAWTLoopWithApp:] + 156
50 liblwawt.dylib 0x000000010f93a539 -[AWTStarter starter:] + 873
51 Foundation 0x00007fff8e4dcf5e __NSThreadPerformPerform + 279
52 CoreFoundation 0x00007fff902ea881 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
53 CoreFoundation 0x00007fff902c9fbc __CFRunLoopDoSources0 + 556
54 CoreFoundation 0x00007fff902c94df __CFRunLoopRun + 927
55 CoreFoundation 0x00007fff902c8ed8 CFRunLoopRunSpecific + 296
56 java 0x000000010437e3b0 CreateExecutionEnvironment + 871
57 java 0x0000000104378b5c JLI_Launch + 1952
58 java 0x000000010437e70d main + 101
59 java 0x00000001043783b4 start + 52
60 ??? 0x0000000000000011 0x0 + 17
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment