id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,cvshead 197,How to crash hard StX using a code paste,patrik.svestka@…,,"How to crash StX hard: 1) Smalltalk loadPackage: 'stx:libview/tests'. (do it in workspace) 2) start SystemBrowser 3) view Package 4) click on tests 5) click on ImageTests 6) click tests - regressions 7) select whole text (ctrl +a) 8) paste test: {{{ test_issue_126_font_size_24 "" https://swing.fit.cvut.cz/projects/stx-jv/ticket/126 "" | testString topView textView image allColors | [ testString := Unicode16String new. testString := 'コーヒーアイスクリームケーキビールすしかき'. topView := StandardSystemView new. topView extent:300@200. textView := EditTextView new. textView origin:0.0 @ 0.0 corner:1.0 @ 1.0. topView addSubView:textView. ""/ courier sizes 8, 12, 24, 48, 96, 288 textView font:(Font family:'courier' size:12). 1 to: 1000 do: [ :each | textView paste:testString ]. textView unselect. topView open. ""/ wait for the topView to appear Delay waitForSeconds:1. image := Image fromView: topView grab: false. ""/ x starts from 20 to avoid cursor (its color) allColors := Set new. 1 to: 20 do: [:y| 20 to: 40 do: [:x | allColors add: (image colorAtX:x y:y)]. ]. ] ensure:[ topView close. ]. self assert: (allColors size > 1) ""Created: / 22-03-2018 / 14:07:31 / svestkap"" }}} 9) Right click on the workspace, while the text is still selected 10) Smalltalk/X crashes hard",defect,closed,major,8.0.0,default,fixed,,,0