-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RapidJSON with MemoryPoolAllocator results in crash #252
Comments
Did the unit tests also fail? |
Nope. Here is the full result:
|
@Leandros Can you be more specific? If the unit tests pass, then something must be working. Do you have a minimal example that fails? |
The unit tests do use |
I will close this issue first. If @Leandros would like to provide more feedback. You may reopen this issue and I will try to follow up. Thanks. |
@miloyip
Please refer to cocos2d/cocos2d-x#16492 typedef rapidjson::GenericDocument<rapidjson::UTF8<>, rapidjson::CrtAllocator> RapidJsonDocument;
typedef rapidjson::GenericValue<rapidjson::UTF8<>, rapidjson::CrtAllocator> RapidJsonValue; I also tried with the latest release version, crash also happened. |
Curious why this was closed. Issue still occurs, with both 1.1.0 release and latest master. In our case, the crash happens with XCode 9.4.1. |
Trying to parse anything with the build-in
MemoryPoolAllocator
results in aEXC_BAD_ACCESS
while trying to allocate theStack
.StackTrace from Xcode: http://i.imgur.com/KQp1lGY.png
Works with
CrtAllocator
, though.Xcode & clang version:
Edit:
I ran the tests, they passed (except the valgrind one, for obvious reasons).
The text was updated successfully, but these errors were encountered: