vamiot / rapidjson

Automatically exported from code.google.com/p/rapidjson
MIT License
0 stars 0 forks source link

Parsing crash #103

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

std::string path = 
CCFileUtils::sharedFileUtils()->fullPathForFilename("landmarks.json");

    FILE * pFile = fopen (path.c_str() , "rb");

    rapidjson::FileStream is(pFile);
    rapidjson::Document document;
    document.ParseStream<0>(is);

What is the expected output? What do you see instead?

Expected: None
Actual: Assertion failed: (IsObject()), function MemberBegin, file 
/Users/mauro/Documents/Cocos2d-x/projects/ManHat/Classes/rapidjson/document.h, 
line 243.

What version of the product are you using? On what operating system?

XCode5 - V0.11

Please provide any additional information below.

This happens when the line "document.ParseStream<0>(is);" is reached

Original issue reported on code.google.com by mtet88@gmail.com on 11 Mar 2014 at 5:58

GoogleCodeExporter commented 8 years ago
I already did this and still not working... 
https://github.com/USCiLab/cereal/issues/51

HELP!

Original comment by mtet88@gmail.com on 11 Mar 2014 at 6:14

GoogleCodeExporter commented 8 years ago
"This is due to a bug in the mac version of libc++ and should be fixed in
HEAD."

https://github.com/USCiLab/cereal/commit/24ce678c74e29309149359e5af9e40d39ac2162
e

Original comment by milo...@gmail.com on 24 Jun 2014 at 2:57