gtoolkit icon indicating copy to clipboard operation
gtoolkit copied to clipboard

Possible issue in `File class>>retryWithGC:until:forFileNamed:` in GT on Pharo 11

Open chisandrei opened this issue 2 years ago • 1 comments

We are getting these kind of crashes on the CI in tests that create and delete files from disk in Pharo 11 (build 707) and vm 10.0.7

[0mUndefinedObject(Object)>>doesNotUnderstand: #name
UndefinedObject>>doesNotUnderstand: #name
[ :arg4 | arg4 name sameAs: arg3 ] in File class>>retryWithGC:until:forFileNamed: in Block: [ :arg4 | arg4 name sameAs: arg3 ]
[ :each | (aBlock value: each) ifTrue: [ ^ true ] ] in Array(Collection)>>anySatisfy: in Block: [ :each | (aBlock value: each) ifTrue: [ ^ tru[..]
Array(SequenceableCollection)>>do:
Array(Collection)>>anySatisfy:
File class>>retryWithGC:until:forFileNamed:
File class>>deleteFile:
File>>delete

Could it be because the registry is now of type FinalizationRegistry instead of WeakRegistry?

chisandrei avatar Oct 01 '23 15:10 chisandrei

Maybe related ?

https://github.com/pharo-project/pharo/issues/14626

svenvc avatar Oct 01 '23 17:10 svenvc

Most likely fixed. We did not get these error since some time.

chisandrei avatar Aug 19 '24 20:08 chisandrei