If I create a window with an isigraph, with an empty paint verb
defined, J crashes on OSX.
For example:
a_b_paint=:{{ }}
wd 'pc a closeok'
wd 'minwh 450 350'
wd 'cc b isigraph flush'
wd 'pshow'
The error is EXC_BAD_INSTRUCTION (SIGILL)
The stack trace looks like
0 CoreFoundation 0x00007fff3e4a5a7d
__exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff68b79a17
objc_exception_throw + 48
2 CoreFoundation 0x00007fff3e4a58af
+[NSException raise:format:] + 201
3 AppKit 0x00007fff3c2c2411 _NSRunModal + 156
4 AppKit 0x00007fff3beabbb8
-[NSApplication runModalSession:] + 241
5 libqcocoa.dylib 0x0000000110d0eed6
_ZN21QCocoaEventDispatcher13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
+ 614
6 QtCore 0x000000010c433acf
_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 431
7 QtWidgets 0x000000010e470e9e
_ZN7QDialog4execEv + 526
8 QtWidgets 0x000000010e4aea72
_ZL17showNewMessageBoxP7QWidgetN11QMessageBox4IconERK7QStringS5_6QFlagsINS1_14StandardButtonEES7_
+ 354
9 libjqt.dylib 0x000000010daf1e99
_Z2mbNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_
+ 11721
10 libjqt.dylib 0x000000010db2eea3 _ZL3wd1v + 9795
11 libjqt.dylib 0x000000010db2c816 wd + 86
12 libj.dylib 0x0000000112c8add8 stdcalli + 280
13 libj.dylib 0x0000000112c7c390 jtcdexec1 + 6384
...
Perhaps someone at Apple was not thinking about the empty case being valid.
FYI,
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm