找回密码
 立即注册
查看: 370|回复: 0

xlua崩溃

[复制链接]
发表于 2021-9-16 12:27 | 显示全部楼层 |阅读模式
崩溃日志
C:\Users\user\AppData\Local\Temp\Unity\Editor\Crashes
  1. Unity Editor by Unity Technologies [version: Unity 2020.3.11f1_99c7afb366b3]
  2. Unity.exe received signal from system:0in module Unity.exe at 0033:8da5b6aa.
  3. Error occurred at 2021-08-30_205944.
  4. C:\Program Files\Unity Hub\Unity\Editor\Unity.exe, run by user.68%physical memory in use.16319 MB physical memory [5103MB free].2603 MB process peak paging file [2568MB used].3386 MB process peak working set[3376MB used].
  5. System Commit Total/Limit/Peak: 13631MB/31679MB/13698MB
  6. System Physical Total/Available: 16319MB/5103MB
  7. System Process Count:214
  8. System Thread Count:2913
  9. System Handle Count:117331
  10. Disk space data for 'C:\Users\user\AppData\Local\Temp\Unity\Editor\Crashes\Crash_2021-08-30_125935277\':65626095616 bytes free of 480101003264 total.
  11. Context:
  12. RDI:0x000000c753f2c3e8  RSI:0x000000c753f2c540  RAX:0x000000c753f2ba00
  13. RBX:0x0000000000000020  RCX:0x000000c753f2ba00  RDX:0x0000000000000000
  14. RIP:0x00007ff78da5b6aa  RBP:0x000000c753f2ba10  SegCs:0x0000000000000033
  15. EFlags:0x0000000000000202  RSP:0x000000c753f2b910  SegSs:0x000000000000002b
  16. R8:0x00000000000004d0  R9:0x0000000000000000  R10:0x000000c753f2b948
  17. R11:0x000000c753f2ba00  R12:0x00007ff78bd40000  R13:0x000000c753f3fc60
  18. R14:0x0000000000000000  R15:0x000000c753f2cb40
  19. Bytes at CS:EIP:488d85 c0 040000488d4d f0 ba 09000000
  20. Mono DLL loaded successfully at 'C:\Program Files\Unity Hub\Unity\Editor\Data\MonoBleedingEdge\EmbedRuntime\mono-2.0-bdwgc.dll'.
  21. Stack Trace of Crashed Thread 10092:
  22. ERROR: SymGetSymFromAddr64,GetLastError: '试图访问无效的地址。
  23. ' (Address: 00007FF78DA5B6AA)0x00007FF78DA5B6AA(Unity)(function-name not available)
  24. ERROR: SymGetSymFromAddr64,GetLastError: '试图访问无效的地址。
  25. ' (Address: 00007FF78D893CC7)0x00007FF78D893CC7(Unity)(function-name not available)
  26. ERROR: SymGetSymFromAddr64,GetLastError: '试图访问无效的地址。
  27. ' (Address: 00007FF790DFE342)0x00007FF790DFE342(Unity)(function-name not available)
  28. ERROR: SymGetSymFromAddr64,GetLastError: '试图访问无效的地址。
  29. ' (Address: 00007FF7911C7379)0x00007FF7911C7379(Unity)(function-name not available)
  30. ERROR: SymGetSymFromAddr64,GetLastError: '试图访问无效的地址。
  31. ' (Address: 00007FF790DCBF28)0x00007FF790DCBF28(Unity)(function-name not available)0x00007FFF484D217F(ntdll) _chkstk
  32. 0x00007FFF48481454(ntdll) RtlRaiseException
  33. 0x00007FFF484D0CAE(ntdll) KiUserExceptionDispatcher
  34. 0x00007FFF416261DB(xlua) lua_newthread
  35. 0x00007FFF4161651B(xlua) lua_setlocal
  36. 0x00007FFF4161137D(xlua) lua_callk
  37. 0x00007FFF41634B90(xlua) luaopen_utf8
  38. 0x00007FFF41616BE7(xlua) lua_setlocal
  39. 0x00007FFF41626D5A(xlua) lua_newthread
  40. 0x00007FFF4161651B(xlua) lua_setlocal
  41. 0x00007FFF4161137D(xlua) lua_callk
  42. 0x00007FFF41634B90(xlua) luaopen_utf8
  43. 0x00007FFF41616BE7(xlua) lua_setlocal
  44. 0x00007FFF41626D5A(xlua) lua_newthread
  45. 0x00007FFF4161651B(xlua) lua_setlocal
  46. 0x00007FFF4161137D(xlua) lua_callk
  47. 0x00007FFF41634B90(xlua) luaopen_utf8
  48. 0x00007FFF41616BE7(xlua) lua_setlocal
  49. 0x00007FFF41626D5A(xlua) lua_newthread
  50. 0x00007FFF4161651B(xlua) lua_setlocal
  51. 0x00007FFF4161137D(xlua) lua_callk
  52. 0x00007FFF41634B90(xlua) luaopen_utf8
  53. 0x00007FFF41616BE7(xlua) lua_setlocal
  54. 0x00007FFF41626D5A(xlua) lua_newthread
  55. 0x00007FFF4161651B(xlua) lua_setlocal
  56. 0x00007FFF41616EF5(xlua) lua_setlocal
  57. 0x00007FFF41616790(xlua) lua_setlocal
  58. 0x00007FFF41611F21(xlua) lua_pcallk
  59. 0x00007FFF4163E875(xlua) lua_pcall
复制代码
1.使用编译的64位的xlua.dll执行明文的lua文件,会崩溃



2.使用32位的xlua.dll会报错:


  1. publicbyte[]SelfDefineLoader(refstring filepath){string file = filepath.Replace('.','/');string filePath = Application.streamingAssetsPath +"/lua/"+ file +".lua.txt";if(File.Exists(filePath)){return File.ReadAllBytes(filePath);}else{
  2.             UnityEngine.Debug.LogError(filePath);returnnull;}}
复制代码
  1. #!/bin/bash
  2. srcPath=$(pwd)/../Assets/Scripts/lua
  3. destPath=$(pwd)/../Assets/StreamingAssets/lua
  4. luaPath=$(pwd)/lua53/luac.exe
  5. if[-d $destPath ]
  6. then
  7.         rm -rf $destPath
  8. fi
  9. mkdir $destPath
  10. functiongenluabytes(){for file in ` ls $1 `
  11.     doif[-d $1"/"$file ]then
  12.                         srcDir=$1"/"$file
  13.                         descDir=${srcDir/Scripts/StreamingAssets}
  14.                         mkdir $descDir
  15.                         genluabytes $1"/"$file
  16.                  else
  17.             filename=$1"/"$file
  18.             if[[! $filename =~ \.meta$ ]];then
  19.                                 srcFile=$1"/"$file
  20.                                 destFile=${srcFile/Scripts/StreamingAssets}#echo $srcFile#echo $destFile
  21.                                 $luaPath -o $destFile $srcFile
  22.             fi        
  23.         fi
  24.     done
  25. }
  26. genluabytes $srcPath
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2024-11-28 10:44 , Processed in 0.099910 second(s), 26 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表