-
Notifications
You must be signed in to change notification settings - Fork 757
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
MallocCrash on Ubuntu with 4.20 when importing module #555
Comments
In the UE4.20 installation at UnrealEngine/Engine/Build/BatchFiles/Linux/SetupToolchain.sh they are setting the clang version to 5.
It looks like 4.21 will use clang 6.0.1, so I will try building with that. |
This error also occurs in 4.21 with the v12_clang-6.0.1 toolchain. @ishyesh Have you run into this problem - not being able to import modules such as asyncio or requests? |
If the module that is being imported is in a directory, like asyncio, then this error occurs. If it is a file, like six.py, then there is no error. |
The changes in PR #644 fix some of the package import issues, or at least work around them. Another problem was due to my using the wrong OpenSSL version (1.1.0, with _blake2.cpython-37m-x86_64-linux-gnu.so), which was corrected by building Python and UnrealEnginePython using this method. |
Hi just encountered the same problem here. Have tried building an empty c++ project with default python 3.6 or explicitly defined anaconda python 3.6, both had the same issue for malloc crash when import module like numpy. Also tried to update the UnrealEnginePython.cpp as your PR and problem still persists. Could you please shed some light here on any cause or solution? Thanks! |
Hi @frlolero. The solution that worked for me was to use Conan to apply specific versions of OpenSSL (OpenSSL/1.0.2r@conan/stable) and zlib during the build of my project. Adam Rhen wrote some tools to make this easier and he talks about them in this article. |
Hi,
I can't figure out why importing some modules causes a crash.
The OS is Pop!_OS 18.04 LTS, and have also reproduced this on Ubuntu 18.04.
The UE4 version is 4.20
UnrealEnginePython branch is master.
Python version is 3.6.6
The system has been modified by adding a symlink /usr/include/python3.6/x86_64-linux-gnu/python3.6m/pyconfig.h which points to /usr/include/x86_64-linux-gnu/python3.6m/pyconfig.h, per issue #477
When working in the UE4 Editor, importing some modules, such as asyncio, causes a crash. It might only crash when importing a module that depends on a shared library. Running with gdb, the error looks like:
The backtrace is available in this gist. Lines 17 through 20, and 223 look most relevant.
The python path looks like:
Pip can see asyncio:
To reproduce this on an Ubuntu 18.04 or Pop!_OS 18.04 machine with Python3.6 and asyncio module:
Is the problem that not all modules are being loaded into the dictionaries? I don't know how to work around this and would really appreciate any suggestions. Thanks in advance!
The text was updated successfully, but these errors were encountered: