[Cuis-dev] ReferenceStream restoreFromFile: aFileEntry goes into infinite loop

H. Hirzel hannes.hirzel at gmail.com
Sat Sep 20 11:50:04 PDT 2025


I did the test from yesterday again and this time it works. I do not know
what happened.




ReferenceStream dumpOnFile: ('aSingleString.obj' asFileEntry) object: 'ABC'
.
ReferenceStream restoreFromFile: ('aSingleString.obj' asFileEntry).  "OK"


aByteArray := #[1 2 3 4].
ReferenceStream dumpOnFile: ('aByteArray.obj' asFileEntry) object:
 aByteArray.
ReferenceStream restoreFromFile: ('aByteArray.obj' asFileEntry).  "OK"


ReferenceStream dumpOnFile: ('aSmallInteger.obj' asFileEntry) object:
 1000.
ReferenceStream restoreFromFile: ('aSmallInteger.obj' asFileEntry).  "OK"


ReferenceStream dumpOnFile: ('anArray.obj' asFileEntry) object:  (Array
with: 'ABC' with: #[1 2 3 4] with: 1000).
ReferenceStream restoreFromFile: ('anArray.obj' asFileEntry).  "OK"


dict := Dictionary new.
dict at: 1 put: #[1 2 3 4].
dict at: 2 put: #[5 6 7 8].
dict at: 3 put: #[10 20 30 40].

ReferenceStream dumpOnFile: ('dictWithByteArrays.obj' asFileEntry) object:
dict .
ReferenceStream restoreFromFile: ('dictWithByteArrays.obj' asFileEntry).
 "OK"

On Sat, Sep 20, 2025 at 12:37 AM H. Hirzel <hannes.hirzel at gmail.com> wrote:

> Hi
>
> In Cuis 7584 a restore with a ReferenceStream goes into an infinite loop
>
> e.g.
>
> ReferenceStream restoreFromFile: ('dictWithByteArrays.obj' asFileEntry).
>
> In Cuis 7102 this works.
>
> I guess I can identify the change set which causes this trouble by
> bisection, testing various releases in between, but how do I get these
> intermediate releases?
>
> Any suggestions for a solution are welcome.
>
> Kind regards
> Hannes
>
>
> -----------------------------------------------------------------
> The test file " dictWithByteArrays.obj"  was produced with
>
> dict := Dictionary new.
> dict at: 1 put: #[1 2 3 4].
> dict at: 2 put: #[5 6 7 8].
> dict at: 3 put: #[10 20 30 40].
>
>
> ReferenceStream dumpOnFile: ('dictWithByteArrays.obj' asFileEntry) object:
> dict .
>
> P.S.
> I also wonder why in Cuis 7102
> ReferenceStream restoreFromFile: ('dictWithByteArrays.obj' asFileEntry).
>
> works meanwhile
> ReferenceStream restoreFromFile: 'dictWithByteArrays.obj' asFileEntry.
>
> does not.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250920/618d0214/attachment.htm>


More information about the Cuis-dev mailing list