<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p></p>
<div>Hi all, I don't know if someone of you saw this error message recently?</div>
<div><br>
</div>
<p></p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p></p>
<div><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">MultiByteFileStream(Object)>>error: <span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">primGetPosition:
 failed</span></span></div>
<div><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">(Just
 for the case this should be a VM-related problem, I'm using OpenSmalltalk <span>201912311458 on Win 1903.)</span></span></span></div>
<p></p>
</blockquote>
<p></p>
<div><br>
</div>
<div>I experienced it various times, and each time, once the error had occurred once, no more access to the sources file was possible. I could neither select any message then nor debug, even quitting the image without saving was not possible; each attempt raised the
 same error again.</div>
<div><br>
</div>
<div>Now I finally discovered a scenario to reproduce this issue:</div>
<div><br>
</div>
<p></p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p></p>
<div>(Disclaimer: This might crash your image! Save *before* doing this!)</div>
<p></p>
<p></p>
<div>Debug the following, step over #unload, and during then loading happens, interrupt the process via cmd-dot:</div>
<p></p>
<p></p>
<div><br>
</div>
<p></p>
<p></p>
<div><img size="167911" contenttype="image/png" id="img267934" style="user-select: none;" contextid="img562105" height="180" width="302" sizeoption="small" tabindex="0" src="cid:29c3b6a6-5fdf-498d-a47b-a9dd34666273"></div>
<p></p>
<p></p>
<div><br>
</div>
<p></p>
<p></p>
<div>Please note that you will probably only have one chance to reproduce it, because the package will be cached.</div>
<div><br>
</div>
<div>If you now open a browser, for example, selecting any message will raise the <span>#primGetPosition: failure.</span></div>
<div><span>However, if you continue from the interrupt, your image won't suffer consequential damages.</span></div>
<p></p>
</blockquote>
<p></p>
<div><br>
</div>
<div>This is a real problem because especially on <a href="http://forum.world.st/The-Inbox-ShoutCore-ct-78-mcz-tp5109909p5110050.html" class="OWAAutoLink">
slower images</a>, various tests can fail and damage your image because of their timeout limits.</div>
<div>In a fresh (!) Trunk image, I could reproduce this several times by running MCPackageTest or MCFileInTest.</div>
<div>Increasing their timeouts would be a dirty workaround for the moment.</div>
<div>I also experienced the same problem in other projects where related MC operations were run in a timeout-limited context.</div>
<div><br>
</div>
<div>So, how can we fix it?</div>
<div>I assume that it is problematic if the file pointer does not get closed correctly.</div>
<div>Would you consider a critical block an appropriate solution to fix the issue?</div>
<div>But how would you write one the best way (never faced that stuff before), and doesn't this have undesirable disadvantages such as restricted debugging possibilities?</div>
<div><br>
</div>
<div>Questions over questions :-) Any help or response will be appreciated!</div>
<div><br>
</div>
<div>Best,</div>
<div>Christoph</div>
<p></p>
<div id="Signature">
<div id="divtagdefaultwrapper" 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" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
</body>
</html>