read access violation: "this" is nullptr

Open
#96 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

Start at include/boost/polygon/detail/polygon_arbitrary_formation.hpp:1028 and reproduce the report with the Windows 11 MSVC 2022 Community debug build described in the issue. Trace why “this” is nullptr and confirm the debug run no longer reports the read access violation.

Written by the indexing model from the issue text.

Description

https://github.com/boostorg/polygon/blob/develop/include/boost/polygon/detail/polygon_arbitrary_formation.hpp#L1028

I don't know where the error is coming from now, I'm building on Windows 11 with MSVC 2022 Community as soon as I build it and run it, my debug program tells me that the line for "this" is nullptr should be responsible. However, it has run on all systems so far without any major problems, at least I hadn't been able to detect any before.

Dominant language
C++
Stars
70
Forks
76
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from boostorg/polygon

All issues in boostorg/polygon

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.