Skip to content

Commit 110758e

Browse files
author
Christopher Doris
committed
add faq
1 parent e41c253 commit 110758e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docs/make.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ makedocs(
4848
"Python to Julia" => "conversion-to-julia.md",
4949
],
5050
"compat.md",
51+
"faq.md",
5152
"pycall.md",
5253
"releasenotes.md",
5354
]

docs/src/faq.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# FAQ & Troubleshooting
2+
3+
## Heap corruption when using PyTorch ([issue 215](https://github.com/cjdoris/PythonCall.jl/issues/215))
4+
5+
On some systems, you may see an error like the following when using `torch` and `juliacall`:
6+
```text
7+
Python(65251,0x104cf8580) malloc: Heap corruption detected, free list is damaged at 0x600001c17280
8+
*** Incorrect guard value: 1903002876
9+
Python(65251,0x104cf8580) malloc: *** set a breakpoint in malloc_error_break to debug
10+
[1] 65251 abort ipython
11+
```
12+
13+
A solution is to ensure that `juliacall` is imported before `torch`.

0 commit comments

Comments
 (0)