iceberg icon indicating copy to clipboard operation
iceberg copied to clipboard

KeyNotFound: key 139896788664360 not found in WeakValueDictionary while loading Gtoolkit

Open georgeganea opened this issue 6 years ago • 3 comments
trafficstars

This happens randomly on our build server, but it's also been known to happen locally. Full error message below.

Loaded -> BaselineOfBeacon-CompatibleUserName.1569154843 --- [email protected]:feenkcom/pharo-beacon.git[Detached at 2ca6e08] --- [email protected]:feenkcom/pharo-beacon.git[2ca6e08b8f278b83ab7cd0dbe360f3fed0504636]'Errors in script loaded from scripts/build/loadtag.st' [31mKeyNotFound: key 139896788664360 not found in WeakValueDictionary [0mWeakValueDictionary(Dictionary)>>errorKeyNotFound: [ self errorKeyNotFound: key ] in WeakValueDictionary(Dictionary)>>at: in Block: [ self errorKeyNotFound: key ] UndefinedObject>>ifNil:ifNotNil: WeakValueDictionary>>at:ifAbsent: WeakValueDictionary(Dictionary)>>at: [ :k | (ThunkToCallbackMap at: k) ifNil: [ ThunkToCallbackMap removeKey: k ] ] in CallbackForX64(Callback)>>addToThunkTable in Block: [ :k | (ThunkToCallbackMap at: k) ifNil: [ ThunkTo...etc... Array(SequenceableCollection)>>do: CallbackForX64(Callback)>>addToThunkTable CallbackForX64(Callback)>>callbackEvaluator: Callback class>>forCallbackEvaluator: LGitDiffFileCallback(FFICallback)>>signature:block: LGitDiffFileCallback>>signature:block: LGitDiffFileCallback class(FFICallback class)>>signature:block: LGitDiffFileCallback class(LGitCallback class)>>on: LGitDiff>>filesDo:binaryFilesDo:hunksDo:linesDo: LGitDiff>>filesDo: LGitDiff>>files [ | fromTree toTree diff | fromTree := (LGitCommit of: self repositoryHandle fromHexString: aCommitish id) tree. toTree := (LGitCommit of: self repositoryHandle fromHexString: otherCommitish id) tree. diff := fromTree diffTo: toTree. ^ diff files ] in IceLibgitRepository>>changedFilesBetween:and: in Block: [ | fromTree toTree diff |... BlockClosure>>on:do: IceLibgitRepository>>handleLibgitError: IceLibgitRepository>>changedFilesBetween:and: IceGitCommit>>changesFromCommit: IceGitCommit(IceCommit)>>changesTo: IceDiff>>buildFull IceWorkingCopy>>forceCalculateDirtyPackages IceWorkingCopy>>adoptCommit: IceGitCommit(IceCommit)>>adopt IceCheckoutDoNotLoadPackages>>checkoutOn: IceWorkingCopy>>checkout: IceLibgitRepository(IceRepository)>>checkout:

georgeganea avatar Sep 27 '19 11:09 georgeganea

Still happens quite frequently when loading code using Iceberg in the latest Pharo 8 image on a CI server

KeyNotFound: key 139747546628136 not found in WeakValueDictionary
[0mWeakValueDictionary(Dictionary)>>errorKeyNotFound:
[ self errorKeyNotFound: key ] in WeakValueDictionary(Dictionary)>>at: in Block: [ self errorKeyNotFound: key ]
UndefinedObject>>ifNil:ifNotNil:
WeakValueDictionary>>at:ifAbsent:
WeakValueDictionary(Dictionary)>>at:
[ :k | (ThunkToCallbackMap at: k) ifNil: [ ThunkToCallbackMap removeKey: k ] ] in CallbackForX64(Callback)>>addToThunkTable in Block: [ :k | (ThunkToCallbackMap at: k) ifNil: [ ThunkTo...etc...
Array(SequenceableCollection)>>do:
CallbackForX64(Callback)>>addToThunkTable
CallbackForX64(Callback)>>callbackEvaluator:
Callback class>>forCallbackEvaluator:
FFIAlienCallback>>register
FFIAlienCallback>>frontendCallback:
FFIAlienCallback class>>fromFrontendCallback:
FFICalloutAPI class>>newCallbackBackendFor:
LGitCallback(FFICallback)>>backendCallback
LGitCallback(FFICallback)>>beNull
LGitCallback>>initializeNull
LGitCallback class>>null
LGitDiff>>filesDo:binaryFilesDo:hunksDo:linesDo:
LGitDiff>>filesDo:
LGitDiff>>files
[ | fromTree toTree diff |
fromTree := (LGitCommit
	of: self repositoryHandle
	fromHexString: aCommitish id) tree.
toTree := (LGitCommit
	of: self repositoryHandle
	fromHexString: otherCommitish id) tree.
diff := fromTree diffTo: toTree.
^ diff files ] in IceLibgitRepository>>changedFilesBetween:and: in Block: [ | fromTree toTree diff |...
BlockClosure>>on:do:
IceLibgitRepository>>handleLibgitError:
IceLibgitRepository>>changedFilesBetween:and:
IceGitCommit>>changesFromCommit:
IceGitCommit(IceCommit)>>changesTo:
IceDiff>>buildFull
IceWorkingCopy>>forceCalculateDirtyPackages
IceWorkingCopy>>adoptCommit:

chisandrei avatar Nov 15 '19 13:11 chisandrei

I got this error two times today. Once in 32 bits and once in 64bits.

jecisc avatar Nov 18 '19 14:11 jecisc

I still get this error sometimes. On Windows and on Linux. I get it often on travis-ci which causes my builds to fail (then I restart the build and it passes), but it happens on my PC with Windows too. PharoDebug.log

JanBliznicenko avatar Jan 20 '20 21:01 JanBliznicenko