focus-creative-games / hybridclr

HybridCLR是一个特性完整、零成本、高性能、低内存的Unity全平台原生c#热更新解决方案。 HybridCLR is a fully featured, zero-cost, high-performance, low-memory solution for Unity's all-platform native c# hotupdate.
https://code-philosophy.com/
MIT License
6.6k stars 670 forks source link

linux unity6000 不能启动 #138

Closed windyslove closed 4 months ago

windyslove commented 4 months ago

Describe the bug | 描述问题 openkylin使用unity 6000.0.10f1c1 打包linux平台不能启动

Enviroment | 环境 系统下

To Reproduce | 复制步骤 使用官方教程项目直接打包运行 https://github.com/focus-creative-games/hybridclr_trial

Steps to reproduce the behavior :

  1. 执行 HybridCLR / GenerateALL
  2. 执行 Build / BuildAssetsAndCopyToStreammingAssets
  3. 执行 File / Build And Run
  4. 运行可执行程序

Expected behavior | 期望的结果 正常打开程序

Screenshots | 截图或者日志

终端运行输出 /media/DATA/WorkSpaceDemo/hybridclr_trial/Build$ ./hybridclr_trail.x86_64
[UnityMemory] Configuration Parameters - Can be set up in boot.config
"memorysetup-bucket-allocator-granularity=16"
"memorysetup-bucket-allocator-bucket-count=8"
"memorysetup-bucket-allocator-block-size=4194304"
"memorysetup-bucket-allocator-block-count=1"
"memorysetup-main-allocator-block-size=16777216"
"memorysetup-thread-allocator-block-size=16777216"
"memorysetup-gfx-main-allocator-block-size=16777216"
"memorysetup-gfx-thread-allocator-block-size=16777216"
"memorysetup-cache-allocator-block-size=4194304"
"memorysetup-typetree-allocator-block-size=2097152"
"memorysetup-profiler-bucket-allocator-granularity=16"
"memorysetup-profiler-bucket-allocator-bucket-count=8"
"memorysetup-profiler-bucket-allocator-block-size=4194304"
"memorysetup-profiler-bucket-allocator-block-count=1"
"memorysetup-profiler-allocator-block-size=16777216"
"memorysetup-profiler-editor-allocator-block-size=1048576"
"memorysetup-temp-allocator-size-main=4194304"
"memorysetup-job-temp-allocator-block-size=2097152"
"memorysetup-job-temp-allocator-block-size-background=1048576"
"memorysetup-job-temp-allocator-reduction-small-platforms=262144"
"memorysetup-allocator-temp-initial-block-size-main=262144"
"memorysetup-allocator-temp-initial-block-size-worker=262144"
"memorysetup-temp-allocator-size-background-worker=32768"
"memorysetup-temp-allocator-size-job-worker=262144"
"memorysetup-temp-allocator-size-preload-manager=262144"
"memorysetup-temp-allocator-size-nav-mesh-worker=65536"
"memorysetup-temp-allocator-size-audio-worker=65536"
"memorysetup-temp-allocator-size-cloud-worker=32768"
"memorysetup-temp-allocator-size-gfx=262144"
已放弃
UnityPlayer.log The selected window backend is x11
Received signal SIGABRT (6) - code:-6 errno:0 addr:0x3e80000668d
Obtained 17 stack frames.
#0 0x007f544b0c59da in (Unknown)
#1 0x007f544b0cf949 in (Unknown)
#2 0x007f5449e41260 in (Unknown)
#3 0x007f5449e9687b in pthread_kill
#4 0x007f5449e411b6 in raise
#5 0x007f5449e268ba in abort
#6 0x007f5444f9efc4 in (Unknown)
#7 0x007f5445003256 in (Unknown)
#8 0x007f54450454fe in (Unknown)
#9 0x007f5445035d65 in (Unknown)
#10 0x007f5444da173a in il2cpp_init
#11 0x007f544b02a43a in (Unknown)
#12 0x007f544b0b3824 in (Unknown)
#13 0x007f544b0b42bf in PlayerMain(int, char**)
#14 0x007f5449e27f8e in (Unknown)
#15 0x007f5449e28049 in __libc_start_main
#16 0x00000000201029 in (Unknown)

Additional context | 补充信息 Add any other context about the problem here.

pirunxi commented 4 months ago

按照bug反馈模板的要求,提供相关信息给我们的技术支持 https://hybridclr.doc.code-philosophy.com/docs/help/issue 。在新手群中发给他即可,我们会核实查一下。请在QQ上进行后续沟通。

pirunxi commented 4 months ago

感谢。我们已经确认,这个问题是6000.0.10版本引入的global-metadata格式改动引起。目前这个问题同样的在2021.3.39及2022.3.33版本有,但已经在6.2和6.3版本修复了。我们将在下个版本合并6000分支的最新il2cpp代码,解决这个问题。 目前临时解决办法为暂时使用6000.0.9或者更低版本