<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Hilaire,</p>
<p>I compared the behavior in Squeak with both opensmalltalk-vm and with V3 interpreter VM.</p>
<p>In Squeak:<br />ImageReadWriter formFromFileNamed: 'splash.bmp'. "==> Form(400x300x32)"</p>
<p>In Cuis (with the same VM):<br />ImageReadWriter formFromFileEntry: 'splash.bmp' asFileEntry. "==> Error"</p>
<p>I see two possible issues here.<br />1) The call to #primitiveRead24BmpLine is failing in both Squeak and Cuis. This may be a problem in the VM plugin (or maybe it is expected in this case, I am not sure).</p>
<p>2) In the primitive fallback code in method #read24BmpLine:into:startingAt:width: the error happens at the "formBits at: (bitsIndex := bitsIndex+1) put: rgb". The formBits is a BitMap, so maybe the some difference between Squeak and Cuis here.</p>
<p>I also tried Squeak with a V3 image and interpreter VM, and the results are the same as with opensmalltalk-vm. The form is created successfully, and the #primitiveRead24BmpLine call fails and goes to the fallback code.</p>
<p>At this point I cannot say if there primitive failure is a problem in the VM plugin, or if the primitive failure is normal and expected for this particular case. But I can say that the actual Error in Cuis must be something related to the fallback code when it updates the formBits BitMap.</p>
<p>Dave</p>
<div id="signature"></div>
<p><br /></p>
<p id="reply-intro">On 2024-03-16 18:47, Hilaire Fernandes via Cuis-dev wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div>
<p><span style="font-size: large;">Hi folks, <br /></span></p>
<p><span style="font-size: large;">It looks like the BMP reader is broken.</span></p>
<p><span style="font-size: large;">ImageReadWriter formFromFileEntry: 'splash.bmp'.<br /></span></p>
<p><span style="font-size: large;">Could it be a VM issue? Seem to occure in a plugin. I am not forwarding to VM mailing list for now, waiting for more advices.<br /></span></p>
<p><span style="font-size: large;">See screen capture and bmp example known to load previously.<br /></span></p>
<pre class="v1moz-signature">-- 
GNU Dr. Geo
<a class="v1moz-txt-link-freetext" href="http://gnu.org/s/dr-geo/" target="_blank" rel="noopener noreferrer">http://gnu.org/s/dr-geo/</a>
<a class="v1moz-txt-link-freetext" href="http://gnu-drgeo.blogspot.com/" target="_blank" rel="noopener noreferrer">http://gnu-drgeo.blogspot.com/</a></pre>
</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
</blockquote>
</body></html>