20tab / UnrealEnginePython

Embed Python in Unreal Engine 4
MIT License
2.75k stars 746 forks source link

android Packaging, if(run)then crash #857

Open Tibony opened 4 years ago

Tibony commented 4 years ago

Additional Non-Asset Directories To Copy : Scripts stdlib.zip file is decompressed \Scripts\ue_site.py \Scripts\stdlib

Log: D/UE4: [2020.08.21-01.16.28:332][ 0]LogMoviePlayer: Initializing movie player D/UE4: [2020.08.21-01.16.28:355][ 0]LogPython: Warning: Setting Base Path to /storage/emulated/0/UE4Game/PythonPlugin4_22/PythonPlugin4_22/Content/Scripts/stdlib.zip:/storage/emulated/0/UE4Game/PythonPlugin4_22/PythonPlugin4_22/Content/Scripts

--------- beginning of crash

why?

Tibony commented 4 years ago

if //FString BasePythonPath = FinalPath / FString(TEXT("stdlib.zip")) + FString(":") + FinalPath; FString BasePythonPath = FinalPath / FString(TEXT("stdlib")) + FString(":") + FinalPath; then Log: D/UE4: [2020.08.21-07.07.02:034][ 0]LogMoviePlayer: Initializing movie player D/UE4: [2020.08.21-07.07.02:036][ 0]LogPython: Warning: Setting Base Path to /storage/emulated/0/UE4Game/APython4_22/APython4_22/Content/Scripts/stdlib:/storage/emulated/0/UE4Game/APython4_22/APython4_22/Content/Scripts A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 9935 (Thread-2), pid 9903 (MainThread-UE4)

KyooSikLee commented 2 years ago

For Future Reference: I also had this problem. Turned out that I mistakenly zipped the stdlib.zip file. To add third party library to Android app, I unzipped, add library and then zipped it again. I accidently zipped like stdlib.zip/stdlib/...otherFiles. So better check how it is zipped.