Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

Unpickling fails when multithreading #72

Closed
arturaz opened this issue Nov 9, 2013 · 1 comment
Closed

Unpickling fails when multithreading #72

arturaz opened this issue Nov 9, 2013 · 1 comment

Comments

@arturaz
Copy link

arturaz commented Nov 9, 2013

https://gist.github.com/anonymous/079febc0011dd7c97553#file-gistfile1-txt-L56

This happens when two threads try to unpickle two different things of same type in same time.

    implicit val ShipBuildPickleDataMapper =
         MappedTypeMapper.base[ShipBuild.DataBlob, Array[Byte]](
         _.pickle.value, _.unpickle[ShipBuild.DataBlob] // TypeMappers.scala:36
      )

      case class DataBlob(
          baseId: ShipBase.Id, componentIds: Seq[Component.Id]
       )
@phaller
Copy link
Contributor

phaller commented Oct 19, 2014

Fixed by #167

@phaller phaller closed this as completed Oct 19, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants