Git Product home page Git Product logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
Is there any specific scenario that reproduces this? I wonder (for example) 
whether 
it is something to do with list-properties where the bespoke list doesn't have 
a 
default constructor...

I can try to investigate, but very hard without a reproducable scenario.

Original comment by marc.gravell on 2 Dec 2008 at 12:11

from protobuf-net.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
I tried to reproduce it, but it really happens occasionally.  I've attached
definitions of my objects, maybe this will help. Each message is sent in Message
object. Each message has 'bytes payload', which is another ProtoBuf serialized
message. The error occurs when deserializing payload content (always). It 
cannot be
null (if it was, earlier functions would throw appropriate exception) even if I 
tried
to pass null, byte[0] the outcome was completely different. Payload contains 
either
ObjectHubResponse or RequestMessages

Original comment by [email protected] on 2 Dec 2008 at 3:05

Attachments:

from protobuf-net.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
OK I think I've got the problem. As I've mentioned the problem happened 
occasionally.
My environment is multithreaded with Protobuf.Serializer called from different
threads possibly at the same time. I wrongly assumed that since Serializer is 
static
it's thread-safe but it's not. Now I've created utility class that serializes 
access
to Serializer. So far so good :)

Original comment by [email protected] on 3 Dec 2008 at 9:07

from protobuf-net.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
Really? That is curious! It *should* be thread-safe. It is intended to be. I 
will 
investigate, but I can't think (without looking) why this would happen... the 
only 
thing (without checking) that could break this would be the Build() method 
which 
constructs the strategy per-type, but that should still be safe!

I will *definitely* look at this on the train tomorrow!

Thanks for the update.

Original comment by marc.gravell on 3 Dec 2008 at 10:59

  • Changed state: Started

from protobuf-net.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
Well, the software now runs for 2 days without this error - so maybe the
thread-safety is the issue here. 

Original comment by [email protected] on 4 Dec 2008 at 9:10

from protobuf-net.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
I'm happy to believe you - I am investigating. Thanks for reporting this.

Original comment by marc.gravell on 4 Dec 2008 at 9:29

from protobuf-net.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024

Original comment by marc.gravell on 9 Dec 2008 at 8:35

  • Changed state: Fixed

from protobuf-net.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
Closed (verified)

Original comment by marc.gravell on 6 Jan 2009 at 7:51

  • Changed state: Verified

from protobuf-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.