Skip to content
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

non-std C++ exception when adding snapToPoint={true} #161

Open
geraldbb opened this issue Sep 27, 2023 · 1 comment
Open

non-std C++ exception when adding snapToPoint={true} #161

geraldbb opened this issue Sep 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@geraldbb
Copy link

When adding snapToPoint={true}, the following error is thrown:

non-std C++ exception

ABI49_0_0RCTFatal
-[ABI49_0_0RCTCxxBridge handleError:]
__43-[ABI49_0_0RCTCxxBridge _initializeBridge:]_block_invoke
ABI49_0_0facebook::ABI49_0_0React::ABI49_0_0RCTMessageThread::tryFunc(std::__1::function<void ()> const&)
invocation function for block in ABI49_0_0facebook::ABI49_0_0React::ABI49_0_0RCTMessageThread::runAsync(std::__1::function<void ()>)
__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__
__CFRunLoopDoBlocks
__CFRunLoopRun
CFRunLoopRunSpecific
+[ABI49_0_0RCTCxxBridge runRunLoop]
__NSThread__start__
_pthread_start
thread_start

Here is the complete code:

<GestureHandlerRootView>
    <LineChart.Provider data={data}>
        <LineChart>
            <LineChart.Path />
            <LineChart.CursorCrosshair snapToPoint={true} />
        </LineChart>
    </LineChart.Provider>
</GestureHandlerRootView>

Dependencies:

├─ [email protected]
│  ├─ d3-interpolate-path@^2.2.3
│  ├─ d3-scale@^2
│  ├─ d3-shape@^3.0.1
│  ├─ react-keyed-flatten-children@^1.3.0
│  └─ react-native-redash@^16.1.1

├─ [email protected]
│  ├─ @egjs/hammerjs@^2.0.17
│  ├─ hoist-non-react-statics@^3.3.0
│  ├─ invariant@^2.2.4
│  ├─ lodash@^4.17.21
│  └─ prop-types@^15.7.2

├─ [email protected]
│  ├─ @babel/plugin-transform-object-assign@^7.16.7
│  ├─ @babel/preset-typescript@^7.16.7
│  ├─ convert-source-map@^2.0.0
│  ├─ [email protected]
│  └─ invariant@^2.2.4


@cam-shaw
Copy link
Contributor

cam-shaw commented Jan 6, 2024

@geraldbb Issue is fixed in this PR, but is yet to be released #148
As a workaround, add to your dependency resolutions at least this version of d3-array

 "resolutions": {
    "d3-array": "3.1.6",
  },

@honeybadger26 honeybadger26 added the bug Something isn't working label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants