open-source-parsers / open-source-parsers/jsoncpp

JsonCpp failed to run "jsoncpp_readerwriter" and "jsoncpp_readerwriter_json_checker" tests on release and debug configuration with MSVC on windows x86 and x64

Open
#1,392 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug build
Dominant language
C++
Stars
8.9k
Forks
2.7k
Avg merge
31m
Merged PRs (30d)
1

Description

Hi All,

The MSVC team recently test JsonCpp project and found JsonCpp failed to run "jsoncpp_readerwriter" and "jsoncpp_readerwriter_json_checker" tests on release and debug configuration on Windows_x86 and windows_x64. Below are details of our issue:

Describe the bug
JsonCpp failed to run "jsoncpp_readerwriter" and "jsoncpp_readerwriter_json_checker" tests on release and debug configuration with MSVC on windows x86 and x64. Could you please help look at this issue or provide some workarounds? Thanks in advance.

Expected behavior
For JsonCpp x86 and x64, "jsoncpp_readerwriter" and "jsoncpp_readerwriter_json_checker" tests should be run pass on the windows.

To Reproduce on Windows_x64

  1. git clone https://github.com/open-source-parsers/jsoncpp open-source-parsers\jsoncpp  F:\gitP\open-source-parsers\jsoncpp
  2. mkdir cd F:\gitP\open-source-parsers\jsoncpp\build_amd64
  3. cd cd F:\gitP\open-source-parsers\jsoncpp\build_amd64
  4. cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF .. 2>&1
  5. msbuild /m /p:Platform=x64 /p:Configuration=Release ALL_BUILD.vcxproj /t:Rebuild 2>&1
  6. ctest -C Release --output-on-failure 2>&1

Setup
VS 2019 + Windows Server 2019

Additional context
test logs
test.log
test.log.2.out test.log.2.txt

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the listed CMake, MSBuild, and CTest commands on Windows, then inspect test.log and test.log.2.txt. Focus on the jsoncpp_readerwriter and jsoncpp_readerwriter_json_checker tests across the stated x86/x64 and Debug/Release configurations. Done means both tests pass in all requested configurations.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.