OsmSharp / ui

The UI components.
http://osmsharp.com/
GNU General Public License v2.0
139 stars 91 forks source link

Scene2D.Deserialize() causing Exception: ProtoBuf.ProtoException: No parameterless constructor found for SceneIndex #270

Open mDanz opened 8 years ago

mDanz commented 8 years ago

Hi I am stuck with the demo vector project for Android. My problem is with the deserialization of the sceneStream.

Scene2D.Deserialize(sceneStream, true) runs into a ProtoBuf.ProtoException

is this a Bug or am I missing something? I just copied the code from your example. Your support would be great!

Best Regards

Update:

I tested my code now inside a simple prototype, where it runs without problems. But when I try to runs the exact same code inside my release application it runs into this ProtoException. I searched the Internet for the cause, but could not find any solutions. The Assemlies, .map file and build environment are the same. I also found that sometimes the "No parameterless constructor"-Exception is thrown when the stream handed to it is empty. So I'm now searching for problems with the sceneStream which is given to Scene2D.Deserialize(). But when I compare the streams from my working prototype and the release application they seem identical. Does Anyone know what I have to look for?