You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the issue you have?
After getting the latest version of this json library from its github repository my program started to crash randomly. It did not crash with the previous version. The reason of the crash seems to be an exception that was not thrown before. From the source code it seems that 316 is thrown during dumping the json object which I wouldn't ever anticipate. Why would dumping fail? The description of the said exception does not help me to understand its real cause.
Please describe the steps to reproduce the issue. Can you provide a small but working code example?
My program has to sometimes run for more than 12h to get this exception. I have no idea how to reproduce it.
What is the expected behavior?
Well if this is a valid exception that users must 100% be prepared for then I'd have expected some documentation about it. Although I must admit getting an exception from the dump call feels unnatural.
And what is the actual behavior instead?
Seems that calls to the dump function can throw an exception that wasn't thrown before with the old version of the lib that I had.
Which compiler and operating system are you using? Is it a supported compiler?
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
Ubuntu server
What is the issue you have?
After getting the latest version of this json library from its github repository my program started to crash randomly. It did not crash with the previous version. The reason of the crash seems to be an exception that was not thrown before. From the source code it seems that 316 is thrown during dumping the json object which I wouldn't ever anticipate. Why would dumping fail? The description of the said exception does not help me to understand its real cause.
Please describe the steps to reproduce the issue. Can you provide a small but working code example?
My program has to sometimes run for more than 12h to get this exception. I have no idea how to reproduce it.
What is the expected behavior?
Well if this is a valid exception that users must 100% be prepared for then I'd have expected some documentation about it. Although I must admit getting an exception from the dump call feels unnatural.
And what is the actual behavior instead?
Seems that calls to the dump function can throw an exception that wasn't thrown before with the old version of the lib that I had.
Which compiler and operating system are you using? Is it a supported compiler?
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
Ubuntu server
Did you use a released version of the library or the version from the
developbranch?Used this one from yesterday:
https://github.com/nlohmann/json/tree/develop/single_include/nlohmann
If you experience a compilation error: can you compile and run the unit tests?