Skip to content

How to solve large json file? #927

@napasa

Description

@napasa

My json file has a array of approximately ten million data.
ucrtbased.dll!0f5160d0() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for ucrtbased.dll]
[External Code]

WenKuInfoProcess.exe!std::_Allocate(unsigned int _Count, unsigned int _Sz, bool _Try_aligned_allocation) Line 87 C++
WenKuInfoProcess.exe!std::allocatorstd::_Container_proxy::allocate(unsigned int _Count) Line 828 C++
WenKuInfoProcess.exe!std::_Wrap_alloc<std::allocatorstd::_Container_proxy >::allocate(unsigned int _Count) Line 1078 C++
WenKuInfoProcess.exe!std::_String_alloc<std::_String_base_types<char,std::allocator > >::_Alloc_proxy() Line 1776 C++
WenKuInfoProcess.exe!std::_String_alloc<std::_String_base_types<char,std::allocator > >::_String_alloc<std::_String_base_types<char,std::allocator > ><std::_Wrap_alloc<std::allocator >,void>(std::_Wrap_alloc<std::allocator > && _Al) Line 1731 C++
WenKuInfoProcess.exe!std::basic_string<char,std::char_traits,std::allocator >::basic_string<char,std::char_traits,std::allocator >(std::basic_string<char,std::char_traits,std::allocator > && _Right) Line 2055 C++
WenKuInfoProcess.exe!std::pair<std::basic_string<char,std::char_traits,std::allocator > const ,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >::pair<std::basic_string<char,std::char_traits,std::allocator > const ,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> ><std::basic_string<char,std::char_traits,std::allocator >,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer>,void,0>(std::basic_string<char,std::char_traits,std::allocator > && _Val1, nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> && _Val2) Line 188 C++
WenKuInfoProcess.exe!std::allocator<std::_Tree_node<std::pair<std::basic_string<char,std::char_traits,std::allocator > const ,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >,void *> >::construct<std::pair<std::basic_string<char,std::char_traits,std::allocator > const ,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >,std::basic_string<char,std::char_traits,std::allocator >,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >(std::pair<std::basic_string<char,std::char_traits,std::allocator > const ,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> > * _Ptr, std::basic_string<char,std::char_traits,std::allocator > && <_Args_0>, nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> && <_Args_1>) Line 840 C++
WenKuInfoProcess.exe!std::allocator_traits<std::allocator<std::_Tree_node<std::pair<std::basic_string<char,std::char_traits,std::allocator > const ,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >,void *> > >::construct<std::pair<std::basic_string<char,std::char_traits,std::allocator > const ,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >,std::basic_string<char,std::char_traits,std::allocator >,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >(std::allocator<std::_Tree_node<std::pair<std::basic_string<char,std::char_traits,std::allocator > const ,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >,void *> > & _Al, std::pair<std::basic_string<char,std::char_traits,std::allocator > const ,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> > * _Ptr, std::basic_string<char,std::char_traits,std::allocator > && <_Args_0>, nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> && <_Args_1>) Line 960 C++
WenKuInfoProcess.exe!std::_Wrap_alloc<std::allocator<std::_Tree_node<std::pair<std::basic_string<char,std::char_traits,std::allocator > const ,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >,void *> > >::construct<std::pair<std::basic_string<char,std::char_traits,std::allocator > const ,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >,std::basic_string<char,std::char_traits,std::allocator >,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >(std::pair<std::basic_string<char,std::char_traits,std::allocator > const ,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> > * _Ptr, std::basic_string<char,std::char_traits,std::allocator > && <_Args_0>, nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> && <_Args_1>) Line 1096 C++
WenKuInfoProcess.exe!std::_Tree_comp_alloc<std::_Tmap_traits<std::basic_string<char,std::char_traits,std::allocator >,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer>,std::less<std::basic_string<char,std::char_traits,std::allocator > >,std::allocator<std::pair<std::basic_string<char,std::char_traits,std::allocator > const ,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> > >,0> >::_Buynode<std::basic_string<char,std::char_traits,std::allocator >,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >(std::basic_string<char,std::char_traits,std::allocator > && <_Val_0>, nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> && <_Val_1>) Line 902 C++
WenKuInfoProcess.exe!std::_Tree<std::_Tmap_traits<std::basic_string<char,std::char_traits,std::allocator >,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer>,std::less<std::basic_string<char,std::char_traits,std::allocator > >,std::allocator<std::pair<std::basic_string<char,std::char_traits,std::allocator > const ,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> > >,0> >::emplace<std::basic_string<char,std::char_traits,std::allocator >,nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >(std::basic_string<char,std::char_traits,std::allocator > && <_Val_0>, nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> && <_Val_1>) Line 1084 C++
WenKuInfoProcess.exe!nlohmann::detail::parser<nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >::parse_internal(bool keep, nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> & result) Line 3083 C++
WenKuInfoProcess.exe!nlohmann::detail::parser<nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >::parse_internal(bool keep, nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> & result) Line 3150 C++
WenKuInfoProcess.exe!nlohmann::detail::parser<nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >::parse_internal(bool keep, nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> & result) Line 3076 C++
WenKuInfoProcess.exe!nlohmann::detail::parser<nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> >::parse(const bool strict, nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> & result) Line 2941 C++
WenKuInfoProcess.exe!nlohmann::operator>>(std::basic_istream<char,std::char_traits > & i, nlohmann::basic_json<std::map,std::vector,std::basic_string<char,std::char_traits,std::allocator >,bool,__int64,unsigned __int64,double,std::allocator,nlohmann::adl_serializer> & j) Line 13150 C++
WenKuInfoProcess.exe!main(int argc, char * * argv) Line 22 C++
[External Code]

Metadata

Metadata

Assignees

No one assigned

    Labels

    solution: proposed fixa fix for the issue has been proposed and waits for confirmation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions