<div dir="ltr"><div dir="ltr">Hi Christoph,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 19, 2020 at 12:53 AM Thiede, Christoph <<a href="mailto:Christoph.Thiede@student.hpi.uni-potsdam.de">Christoph.Thiede@student.hpi.uni-potsdam.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">



<div>

<div id="gmail-m_6528451101298937865divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Hi Eliot,</p>
<p><br>
</p>
<p>> <span>Do you see such distortion on other garbage collections?</span></p>
<p><span><br>
</span></p>
<p><span>I could not yet reproduce this during GC.</span></p>
<p><span><br>
</span></p>
<p><span>> <span>Can you please check in the VM Stats how long the compaction phase of the snapshot GC takes?</span></span></p>
<p><span><span><br>
</span></span></p>
<p>You mean this:</p></div></div></blockquote><div><br></div><div>Yes.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div id="gmail-m_6528451101298937865divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p><span style="font-size:12pt">GCs</span><span style="font-size:12pt;white-space:pre-wrap"> </span><span style="font-size:12pt">1,151 (408 ms between GCs 196.6 ms runtime between GCs)</span><br></p>
<div><span style="white-space:pre-wrap"></span>full<span style="white-space:pre-wrap"> </span>
7 totalling 2,729 ms (1.21% runtime), avg 389.9 ms</div>
<div><span style="white-space:pre-wrap"></span>marking<span style="white-space:pre-wrap"> </span>
1,574 ms (57.7%) avg 224.9 ms,</div>
<div><span style="white-space:pre-wrap"></span>compacting<span style="white-space:pre-wrap">
</span>1,155 ms (42.3%) avg 165 ms</div>
<div><br>
</div>
The issue is sporadic. Today, I did not yet perceive it again. I can check this again directly after the next accident.</div></div></blockquote><div><br></div><div>So if compaction takes on average 0.17 seconds it is unlikely to be the cause of the distortion.  I wonder how we can debug this.  One way would be to run the VM from the console under GDB and then interrupt the gdb session if and when you see the distortion.  You'd have to be watching for it.  Then you could see what the BVM is doing while the distortion is showing, and check if displayBits et al (the address and dimensions of the bits that constitute the display) actually agree with the current display object.  Otherwise we're flying blind.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div id="gmail-m_6528451101298937865divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p></p>
<p><span style="font-size:12pt">Best,</span><br></p>
<p>Christoph</p>
<div id="gmail-m_6528451101298937865Signature">
<div id="gmail-m_6528451101298937865divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="divtagdefaultwrapper">
<div>
<div id="gmail-m_6528451101298937865Item.MessagePartBody">
<div id="gmail-m_6528451101298937865Item.MessageUniqueBody" style="font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont">
<div dir="ltr">
<div id="gmail-m_6528451101298937865divtagdefaultwrapper"><font face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">
<div id="gmail-m_6528451101298937865Signature">
<div style="margin:0px"><font style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont">
<div><font size="3" color="black"><span style="font-size:12pt"><a href="http://www.hpi.de/" rel="noopener noreferrer" id="gmail-m_6528451101298937865LPNoLP" target="_blank"><font size="2"><span id="gmail-m_6528451101298937865LPlnk909538"><font color="#757B80"></font></span></font></a></span></font></div>
</font></div>
</div>
</font></div>
</div>
</div>
</div>
</div>
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_6528451101298937865divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Squeak-dev <<a href="mailto:squeak-dev-bounces@lists.squeakfoundation.org" target="_blank">squeak-dev-bounces@lists.squeakfoundation.org</a>> im Auftrag von Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>><br>
<b>Gesendet:</b> Mittwoch, 19. Februar 2020 04:06:36<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Cc:</b> Open Smalltalk Virtual Machine Development Discussion<br>
<b>Betreff:</b> Re: [squeak-dev] VM rendering on Windows looks weird after saving the image</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Feb 18, 2020 at 12:27 AM Thiede, Christoph <<a href="mailto:Christoph.Thiede@student.hpi.uni-potsdam.de" target="_blank">Christoph.Thiede@student.hpi.uni-potsdam.de</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div id="gmail-m_6528451101298937865gmail-m_8337911036481529688divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<p><span style="font-size:12pt">Hi all,</span><br>
</p>
<div style="color:rgb(0,0,0)">
<div>
<div id="gmail-m_6528451101298937865gmail-m_8337911036481529688divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div style="color:rgb(0,0,0)">
<div>
<div id="gmail-m_6528451101298937865gmail-m_8337911036481529688divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p><br>
</p>
<p>some of my images take a very long time to save, despite SSD, often more than 10 seconds. Image file is 700M and changes file 90M. During saving the image, the VM does not react so Windows is diagnosing Squeak might have hung up. It would be nice to show
 some kind of (VM-side?) progress bar instead ...</p>
<p><br>
</p>
<p>However, the actual problem is how my host window looks after the saving is complete and the VM comes alive again:</p>
<p><br>
</p>
<img size="761367" id="gmail-m_6528451101298937865gmail-m_8337911036481529688img64156" style="max-width: 99.9%;" src="cid:1705eb6da9ff456b1e51">
<p><br>
</p>
<p><br>
</p>
<p>I can see this quite often after saving large image files. This state remains for around one second, then I can proceed using the image as usual.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>The image is garbage collected and compacted on snapshot, so the display may indeed move. However, post garbage collect the location of the display is updated, as after a normal full garbage collection.  Do you see such distortion on other garbage collections? 
 Can you please check in the VM Stats how long the compaction phase of the snapshot GC takes?  If that is as long as you see the distortion then the solution would be to defer display updates around at least the compaction phase.</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div id="gmail-m_6528451101298937865gmail-m_8337911036481529688divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<div style="color:rgb(0,0,0)">
<div>
<div id="gmail-m_6528451101298937865gmail-m_8337911036481529688divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div style="color:rgb(0,0,0)">
<div>
<div id="gmail-m_6528451101298937865gmail-m_8337911036481529688divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p><span style="font-size:12pt">Best,</span><br>
</p>
<p>Christoph</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<div><br>
</div>
<div dir="ltr">
<div dir="ltr">
<div><span style="font-size:small;border-collapse:separate">
<div>_,,,^..^,,,_<br>
</div>
<div>best, Eliot</div>
</span></div>
</div>
</div>
</div>
</div>
</div>

<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div>