question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

libc++abi: terminating with uncaught exception of type std::length_error: vector

See original GitHub issue

😵 Describe the installation problem

Hi guys! I’ve installed “torch_geometric” on my MAC OS, but when I import it in python code, a c++ error occurs as following:

libc++abi: terminating with uncaught exception of type std::length_error: vector fish: Job 1, ‘python3’ terminated by signal SIGABRT (Abort)

I’ve installed all related package by pip install. And the error seems to be caused by the dynamic C++ library torch_geometric linked to but I cannot figure out why.

Environment

  • PyG version:pyg-nightly-2.0.5.dev20220405.tar.gz
  • PyTorch version:1.11.0
  • OS:MAC
  • Python version:3.9.7
  • CUDA/cuDNN version: No cuda
  • How you installed PyTorch and PyG (conda, pip, source): pip
  • Any other relevant information (e.g., version of torch-scatter): 2.0.9

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
21S003018commented, Jun 18, 2022

I have exactly the same problem! I solved it by uninstall all the depencies: torch-sparse\scatter\cluster\spline-conv. And re-install with pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.11.0+cpu.html.

0reactions
zzyzeyuancommented, Sep 20, 2022

I have exactly the same problem! I solved it by uninstall all the depencies: torch-sparse\scatter\cluster\spline-conv. And re-install with pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.11.0+cpu.html.

It does work! very helpful!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting "terminating with uncaught exception of type std ...
It runs fine and gives me good output, but every time I'm getting an error "libc++abi. dylib: terminating with uncaught exception of type...
Read more >
libc++abi.dylib: terminating with uncaught exception of type ...
It means exactly what it says — you're trying to index into a string using an index that is not valid. The first...
Read more >
std::length_error - cppreference.com
Defines a type of object to be thrown as exception. It reports errors that result from attempts to exceed implementation defined length ...
Read more >
Debug libc++abi.dylib: terminating… | Apple Developer Forums
This message indicates that some C++ code threw a language exception that was never caught and thus terminated the program. If you use...
Read more >
Libc++abi.Dylib: Terminating With Uncaught Exception of ...
Why Do You Get Libc++abi.Dylib: Terminating With Uncaught Exception of Type NSException ... You get the said exception because you've renamed an action...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found