Giter Site home page Giter Site logo

ant's People

Contributors

actboy168 avatar aimoonchen avatar bsqsbylt avatar cloudwu avatar codesmith-emmy avatar constly avatar dusthand avatar eltociear avatar fangcun010 avatar fangyidong avatar hanxi avatar henghuh avatar huahua132 avatar julywind168 avatar junjie020 avatar kinbei avatar lincolnwty avatar pourtheworld avatar ruochenhua avatar wk34u avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ant's Issues

编译报错 怎么解决下?

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\stdatomic.h(15): fatal error C1189: #error: <stdatomic.h> is not yet supported when compiling as C, but this is planned for a future release.

glb bug

我使用 的一个 glb 动画模型 来源

将 simple 中的模型替换为其中的 Knight.glb 后报错 (以前还能显示的)

 -- prefab = "/pkg/ant.test.simple/resource/miner/miner.gltf|mesh.prefab",
prefab = "/pkg/ant.test.simple/resource/Knight.glb|mesh.prefab",

引擎版本: 当前最新版本
系统: mac

可能是 #95 修复之后带来的问题
报错信息:

...
[2024-03-15 02:39:27.78][INFO ]( ant.window|window )(/Users/windy/github/ant/pkg/ant.world/main.lua:745) world initialized
[2024-03-15 02:39:27.78][INFO ]( ant.window|window )(/Users/windy/github/ant/pkg/ant.world/main.lua:545) System changed.
[2024-03-15 02:39:27.78][INFO ]( ant.window|window )(/Users/windy/github/ant/pkg/ant.world/main.lua:576) System refreshed.
[2024-03-15 02:39:28.48][ERROR]( ant.window|window )policy `ant.modifier|modifier` is not defined.
stack traceback:
        ( service:7 )
        /Users/windy/github/ant/pkg/ant.world/policy.lua:33: in local 'import_policy'
        /Users/windy/github/ant/pkg/ant.world/policy.lua:46: in field 'verify'
        /Users/windy/github/ant/pkg/ant.world/main.lua:172: in upvalue 'create_entity_template'
        /Users/windy/github/ant/pkg/ant.world/main.lua:196: in upvalue 'create_template'
        /Users/windy/github/ant/pkg/ant.world/main.lua:225: in upvalue 'prefab_instance'
        /Users/windy/github/ant/pkg/ant.world/main.lua:257: in method '_flush_instance_queue'
        /Users/windy/github/ant/pkg/ant.world/entity_system.lua:62: in local 'f'
        /Users/windy/github/ant/pkg/ant.world/main.lua:382: in upvalue 'update_func'
        /Users/windy/github/ant/pkg/ant.world/main.lua:407: in field '_pipeline_update'
        /Users/windy/github/ant/pkg/ant.world/main.lua:591: in method 'pipeline_update'
        /Users/windy/github/ant/pkg/ant.window/service/window.lua:86: in upvalue 'f'

Editor "Edit > Undo" not work.

System: Windows 11
Represents step:

  1. Build with luamake all --mode release
  2. Open Editor
  3. "+ Create" > EmptyNode
  4. Press Ctrl+Z in keyboard or menu item "Edit > Undo" is not work.

Editor crash when delete Entity object.

System: Windows 11
Represents step:

  1. Build with luamake all --mode release
  2. Open Editor
  3. "+ Create" > Geometry > Cube
  4. Select "cube1" in Entity
  5. Delete "cube1" Entity by click "Delete" in keyboard.
    image
  6. Editor freeze and show Error log.
    image

can‘t find 'fmod.dll', 'fmodstudio.dll'

win10, msvc, debug
lua.exe text/simple/main.lua
系统错误:
由于找不到 fmod.dll, fmodstudio.dll, 无法继续执行代码。重新安装程序可能会解决此问题。
copy fmod_vc.lib, fmod.dll, fmodstudio_vc.lib, fmodstudio.dll from 3rd/fmod/windows to bin/
可以运行测试用例

test/features hitch_node 不可用

复现

  • 运行 test/features demo
  • 选择 feature hitch_node,触发

Log

PS E:\ant> .\bin\msvc\debug\lua.exe .\test\features\main.lua
[2024-01-18 20:16:24.29][INFO ]( ant.window|window )(ant.window|window:2) startup.
[2024-01-18 20:16:24.29][INFO ]( root )(root:1) startup.
[2024-01-18 20:16:24.29][INFO ]( timer )(timer:3) startup.
[2024-01-18 20:16:24.29][INFO ]( subprocess )(subprocess:5) startup.
[2024-01-18 20:16:24.29][INFO ]( ant.hwi|bgfx )(ant.hwi|bgfx:4) startup.
[2024-01-18 20:16:24.29][INFO ]( io )(io:6) startup.
[2024-01-18 20:16:24.29][INFO ]( logger )(logger:7) startup.
3rd/bgfx/src/nvapi.cpp (176): BGFX WARN NVAPI supported.
3rd/bgfx/src/renderer_d3d11.cpp (948): BGFX WARN Direct3D11 device feature level 12.1.
[2024-01-18 20:16:24.32][INFO ]( ant.window|boot )(ant.window|boot:8) startup.
[2024-01-18 20:16:24.37][INFO ]( ant.window|world )(ant.window|world:9) startup.
[2024-01-18 20:16:24.42][INFO ]( ant.rmlui|rmlui )(ant.rmlui|rmlui:10) startup.
[2024-01-18 20:16:24.65][INFO ]( io )(E:/ant/pkg/ant.compile_resource/tool_exe_path.lua:39) Use the debug tools path, but release path can greatly improve resource compilation efficiency, make sure build the release tool path: luamake tools -mode release
[2024-01-18 20:16:24.65][INFO ]( io )(E:/ant/pkg/ant.compile_resource/tool_exe_path.lua:47) Use tools path:
[2024-01-18 20:16:24.68][INFO ]( ant.resource_manager|resource )(ant.resource_manager|resource:11) startup.
[2024-01-18 20:16:24.70][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:712) world initializing
[2024-01-18 20:16:24.76][INFO ]( ant.window|world )(E:/ant/pkg/ant.render/viewport/state.lua:30) scene viewrect:        0       0       1280    720
[2024-01-18 20:16:24.76][INFO ]( ant.window|world )(E:/ant/pkg/ant.render/viewport/state.lua:31) scene ratio:   0.75
[2024-01-18 20:16:24.76][INFO ]( ant.window|world )(E:/ant/pkg/ant.render/viewport/state.lua:32) device viewport:       0       0       1300    731
[2024-01-18 20:16:24.85][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:720) world initialized
[2024-01-18 20:16:24.85][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:545) System changed.
[2024-01-18 20:16:24.85][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.anim_ctrl|keyframe_system.component_init` is an empty method, it has been ignored. (E:/ant/pkg/ant.anim_ctrl/keyframe.lua:81)
[2024-01-18 20:16:24.85][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.daynight|daynight_system.entity_remove` is an empty method, it has been ignored. (E:/ant/pkg/ant.daynight/daynight.lua:102)
[2024-01-18 20:16:24.85][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.test.features|init_system.camera_usage` is an empty method, it has been ignored. (E:/ant/test/features/pkg/ant.test.features/init_system.lua:39)
[2024-01-18 20:16:24.85][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.widget|physic_bounding_system.widget` is an empty method, it has been ignored. (E:/ant/pkg/ant.widget/widget.lua:166)
[2024-01-18 20:16:24.85][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.anim_ctrl|keyframe_system.component_init` is an empty method, it has been ignored. (E:/ant/pkg/ant.anim_ctrl/keyframe.lua:81)
[2024-01-18 20:16:24.85][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.daynight|daynight_system.entity_remove` is an empty method, it has been ignored. (E:/ant/pkg/ant.daynight/daynight.lua:102)
[2024-01-18 20:16:24.85][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.test.features|init_system.camera_usage` is an empty method, it has been ignored. (E:/ant/test/features/pkg/ant.test.features/init_system.lua:39)
[2024-01-18 20:16:24.85][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.widget|physic_bounding_system.widget` is an empty method, it has been ignored. (E:/ant/pkg/ant.widget/widget.lua:166)
[2024-01-18 20:16:24.89][INFO ]( ant.efk|efk )(ant.efk|efk:12) startup.
3rd/bgfx/src/renderer_d3d11.cpp (4528): BGFX WARN sRGB not supported for texture format 85
[2024-01-18 20:16:26.92][INFO ]( ant.window|world )(E:/ant/pkg/ant.render/viewport/window_resize.lua:38) device_size:   0       0       1300    731
[2024-01-18 20:16:26.92][INFO ]( ant.window|world )(E:/ant/pkg/ant.render/viewport/window_resize.lua:39) main viewrect: 0       0       1280    720
[2024-01-18 20:16:26.98][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:575) System refreshed.
[2024-01-18 20:16:26.98][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:545) System changed.
[2024-01-18 20:16:26.98][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.anim_ctrl|keyframe_system.component_init` is an empty method, it has been ignored. (E:/ant/pkg/ant.anim_ctrl/keyframe.lua:81)
[2024-01-18 20:16:26.98][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.daynight|daynight_system.entity_remove` is an empty method, it has been ignored. (E:/ant/pkg/ant.daynight/daynight.lua:102)
[2024-01-18 20:16:26.98][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.test.features|init_system.camera_usage` is an empty method, it has been ignored. (E:/ant/test/features/pkg/ant.test.features/init_system.lua:39)
[2024-01-18 20:16:26.98][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.widget|physic_bounding_system.widget` is an empty method, it has been ignored. (E:/ant/pkg/ant.widget/widget.lua:166)
[2024-01-18 20:16:27.01][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:575) System refreshed.
[2024-01-18 20:16:27.03][INFO ]( ant.window|world )(E:/ant/pkg/ant.render/viewport/window_resize.lua:38) device_size:   0       0       1300    731
[2024-01-18 20:16:27.03][INFO ]( ant.window|world )(E:/ant/pkg/ant.render/viewport/window_resize.lua:39) main viewrect: 0       0       1280    720
[2024-01-18 20:16:29.78][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:545) System changed.
[2024-01-18 20:16:29.78][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.anim_ctrl|keyframe_system.component_init` is an empty method, it has been ignored. (E:/ant/pkg/ant.anim_ctrl/keyframe.lua:81)
[2024-01-18 20:16:29.78][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.daynight|daynight_system.entity_remove` is an empty method, it has been ignored. (E:/ant/pkg/ant.daynight/daynight.lua:102)
[2024-01-18 20:16:29.78][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.test.features|init_system.camera_usage` is an empty method, it has been ignored. (E:/ant/test/features/pkg/ant.test.features/init_system.lua:39)
[2024-01-18 20:16:29.78][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.widget|physic_bounding_system.widget` is an empty method, it has been ignored. (E:/ant/pkg/ant.widget/widget.lua:166)
[2024-01-18 20:16:29.79][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:575) System refreshed.
[2024-01-18 20:16:29.81][ERROR]( ant.window|world )`read `/pkg/vaststars.resources/materials/hitch/hitch_compute.material|source.ant` failed.
stack traceback:
        ( service:11 )
        E:/ant/pkg/ant.io/main.lua:7: in upvalue 'readall'
        E:/ant/pkg/ant.io/main.lua:12: in field 'readall'
        E:/ant/pkg/ant.resource_manager/thread/material.lua:223: in upvalue 'material_create'
        E:/ant/pkg/ant.resource_manager/thread/material.lua:248: in local 's'
        ( service:9 )
        E:/ant/pkg/ant.asset/async.lua:13: in field 'material_create'
        E:/ant/pkg/ant.asset/ext_material.lua:13: in field 'loader'
        E:/ant/pkg/ant.asset/main.lua:26: in field 'resource'
        E:/ant/pkg/ant.asset/material.lua:38: in local 'f'
        E:/ant/pkg/ant.ecs/main.lua:389: in field '_pipeline_entity_init'
        E:/ant/pkg/ant.ecs/main.lua:56: in method '_flush_entity_queue'
        E:/ant/pkg/ant.ecs/entity_system.lua:72: in local 'f'
        E:/ant/pkg/ant.ecs/main.lua:389: in upvalue 'update_func'
        E:/ant/pkg/ant.ecs/main.lua:414: in field '_pipeline_update'
        E:/ant/pkg/ant.ecs/main.lua:585: in method 'pipeline_update'
        E:/ant/pkg/ant.window/service/world.lua:95: in upvalue 'f'

editor 报错

复现步骤:
1.运行 .\bin\msvc\release\ant.exe tools/editor/main.lua
2.编辑器运行后,鼠标右键控制camera转圈晃动

full.log

出错log:


[2024-05-14 15:41:43.38][INFO ]( ant.window|window )(D:/workspace/ant/pkg/ant.render/viewport/state.lua:50) scene scale ratio:  1.0
[2024-05-14 15:41:43.38][INFO ]( ant.window|window )(D:/workspace/ant/pkg/ant.render/viewport/state.lua:52) scene width/hegiht: 1.61
[2024-05-14 15:41:43.38][INFO ]( ant.window|window )(D:/workspace/ant/pkg/ant.render/viewport/state.lua:53) device width/hegiht:        1.61
[2024-05-14 15:41:58.55][INFO ]( ant.window|window )(...space/ant/pkg/ant.objcontroller/pickup/pickup_system.lua:297) not found any eid
[2024-05-14 15:42:17.78][ERROR]( ant.window|window ) Invalid near and far after cliped, zn must >= 0 and zf > zn, where zn: 9223372036854775808.000000, zf: -9223372036854775808.000000  
stack traceback:
        ( service:6 )
        D:/workspace/ant/pkg/ant.render/shadow/shadow_system.lua:353: in local 'func'
        D:/workspace/ant/pkg/ant.world/main.lua:378: in upvalue 'update_func'
        D:/workspace/ant/pkg/ant.world/main.lua:403: in field '_pipeline_update'
        D:/workspace/ant/pkg/ant.world/main.lua:587: in method 'pipeline_update'
        D:/workspace/ant/pkg/ant.window/service/window.lua:76: in upvalue 'f'`

bug: fail to running simple example

步骤:

  • vs x64 native 编译 luamake
  • 进入 ant 仓库目录执行 luamake 进行编译,编译成功
    运行:
  • 运行 bin\msvc\debug\lua.exe test\simple\main.lua
D:\work\engine\ant>bin\msvc\debug\lua.exe test\simple\main.lua
[2023-12-29 13:15:15.25][INFO ]( ant.window|window )(ant.window|window:2) startup.
[2023-12-29 13:15:15.25][INFO ]( timer )(timer:3) startup.
[2023-12-29 13:15:15.25][INFO ]( ant.hwi|bgfx )(ant.hwi|bgfx:4) startup.
[2023-12-29 13:15:15.25][INFO ]( subprocess )(subprocess:5) startup.
[2023-12-29 13:15:15.25][INFO ]( root )(root:1) startup.
[2023-12-29 13:15:15.25][INFO ]( io )(io:6) startup.
[2023-12-29 13:15:15.25][INFO ]( logger )(logger:7) startup.
[2023-12-29 13:15:15.28][INFO ]( ant.window|boot )(ant.window|boot:8) startup.
3rd/bgfx/src/renderer_d3d11.cpp (948): BGFX WARN Direct3D11 device feature level 12.1.
[2023-12-29 13:15:15.33][INFO ]( ant.window|world )(ant.window|world:9) startup.
[2023-12-29 13:15:15.36][INFO ]( ant.rmlui|rmlui )(ant.rmlui|rmlui:10) startup.
[2023-12-29 13:15:15.47][ERROR]( io )No valid tool paths, make sure [release/debug] sub path contain tools: shaderc, texturec, gltf2ozz
stack traceback:
        ( service:6 )
        D:/work/ant/ant2/pkg/ant.compile_resource/tool_exe_path.lua:43: in local 'find_bindir'
        D:/work/ant/ant2/pkg/ant.compile_resource/tool_exe_path.lua:46: in local 'initfunc'
        D:/work/ant/ant2/engine/packagemanager.lua:67: in global 'require'
        ...rk/ant/ant2/pkg/ant.compile_resource/material/shader.lua:1: in local 'initfunc'
        D:/work/ant/ant2/engine/packagemanager.lua:67: in global 'require'
        ...k/ant/ant2/pkg/ant.compile_resource/material/toolset.lua:1: in local 'initfunc'
        D:/work/ant/ant2/engine/packagemanager.lua:67: in global 'require'
        ...k/ant/ant2/pkg/ant.compile_resource/material/compile.lua:4: in local 'initfunc'
        D:/work/ant/ant2/engine/packagemanager.lua:67: in global 'require'
        ...nt/ant2/pkg/ant.compile_resource/model/export_prefab.lua:4: in local 'initfunc'
        D:/work/ant/ant2/engine/packagemanager.lua:67: in global 'require'
        D:/work/ant/ant2/pkg/ant.compile_resource/model/glb.lua:1: in local 'initfunc'
        D:/work/ant/ant2/engine/packagemanager.lua:67: in global 'require'
        D:/work/ant/ant2/pkg/ant.compile_resource/main.lua:40: in local 'initfunc'
        D:/work/ant/ant2/engine/packagemanager.lua:67: in field 'require'
        D:/work/ant/ant2/engine/packagemanager.lua:107: in function 'import_package'
        engine/game/io.lua:162: in local 's'
[2023-12-29 13:15:15.49][INFO ]( ant.resource_manager|resource )(ant.resource_manager|resource:11) startup.
[2023-12-29 13:15:15.50][INFO ]( ant.window|world )(D:/work/ant/ant2/pkg/ant.ecs/main.lua:702) world initializing
[2023-12-29 13:15:15.53][INFO ]( ant.rmlui|rmlui )(ant.rmlui|rmlui:10) quit.
[2023-12-29 13:15:15.53][ERROR]( ant.window|world )resource is not ready.
stack traceback:
        ( service:6 )
        engine/game/io.lua:46: in upvalue 'COMPILE'
        engine/game/io.lua:62: in upvalue 'getresource'
        engine/game/io.lua:82: in upvalue 'getfile'
        engine/game/io.lua:91: in local 's'
        engine/game/io.lua:264: in local 'work'
        engine/game/io.lua:270: in main chunk
        [string "    -- IO thread..."]:10: in main chunk
        ( service:11 )
        [string "package.path = "/engine/?.lua"..."]:7: in upvalue 'call'
        [string "package.path = "/engine/?.lua"..."]:15: in field 'read'
        D:/work/ant/ant2/pkg/ant.io/main.lua:7: in upvalue 'readall'
        D:/work/ant/ant2/pkg/ant.io/main.lua:12: in field 'readall'
        ...rk/ant/ant2/pkg/ant.resource_manager/thread/material.lua:193: in upvalue 'material_create'
        ...rk/ant/ant2/pkg/ant.resource_manager/thread/material.lua:211: in local 's'
resource is not ready.
stack traceback:
        ( service:6 )
        engine/game/io.lua:46: in upvalue 'COMPILE'
        engine/game/io.lua:62: in upvalue 'getresource'
        engine/game/io.lua:82: in upvalue 'getfile'
        engine/game/io.lua:91: in local 's'
        engine/game/io.lua:264: in local 'work'
        engine/game/io.lua:270: in main chunk
        [string "    -- IO thread..."]:10: in main chunk
        ( service:11 )
        [string "package.path = "/engine/?.lua"..."]:7: in upvalue 'call'
        [string "package.path = "/engine/?.lua"..."]:15: in field 'read'
        D:/work/ant/ant2/pkg/ant.io/main.lua:7: in upvalue 'readall'
        D:/work/ant/ant2/pkg/ant.io/main.lua:12: in field 'readall'
        ...rk/ant/ant2/pkg/ant.resource_manager/thread/material.lua:193: in upvalue 'material_create'
        ...rk/ant/ant2/pkg/ant.resource_manager/thread/material.lua:211: in local 's'
resource is not ready.

#71 issue 未完全修复,报错依然可以复现

#71

复现步骤为:
执行 "bin/msvc/debug/lua.exe" "test/simple/main.lua"
在imgui窗口内 按住 鼠标右键 拖动,必定会报:

[2024-02-22 10:48:59.61][ERROR]( ant.window|window )attempt to perform arithmetic on a nil value (upvalue 'mouse_lastx')
stack traceback:
        ( service:2 )
        G:/ant/ant/pkg/ant.camera/camera_controller.lua:255: in local 'f'
        G:/ant/ant/pkg/ant.world/main.lua:389: in upvalue 'update_func'
        G:/ant/ant/pkg/ant.world/main.lua:414: in field '_pipeline_update'
        G:/ant/ant/pkg/ant.world/main.lua:585: in method 'pipeline_update'
        G:/ant/ant/pkg/ant.window/world_instance.lua:79: in upvalue 'f'

can't find msvc.

Microsoft Windows [版本 10.0.22631.3447]
(c) Microsoft Corporation。保留所有权利。

I:\WorkSpace\luamake>luamake.exe
Please use `.\compile\install.bat`.
luamake.exe: I:/WorkSpace/luamake/scripts/env\find_msvc.lua:190: can't find msvc.
stack traceback:
        [C]: in function 'assert'
        I:/WorkSpace/luamake/scripts/env\find_msvc.lua:190: in function 'env.find_msvc.prefix'
        I:/WorkSpace/luamake/scripts/env\msvc.lua:71: in function 'env.msvc.createEnvConfig'
        I:/WorkSpace/luamake/scripts/writer.lua:778: in function 'writer.generate'
        I:/WorkSpace/luamake/scripts/action.lua:48: in function 'action.generate'
        I:/WorkSpace/luamake/scripts/command\build.lua:3: in main chunk
        [C]: in function 'dofile'
        I:/WorkSpace/luamake/scripts/main.lua:11: in local 'command'
        I:/WorkSpace/luamake/scripts/main.lua:25: in main chunk
        [C]: in function 'require'
        (bootstrap.lua):3: in main chunk
        [C]: in ?

I:\WorkSpace\luamake>

mac os 编译不通过

luamake
[1/7] Compile C build/macos/debug/obj/zlib-ng-arm/adler32_neon.obj
FAILED: build/macos/debug/obj/zlib-ng-arm/adler32_neon.obj
clang -MMD -MT build/macos/debug/obj/zlib-ng-arm/adler32_neon.obj -MF build/macos/debug/obj/zlib-ng-arm/adler32_neon.obj.d -std=c17 -Wall -g -mmacosx-version-min=13.3 -I./3rd/zlib-ng -I./3rd/zlib-ng/arch/arm/ -Ibuild/macos/debug/gen-zlib -DDISABLE_RUNTIME_CPU_DETECTION -DHAVE_ARM_ACLE_H -DARM_FEATURES -DARM_NEON -DARM_NEON_HASLD4 -DHAVE_ATTRIBUTE_ALIGNED -DHAVE_BUILTIN_CTZLL -o build/macos/debug/obj/zlib-ng-arm/adler32_neon.obj -c 3rd/zlib-ng/arch/arm/adler32_neon.c
In file included from 3rd/zlib-ng/arch/arm/adler32_neon.c:9:
In file included from ./3rd/zlib-ng/arch/arm/neon_intrins.h:8:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/arm_neon.h:28:2: error: "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard"
#error "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard"
^
3rd/zlib-ng/arch/arm/adler32_neon.c:24:5: error: unknown type name 'uint32x4_t'; did you mean 'uint32_t'?
uint32x4_t adacc = vdupq_n_u32(0);
^~~~~~~~~~
uint32_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint32_t.h:31:22: note: 'uint32_t' declared here
typedef unsigned int uint32_t;
^
3rd/zlib-ng/arch/arm/adler32_neon.c:24:24: error: call to undeclared function 'vdupq_n_u32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
uint32x4_t adacc = vdupq_n_u32(0);
^
3rd/zlib-ng/arch/arm/adler32_neon.c:25:5: error: unknown type name 'uint32x4_t'; did you mean 'uint32_t'?
uint32x4_t s2acc = vdupq_n_u32(0);
^~~~~~~~~~
uint32_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint32_t.h:31:22: note: 'uint32_t' declared here
typedef unsigned int uint32_t;
^
3rd/zlib-ng/arch/arm/adler32_neon.c:26:5: error: unknown type name 'uint32x4_t'; did you mean 'uint32_t'?
uint32x4_t s2acc_0 = vdupq_n_u32(0);
^~~~~~~~~~
uint32_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint32_t.h:31:22: note: 'uint32_t' declared here
typedef unsigned int uint32_t;
^
3rd/zlib-ng/arch/arm/adler32_neon.c:27:5: error: unknown type name 'uint32x4_t'; did you mean 'uint32_t'?
uint32x4_t s2acc_1 = vdupq_n_u32(0);
^~~~~~~~~~
uint32_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint32_t.h:31:22: note: 'uint32_t' declared here
typedef unsigned int uint32_t;
^
3rd/zlib-ng/arch/arm/adler32_neon.c:28:5: error: unknown type name 'uint32x4_t'; did you mean 'uint32_t'?
uint32x4_t s2acc_2 = vdupq_n_u32(0);
^~~~~~~~~~
uint32_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint32_t.h:31:22: note: 'uint32_t' declared here
typedef unsigned int uint32_t;
^
3rd/zlib-ng/arch/arm/adler32_neon.c:30:13: error: call to undeclared function 'vsetq_lane_u32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
adacc = vsetq_lane_u32(s[0], adacc, 0);
^
3rd/zlib-ng/arch/arm/adler32_neon.c:33:5: error: unknown type name 'uint32x4_t'; did you mean 'uint32_t'?
uint32x4_t s3acc = vdupq_n_u32(0);
^~~~~~~~~~
uint32_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint32_t.h:31:22: note: 'uint32_t' declared here
typedef unsigned int uint32_t;
^
3rd/zlib-ng/arch/arm/adler32_neon.c:34:5: error: unknown type name 'uint32x4_t'; did you mean 'uint32_t'?
uint32x4_t adacc_prev = adacc;
^~~~~~~~~~
uint32_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint32_t.h:31:22: note: 'uint32_t' declared here
typedef unsigned int uint32_t;
^
3rd/zlib-ng/arch/arm/adler32_neon.c:36:5: error: unknown type name 'uint16x8_t'; did you mean 'uint16_t'?
uint16x8_t s2_0, s2_1, s2_2, s2_3;
^~~~~~~~~~
uint16_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint16_t.h:31:24: note: 'uint16_t' declared here
typedef unsigned short uint16_t;
^
3rd/zlib-ng/arch/arm/adler32_neon.c:37:33: error: call to undeclared function 'vdupq_n_u16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
s2_0 = s2_1 = s2_2 = s2_3 = vdupq_n_u16(0);
^
3rd/zlib-ng/arch/arm/adler32_neon.c:39:5: error: unknown type name 'uint16x8_t'; did you mean 'uint16_t'?
uint16x8_t s2_4, s2_5, s2_6, s2_7;
^~~~~~~~~~
uint16_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint16_t.h:31:24: note: 'uint16_t' declared here
typedef unsigned short uint16_t;
^
3rd/zlib-ng/arch/arm/adler32_neon.c:46:21: error: expected ';' after expression
uint8x16x4_t d0_d3 = vld1q_u8_x4(buf);
^
;
3rd/zlib-ng/arch/arm/adler32_neon.c:46:9: error: use of undeclared identifier 'uint8x16x4_t'
uint8x16x4_t d0_d3 = vld1q_u8_x4(buf);
^
3rd/zlib-ng/arch/arm/adler32_neon.c:46:22: error: use of undeclared identifier 'd0_d3'
uint8x16x4_t d0_d3 = vld1q_u8_x4(buf);
^
3rd/zlib-ng/arch/arm/adler32_neon.c:46:30: error: call to undeclared function 'vld1q_u8_x4'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
uint8x16x4_t d0_d3 = vld1q_u8_x4(buf);
^
3rd/zlib-ng/arch/arm/adler32_neon.c:50:9: error: unknown type name 'uint16x8x2_t'; did you mean 'uint16_t'?
uint16x8x2_t hsum, hsum_fold;
^~~~~~~~~~~~
uint16_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint16_t.h:31:24: note: 'uint16_t' declared here
typedef unsigned short uint16_t;
^
3rd/zlib-ng/arch/arm/adler32_neon.c:51:13: error: member reference base type 'uint16_t' (aka 'unsigned short') is not a structure or union
hsum.val[0] = vpaddlq_u8(d0_d3.val[0]);
~~~~^~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[2/7] Compile C build/macos/debug/obj/zlib-ng-arm/slide_hash_neon.obj
FAILED: build/macos/debug/obj/zlib-ng-arm/slide_hash_neon.obj
clang -MMD -MT build/macos/debug/obj/zlib-ng-arm/slide_hash_neon.obj -MF build/macos/debug/obj/zlib-ng-arm/slide_hash_neon.obj.d -std=c17 -Wall -g -mmacosx-version-min=13.3 -I./3rd/zlib-ng -I./3rd/zlib-ng/arch/arm/ -Ibuild/macos/debug/gen-zlib -DDISABLE_RUNTIME_CPU_DETECTION -DHAVE_ARM_ACLE_H -DARM_FEATURES -DARM_NEON -DARM_NEON_HASLD4 -DHAVE_ATTRIBUTE_ALIGNED -DHAVE_BUILTIN_CTZLL -o build/macos/debug/obj/zlib-ng-arm/slide_hash_neon.obj -c 3rd/zlib-ng/arch/arm/slide_hash_neon.c
In file included from 3rd/zlib-ng/arch/arm/slide_hash_neon.c:12:
In file included from ./3rd/zlib-ng/arch/arm/neon_intrins.h:8:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/arm_neon.h:28:2: error: "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard"
#error "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard"
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:18:16: error: unknown type name 'uint16x8_t'; did you mean 'uint16_t'?
Z_REGISTER uint16x8_t v;
^~~~~~~~~~
uint16_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint16_t.h:31:24: note: 'uint16_t' declared here
typedef unsigned short uint16_t;
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:19:17: error: expected ';' after expression
uint16x8x4_t p0, p1;
^
;
3rd/zlib-ng/arch/arm/slide_hash_neon.c:19:5: error: use of undeclared identifier 'uint16x8x4_t'
uint16x8x4_t p0, p1;
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:19:18: error: use of undeclared identifier 'p0'
uint16x8x4_t p0, p1;
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:19:22: error: use of undeclared identifier 'p1'
uint16x8x4_t p0, p1;
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:26:9: error: call to undeclared function 'vdupq_n_u16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
v = vdupq_n_u16(wsize);
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:28:24: error: use of undeclared identifier 'uint16x8_t'
n = size / (sizeof(uint16x8_t) * 8);
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:30:9: error: use of undeclared identifier 'p0'
p0 = vld1q_u16_x4(table);
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:30:14: error: call to undeclared function 'vld1q_u16_x4'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
p0 = vld1q_u16_x4(table);
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:31:9: error: use of undeclared identifier 'p1'
p1 = vld1q_u16_x4(table+32);
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:32:26: error: use of undeclared identifier 'p0'
vqsubq_u16_x4_x1(p0, p0, v);
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:32:9: error: call to undeclared function 'vqsubq_u16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
vqsubq_u16_x4_x1(p0, p0, v);
^
./3rd/zlib-ng/arch/arm/neon_intrins.h:22:18: note: expanded from macro 'vqsubq_u16_x4_x1'
out.val[0] = vqsubq_u16(a.val[0], b);
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:32:30: error: use of undeclared identifier 'p0'
vqsubq_u16_x4_x1(p0, p0, v);
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:32:26: error: use of undeclared identifier 'p0'
vqsubq_u16_x4_x1(p0, p0, v);
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:32:30: error: use of undeclared identifier 'p0'
vqsubq_u16_x4_x1(p0, p0, v);
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:32:26: error: use of undeclared identifier 'p0'
vqsubq_u16_x4_x1(p0, p0, v);
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:32:30: error: use of undeclared identifier 'p0'
vqsubq_u16_x4_x1(p0, p0, v);
^
3rd/zlib-ng/arch/arm/slide_hash_neon.c:32:26: error: use of undeclared identifier 'p0'
vqsubq_u16_x4_x1(p0, p0, v);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[3/7] Compile C build/macos/debug/obj/zlib-ng-arm/chunkset_neon.obj
FAILED: build/macos/debug/obj/zlib-ng-arm/chunkset_neon.obj
clang -MMD -MT build/macos/debug/obj/zlib-ng-arm/chunkset_neon.obj -MF build/macos/debug/obj/zlib-ng-arm/chunkset_neon.obj.d -std=c17 -Wall -g -mmacosx-version-min=13.3 -I./3rd/zlib-ng -I./3rd/zlib-ng/arch/arm/ -Ibuild/macos/debug/gen-zlib -DDISABLE_RUNTIME_CPU_DETECTION -DHAVE_ARM_ACLE_H -DARM_FEATURES -DARM_NEON -DARM_NEON_HASLD4 -DHAVE_ATTRIBUTE_ALIGNED -DHAVE_BUILTIN_CTZLL -o build/macos/debug/obj/zlib-ng-arm/chunkset_neon.obj -c 3rd/zlib-ng/arch/arm/chunkset_neon.c
In file included from 3rd/zlib-ng/arch/arm/chunkset_neon.c:6:
In file included from ./3rd/zlib-ng/arch/arm/neon_intrins.h:8:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/arm_neon.h:28:2: error: "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard"
#error "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard"
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:10:9: error: unknown type name 'uint8x16_t'; did you mean 'uint16_t'?
typedef uint8x16_t chunk_t;
^~~~~~~~~~
uint16_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint16_t.h:31:24: note: 'uint16_t' declared here
typedef unsigned short uint16_t;
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:38:14: error: call to undeclared function 'vreinterpretq_u8_u16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*chunk = vreinterpretq_u8_u16(vdupq_n_u16(tmp));
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:38:35: error: call to undeclared function 'vdupq_n_u16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*chunk = vreinterpretq_u8_u16(vdupq_n_u16(tmp));
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:44:14: error: call to undeclared function 'vreinterpretq_u8_u32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*chunk = vreinterpretq_u8_u32(vdupq_n_u32(tmp));
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:44:35: error: call to undeclared function 'vdupq_n_u32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*chunk = vreinterpretq_u8_u32(vdupq_n_u32(tmp));
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:50:14: error: call to undeclared function 'vreinterpretq_u8_u64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*chunk = vreinterpretq_u8_u64(vdupq_n_u64(tmp));
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:50:35: error: call to undeclared function 'vdupq_n_u64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*chunk = vreinterpretq_u8_u64(vdupq_n_u64(tmp));
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:60:14: error: call to undeclared function 'vld1q_u8'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*chunk = vld1q_u8(s);
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:64:5: error: call to undeclared function 'vst1q_u8'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
vst1q_u8(out, *chunk);
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:81:5: error: unknown type name 'uint8x8_t'; did you mean 'uint8_t'?
uint8x8_t ret0, ret1, a, b, perm_vec0, perm_vec1;
^~~~~~~~~
uint8_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint8_t.h:31:23: note: 'uint8_t' declared here
typedef unsigned char uint8_t;
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:82:17: error: call to undeclared function 'vld1_u8'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
perm_vec0 = vld1_u8(permute_table + lut_rem.idx);
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:86:12: error: call to undeclared function 'vtbl1_u8'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ret0 = vtbl1_u8(a, perm_vec0);
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:87:5: error: use of undeclared identifier 'uint8x8x2_t'
uint8x8x2_t ab = {{a, b}};
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:88:12: error: call to undeclared function 'vtbl2_u8'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ret1 = vtbl2_u8(ab, perm_vec1);
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:88:21: error: use of undeclared identifier 'ab'
ret1 = vtbl2_u8(ab, perm_vec1);
^
3rd/zlib-ng/arch/arm/chunkset_neon.c:89:12: error: call to undeclared function 'vcombine_u8'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
return vcombine_u8(ret0, ret1);
^
17 errors generated.
[4/7] Compile C build/macos/debug/obj/zlib-ng-arm/compare256_neon.obj
FAILED: build/macos/debug/obj/zlib-ng-arm/compare256_neon.obj
clang -MMD -MT build/macos/debug/obj/zlib-ng-arm/compare256_neon.obj -MF build/macos/debug/obj/zlib-ng-arm/compare256_neon.obj.d -std=c17 -Wall -g -mmacosx-version-min=13.3 -I./3rd/zlib-ng -I./3rd/zlib-ng/arch/arm/ -Ibuild/macos/debug/gen-zlib -DDISABLE_RUNTIME_CPU_DETECTION -DHAVE_ARM_ACLE_H -DARM_FEATURES -DARM_NEON -DARM_NEON_HASLD4 -DHAVE_ATTRIBUTE_ALIGNED -DHAVE_BUILTIN_CTZLL -o build/macos/debug/obj/zlib-ng-arm/compare256_neon.obj -c 3rd/zlib-ng/arch/arm/compare256_neon.c
In file included from 3rd/zlib-ng/arch/arm/compare256_neon.c:12:
In file included from ./3rd/zlib-ng/arch/arm/neon_intrins.h:8:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/arm_neon.h:28:2: error: "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard"
#error "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard"
^
3rd/zlib-ng/arch/arm/compare256_neon.c:18:9: error: unknown type name 'uint8x16_t'; did you mean 'uint16_t'?
uint8x16_t a, b, cmp;
^~~~~~~~~~
uint16_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint16_t.h:31:24: note: 'uint16_t' declared here
typedef unsigned short uint16_t;
^
3rd/zlib-ng/arch/arm/compare256_neon.c:21:13: error: call to undeclared function 'vld1q_u8'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
a = vld1q_u8(src0);
^
3rd/zlib-ng/arch/arm/compare256_neon.c:24:15: error: call to undeclared function 'veorq_u8'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
cmp = veorq_u8(a, b);
^
3rd/zlib-ng/arch/arm/compare256_neon.c:26:16: error: call to undeclared function 'vgetq_lane_u64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
lane = vgetq_lane_u64(vreinterpretq_u64_u8(cmp), 0);
^
3rd/zlib-ng/arch/arm/compare256_neon.c:26:31: error: call to undeclared function 'vreinterpretq_u64_u8'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
lane = vgetq_lane_u64(vreinterpretq_u64_u8(cmp), 0);
^
6 errors generated.
[6/7] Compile C++ build/macos/debug/obj/render_core/render.obj
ninja: build stopped: subcommand failed.

显示特效时报错

我运行的这个示例:"bin/msvc/release/lua.exe" "test/features/main.lua"
当切换到特效时报错

[2024-02-29 21:37:29.22][ERROR]( ant.window|window )attempt to index a nil value (upvalue 'EFKCTX')
stack traceback:
        ( service:2 )
        G:/ant/ant/pkg/ant.efk/efk.lua:185: in upvalue 'create_efk'
        G:/ant/ant/pkg/ant.efk/efk.lua:198: in upvalue 'init_efk_component'
        G:/ant/ant/pkg/ant.efk/efk.lua:208: in local 'f'
        G:/ant/ant/pkg/ant.world/main.lua:489: in field '_pipeline_entity_init'
        G:/ant/ant/pkg/ant.world/main.lua:56: in method '_flush_entity_queue'
        G:/ant/ant/pkg/ant.world/entity_system.lua:72: in local 'f'
        G:/ant/ant/pkg/ant.world/main.lua:489: in function <G:/ant/ant/pkg/ant.world/main.lua:486>
        G:/ant/ant/pkg/ant.world/main.lua:583: in upvalue 'system_changed'
        G:/ant/ant/pkg/ant.world/main.lua:594: in method 'pipeline_update'
        G:/ant/ant/pkg/ant.window/world_instance.lua:79: in upvalue 'f'

[ERROR]( ant.window|world )attempt to perform arithmetic on a nil value (upvalue 'mouse_lastx')

在我自己的工程里面,某些情况下按鼠标右键会出现下面的报错,没找到稳定复现的手法

[2024-01-24 14:34:01.76][INFO ]( ant.window|world )(G:/ant/pkg/ant.ecs/main.lua:575) System refreshed.
[2024-01-24 14:34:01.76][INFO ]( ant.window|world )(G:/ant/pkg/ant.render/viewport/window_resize.lua:38) device_size:   0       0       1280    720
[2024-01-24 14:34:01.76][INFO ]( ant.window|world )(G:/ant/pkg/ant.render/viewport/window_resize.lua:39) main viewrect: 0       0       1280    720
[2024-01-24 14:34:08.12][ERROR]( ant.window|world )attempt to perform arithmetic on a nil value (upvalue 'mouse_lastx')
stack traceback:
        ( service:9 )
        G:/ant/pkg/ant.camera/camera_controller.lua:257: in local 'f'
        G:/ant/pkg/ant.ecs/main.lua:389: in upvalue 'update_func'
        G:/ant/pkg/ant.ecs/main.lua:414: in field '_pipeline_update'
        G:/ant/pkg/ant.ecs/main.lua:585: in method 'pipeline_update'
        G:/ant/pkg/ant.window/service/world.lua:95: in upvalue 'f'

msvc x64 native: fastio/sha1.c and zip/luazip.c warnings

执行 luamake runtime 有 warnings

clibs/fastio/sha1.c(192): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data
clibs/fastio/sha1.c(193): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data
clibs/zip/luazip.c(174): warning C4267: 'function': conversion from 'size_t' to 'uint32_t', possible loss of data
clibs/zip/luazip.c(170): warning C4244: 'initializing': conversion from 'lua_Integer' to 'int', possible loss of data
clibs/zip/luazip.c(184): warning C4244: 'initializing': conversion from 'lua_Integer' to 'int', possible loss of data
clibs/zip/luazip.c(193): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
clibs/zip/luazip.c(214): warning C4244: 'initializing': conversion from 'lua_Integer' to 'int', possible loss of data
clibs/zip/luazip.c(247): warning C4267: 'function': conversion from 'size_t' to 'uint32_t', possible loss of data
clibs/zip/luazip.c(318): warning C4244: 'initializing': conversion from 'lua_Integer' to 'int', possible loss of data
clibs/zip/luazip.c(482): warning C4244: 'initializing': conversion from 'lua_Integer' to 'int', possible loss of data
clibs/zip/luazip.c(790): warning C4267: 'function': conversion from 'size_t' to 'uint32_t', possible loss of data
clibs/zip/luazip.c(916): warning C4267: '=': conversion from 'size_t' to 'long', possible loss of data
clibs/zip/luazip.c(919): warning C4267: '=': conversion from 'size_t' to 'long', possible loss of data

编辑器模式启动 test/simple 报错

运行:

.\bin\msvc\release\ant.exe .\tools\editor\main.lua .\test\simple

第一个报错:

[2024-05-11 11:45:21.20][ERROR]( ant.window|window ) attempt to index a nil value (field '?')
stack traceback:
        ( service:6 )
        D:/workspace/ant/pkg/ant.render/postprocess/postprocess.lua:61: in field 'set_stage_output'
        D:/workspace/ant/pkg/ant.efk/efk.lua:137: in upvalue 'create_fb'
        D:/workspace/ant/pkg/ant.efk/efk.lua:170: in local 'f'
        D:/workspace/ant/pkg/ant.world/main.lua:475: in local 'changed'
        D:/workspace/ant/pkg/ant.world/main.lua:580: in method 'pipeline_init'
        D:/workspace/ant/pkg/ant.window/service/window.lua:59: in upvalue 'f'

此报错的原因是:

  1. test/simple/graphic_settings.ant 中的 graphic/postprocess.effect.enable = false 配置生效了
  2. pkg/ant.render/postprocess/postprocess.lua 中 frame_graph[effect] == nil
  3. efk.lua,line 137, ifg.set_stage_output("effect", handle) 命中 Error

可以把 test/simple/settings.ant 的 enable 设置为 true,跳过此错误,bug 还在。


触发第二个错误:

// pkg/ant.render/viewport/state.lua, line 27,
assert(refw > refh)

命中断言
注释掉此行,可正确打开编辑器。

test\features: [ERROR]( ant.window|world )duplicate group

  • 运行测试 test\features bin\msvc\debug\lua.exe test\features\main.lua 这时下拉菜单默认选中的是 shadow
  • 将下拉菜单切换到 <all>
  • 将下拉菜单切回 shadow
  • 再将下拉菜单切到 <all>
  • 出现报错
[ERROR]( ant.window|world )duplicate group
stack traceback:
        ( service:9 )
        d:/work/engine/ant/pkg/ant.group/group.lua:15: in field 'register'
        .../test/features/pkg/ant.test.features/test/group_test.lua:22: in local 'f'
        d:/work/engine/ant/pkg/ant.ecs/main.lua:389: in function <d:/work/engine/ant/pkg/ant.ecs/main.lua:384>
        d:/work/engine/ant/pkg/ant.ecs/main.lua:573: in upvalue 'system_changed'
        d:/work/engine/ant/pkg/ant.ecs/main.lua:584: in method 'pipeline_update'
        d:/work/engine/ant/pkg/ant.window/service/world.lua:95: in upvalue 'f'

[ERROR]( ant.window|world )attempt to index a nil value (local 'iter')

Error when launching bin/macos/debug/lua tools/editor/main.lua, failing to show editor:

[2024-01-22 17:03:37.56]INFO (/Users/kusk/Project/ant/pkg/ant.ecs/main.lua:575) System refreshed.
[2024-01-22 17:03:37.56]ERRORattempt to index a nil value (local 'iter')
stack traceback:
( service:9 )
/Users/kusk/Project/ant/pkg/ant.luaecs/ecs.lua:529: in method 'extend'
...kusk/Project/ant/pkg/ant.render/shadow/shadow_system.lua:302: in upvalue 'check_changed'
...kusk/Project/ant/pkg/ant.render/shadow/shadow_system.lua:308: in local 'f'
/Users/kusk/Project/ant/pkg/ant.ecs/main.lua:389: in upvalue 'update_func'
/Users/kusk/Project/ant/pkg/ant.ecs/main.lua:414: in field '_pipeline_update'
/Users/kusk/Project/ant/pkg/ant.ecs/main.lua:585: in method 'pipeline_update'
/Users/kusk/Project/ant/pkg/ant.window/service/world.lua:95: in upvalue 'f'

代码复制重复问题

大版本67d67ad15358b483d35ed31f06af979053b2a5dc <2024/1/31 12:21:35>
文件路径 ant\runtime\common\modules.c 109行

{ "ltask.bootstrap", luaopen_ltask_bootstrap}, 与108行重复,
应修正为 { "ltask.root", luaopen_ltask_root},

test/features 多次切换到 feature efk 触发 duplicate group

复现

  • 运行 test/features demo
  • 选择 feature efk
  • 选择其他 feature
  • 切回 feature efk,触发

efk 是特定的,我尝试了其他 feature 没有问题

Log

PS E:\ant> .\bin\msvc\debug\lua.exe .\test\features\main.lua
[2024-01-18 20:08:56.64][INFO ]( ant.window|window )(ant.window|window:2) startup.
[2024-01-18 20:08:56.64][INFO ]( ant.hwi|bgfx )(ant.hwi|bgfx:4) startup.
[2024-01-18 20:08:56.64][INFO ]( subprocess )(subprocess:5) startup.
[2024-01-18 20:08:56.64][INFO ]( timer )(timer:3) startup.
[2024-01-18 20:08:56.64][INFO ]( root )(root:1) startup.
[2024-01-18 20:08:56.64][INFO ]( io )(io:6) startup.
[2024-01-18 20:08:56.64][INFO ]( logger )(logger:7) startup.
3rd/bgfx/src/nvapi.cpp (176): BGFX WARN NVAPI supported.
3rd/bgfx/src/renderer_d3d11.cpp (948): BGFX WARN Direct3D11 device feature level 12.1.
[2024-01-18 20:08:56.67][INFO ]( ant.window|boot )(ant.window|boot:8) startup.
[2024-01-18 20:08:56.73][INFO ]( ant.window|world )(ant.window|world:9) startup.
[2024-01-18 20:08:56.78][INFO ]( ant.rmlui|rmlui )(ant.rmlui|rmlui:10) startup.
[2024-01-18 20:08:57.03][INFO ]( io )(E:/ant/pkg/ant.compile_resource/tool_exe_path.lua:39) Use the debug tools path, but release path can greatly improve resource compilation efficiency, make sure build the release tool path: luamake tools -mode release
[2024-01-18 20:08:57.03][INFO ]( io )(E:/ant/pkg/ant.compile_resource/tool_exe_path.lua:47) Use tools path:
[2024-01-18 20:08:57.06][INFO ]( ant.resource_manager|resource )(ant.resource_manager|resource:11) startup.
[2024-01-18 20:08:57.07][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:712) world initializing
[2024-01-18 20:08:57.14][INFO ]( ant.window|world )(E:/ant/pkg/ant.render/viewport/state.lua:30) scene viewrect:        0       0       1280    720
[2024-01-18 20:08:57.14][INFO ]( ant.window|world )(E:/ant/pkg/ant.render/viewport/state.lua:31) scene ratio:   0.75
[2024-01-18 20:08:57.14][INFO ]( ant.window|world )(E:/ant/pkg/ant.render/viewport/state.lua:32) device viewport:       0       0       1300    731
[2024-01-18 20:08:57.23][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:720) world initialized
[2024-01-18 20:08:57.23][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:545) System changed.
[2024-01-18 20:08:57.23][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.anim_ctrl|keyframe_system.component_init` is an empty method, it has been ignored. (E:/ant/pkg/ant.anim_ctrl/keyframe.lua:81)
[2024-01-18 20:08:57.23][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.daynight|daynight_system.entity_remove` is an empty method, it has been ignored. (E:/ant/pkg/ant.daynight/daynight.lua:102)
[2024-01-18 20:08:57.25][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.test.features|init_system.camera_usage` is an empty method, it has been ignored. (E:/ant/test/features/pkg/ant.test.features/init_system.lua:39)
[2024-01-18 20:08:57.25][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.widget|physic_bounding_system.widget` is an empty method, it has been ignored. (E:/ant/pkg/ant.widget/widget.lua:166)
[2024-01-18 20:08:57.25][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.anim_ctrl|keyframe_system.component_init` is an empty method, it has been ignored. (E:/ant/pkg/ant.anim_ctrl/keyframe.lua:81)
[2024-01-18 20:08:57.25][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.daynight|daynight_system.entity_remove` is an empty method, it has been ignored. (E:/ant/pkg/ant.daynight/daynight.lua:102)
[2024-01-18 20:08:57.25][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.test.features|init_system.camera_usage` is an empty method, it has been ignored. (E:/ant/test/features/pkg/ant.test.features/init_system.lua:39)
[2024-01-18 20:08:57.25][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.widget|physic_bounding_system.widget` is an empty method, it has been ignored. (E:/ant/pkg/ant.widget/widget.lua:166)
[2024-01-18 20:08:57.28][INFO ]( ant.efk|efk )(ant.efk|efk:12) startup.
[2024-01-18 20:08:59.46][INFO ]( ant.window|world )(E:/ant/pkg/ant.render/viewport/window_resize.lua:38) device_size:   0       0       1300    731
[2024-01-18 20:08:59.46][INFO ]( ant.window|world )(E:/ant/pkg/ant.render/viewport/window_resize.lua:39) main viewrect: 0       0       1280    720
[2024-01-18 20:08:59.51][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:575) System refreshed.
[2024-01-18 20:08:59.51][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:545) System changed.
[2024-01-18 20:08:59.51][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.anim_ctrl|keyframe_system.component_init` is an empty method, it has been ignored. (E:/ant/pkg/ant.anim_ctrl/keyframe.lua:81)
[2024-01-18 20:08:59.51][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.daynight|daynight_system.entity_remove` is an empty method, it has been ignored. (E:/ant/pkg/ant.daynight/daynight.lua:102)
[2024-01-18 20:08:59.51][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.test.features|init_system.camera_usage` is an empty method, it has been ignored. (E:/ant/test/features/pkg/ant.test.features/init_system.lua:39)
[2024-01-18 20:08:59.51][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.widget|physic_bounding_system.widget` is an empty method, it has been ignored. (E:/ant/pkg/ant.widget/widget.lua:166)
[2024-01-18 20:08:59.56][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:575) System refreshed.
[2024-01-18 20:08:59.57][INFO ]( ant.window|world )(E:/ant/pkg/ant.render/viewport/window_resize.lua:38) device_size:   0       0       1300    731
[2024-01-18 20:08:59.57][INFO ]( ant.window|world )(E:/ant/pkg/ant.render/viewport/window_resize.lua:39) main viewrect: 0       0       1280    720
3rd/bgfx/src/renderer_d3d11.cpp (4528): BGFX WARN sRGB not supported for texture format 85
[2024-01-18 20:09:02.40][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:545) System changed.
[2024-01-18 20:09:02.40][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.anim_ctrl|keyframe_system.component_init` is an empty method, it has been ignored. (E:/ant/pkg/ant.anim_ctrl/keyframe.lua:81)
[2024-01-18 20:09:02.40][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.daynight|daynight_system.entity_remove` is an empty method, it has been ignored. (E:/ant/pkg/ant.daynight/daynight.lua:102)
[2024-01-18 20:09:02.40][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.test.features|init_system.camera_usage` is an empty method, it has been ignored. (E:/ant/test/features/pkg/ant.test.features/init_system.lua:39)
[2024-01-18 20:09:02.40][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.widget|physic_bounding_system.widget` is an empty method, it has been ignored. (E:/ant/pkg/ant.widget/widget.lua:166)
[2024-01-18 20:09:02.42][INFO ]( ant.efk|efk )(E:/ant/pkg/ant.efk/service/efk.lua:163) Create efk file: /pkg/ant.test.features/assets/efk/miner_efk/miner_dust.efk
[2024-01-18 20:09:02.42][INFO ]( ant.window|world )(...nt/test/features/pkg/ant.test.features/test/efk_test.lua:52) true
[2024-01-18 20:09:02.42][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:575) System refreshed.
[2024-01-18 20:09:04.04][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:545) System changed.
[2024-01-18 20:09:04.04][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.anim_ctrl|keyframe_system.component_init` is an empty method, it has been ignored. (E:/ant/pkg/ant.anim_ctrl/keyframe.lua:81)
[2024-01-18 20:09:04.04][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.daynight|daynight_system.entity_remove` is an empty method, it has been ignored. (E:/ant/pkg/ant.daynight/daynight.lua:102)
[2024-01-18 20:09:04.04][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.test.features|init_system.camera_usage` is an empty method, it has been ignored. (E:/ant/test/features/pkg/ant.test.features/init_system.lua:39)
[2024-01-18 20:09:04.04][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.widget|physic_bounding_system.widget` is an empty method, it has been ignored. (E:/ant/pkg/ant.widget/widget.lua:166)
[2024-01-18 20:09:04.06][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:575) System refreshed.
[2024-01-18 20:09:04.06][INFO ]( ant.efk|efk )(E:/ant/pkg/ant.efk/service/efk.lua:180) Destroy efk file:        /pkg/ant.test.features/assets/efk/miner_efk/miner_dust.efk
[2024-01-18 20:09:05.45][INFO ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:545) System changed.
[2024-01-18 20:09:05.45][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.anim_ctrl|keyframe_system.component_init` is an empty method, it has been ignored. (E:/ant/pkg/ant.anim_ctrl/keyframe.lua:81)
[2024-01-18 20:09:05.45][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.daynight|daynight_system.entity_remove` is an empty method, it has been ignored. (E:/ant/pkg/ant.daynight/daynight.lua:102)
[2024-01-18 20:09:05.46][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.test.features|init_system.camera_usage` is an empty method, it has been ignored. (E:/ant/test/features/pkg/ant.test.features/init_system.lua:39)
[2024-01-18 20:09:05.46][WARN ]( ant.window|world )(E:/ant/pkg/ant.ecs/main.lua:518) `ant.widget|physic_bounding_system.widget` is an empty method, it has been ignored. (E:/ant/pkg/ant.widget/widget.lua:166)
[2024-01-18 20:09:05.46][ERROR]( ant.window|world )duplicate group
stack traceback:
        ( service:9 )
        E:/ant/pkg/ant.group/group.lua:15: in field 'register'
        ...nt/test/features/pkg/ant.test.features/test/efk_test.lua:20: in upvalue 'hitch_test'
        ...nt/test/features/pkg/ant.test.features/test/efk_test.lua:96: in local 'f'
        E:/ant/pkg/ant.ecs/main.lua:389: in function <E:/ant/pkg/ant.ecs/main.lua:384>
        E:/ant/pkg/ant.ecs/main.lua:573: in upvalue 'system_changed'
        E:/ant/pkg/ant.ecs/main.lua:584: in method 'pipeline_update'
        E:/ant/pkg/ant.window/service/world.lua:95: in upvalue 'f'

macos x86 build failed

After make some change, build finished. but running failed.

diff --git a/clibs/zip/make.lua b/clibs/zip/make.lua
index 6a7aa68..9ab8b70 100644
--- a/clibs/zip/make.lua
+++ b/clibs/zip/make.lua
@@ -67,6 +67,16 @@ lm:source_set "zlib-ng-x86" {
             "HAVE_ATTRIBUTE_ALIGNED",
         },
     },
+    clang = {
+        sources = {
+            ZLIBDIR.."arch/x86/x86_features.c",
+        },
+        defines = {
+            "X86_FEATURES",
+            "HAVE_THREAD_LOCAL",
+            "HAVE_ATTRIBUTE_ALIGNED",
+        },
+    },
 }

 lm:source_set "zlib-ng-arm" {
@@ -131,7 +141,7 @@ lm:source_set "zlib-ng" {
         deps = "zlib-ng-x86",
     },
     macos = {
-        deps = "zlib-ng-arm",
+        deps = "zlib-ng-x86",
     },
     ios = {
         deps = "zlib-ng-arm",

重新编译失败

log:

D:\Development\OpenProjects\ant>luamake
[1/23] Compile Res build/msvc/debug/obj/lua/lua.obj
[2/23] lua clibs/ecs/ecs_compile.lua . clibs/ecs/ecs/component.hpp pkg
[3/23] Compile C   build/msvc/debug/obj/ant_openlibs/ant_openlibs.obj
[4/23] Compile C++ build/msvc/debug/obj/ecs/ecs_util.obj
[5/23] Compile C   build/msvc/debug/obj/ant_editor/modules.obj
[6/23] Compile C++ build/msvc/debug/obj/window/window.obj
[7/23] Compile C++ build/msvc/debug/obj/motion_sampler/tween.obj
[8/23] Compile C++ build/msvc/debug/obj/ant_common/main.obj
[9/23] Compile C++ build/msvc/debug/obj/ant_common/progdir.obj
[10/23] Compile C++ build/msvc/debug/obj/ant_common/runtime.obj
[11/23] Compile C++ build/msvc/debug/obj/render_core/queue.obj
[12/23] Compile C++ build/msvc/debug/obj/window/window-1.obj
[13/23] Compile C++ build/msvc/debug/obj/motion_sampler/motion_sampler.obj
[14/23] Compile C++ build/msvc/debug/obj/window/win32_window.obj
[15/23] Compile C++ build/msvc/debug/obj/rmlui_core/Layout.obj
FAILED: build/msvc/debug/obj/rmlui_core/Layout.obj
cl /nologo /showIncludes -c pkg/ant.rmlui/src/core/Layout.cpp /Fobuild/msvc/debug/obj/rmlui_core/Layout.obj /EHsc /Zc:__cplusplus /permissive- /Od /W3 /MDd /FS /Zi /Fdbuild/msvc/debug/obj/rmlui_core/ /Ipkg/ant.rmlui/src /I./3rd/glm /I./3rd/yoga /I./3rd/bee.lua /I./clibs/luabind /Ibuild/msvc/debug/lua54 /D_CRT_SECURE_NO_WARNINGS /D_WIN32_WINNT=0x0601 /DGLM_FORCE_QUAT_DATA_XYZW /DDEBUG -wd5105 /utf-8 /std:c++20
pkg/ant.rmlui/src/core/Layout.cpp(15): error C2065: “YGErrataAbsolutePositioningIncorrect”: 未声明的标识符
pkg/ant.rmlui/src/core/Layout.cpp(14): error C2660: “YGConfigSetErrata”: 函数不接受 1 个参数
D:\Development\OpenProjects\ant\3rd\yoga\yoga/YGConfig.h(93): note: 参见“YGConfigSetErrata”的声明
pkg/ant.rmlui/src/core/Layout.cpp(14): note: 尝试匹配参数列表“(YGConfigRef)”时
[16/23] Copy runtime/common/main.lua bin/msvc/debug/main.lua
[17/23] Compile C++ build/msvc/debug/obj/render/cull.obj
[18/23] Compile C++ build/msvc/debug/obj/scene/scene.obj
[19/23] Compile C++ build/msvc/debug/obj/rmlui_binding/ScriptImpl.obj
[20/23] Compile C++ build/msvc/debug/obj/rmlui_binding/rmlapi.obj
[21/23] Compile C++ build/msvc/debug/obj/render_core/render.obj
[22/23] Compile C++ build/msvc/debug/obj/ecs/ecs_component.obj
ninja: build stopped: subcommand failed.

windows平台拖动文件经过ant窗口时宕机

堆栈如下:
bug_08

我尝试在vaststars中复现,没有成功,后面我猜测了下,估计是因为我的项目中有imgui,我拖动的文件经过imgui窗口时触发的这个宕机。

如果需要的话,我后面可以再研究下这个问题的触发机制。

发现一个ImGui.GetIO()的崩溃

我最近在做切换场景的功能,然后遇到一个imgui的宕机。
bug_07

我研究了下了,应该是ant.imgui里面mian.lua导致的

function ImGuiAnt.DispatchEvent(e)
    ImGuiIO = ImGui.GetIO()
    local func = ImGuiEvent[e.type]
    return func and func(e)
end

调用ImGui.GetIO时 可能得先判断下时机。

因为我在新场景加载了一个比较大的字体,loading时间比较久,在这个期间晃动鼠标,必崩。

Editor memory leaks when toggle maximize window.

System: Windows 11
Represents step:

  1. Build with luamake all --mode release
  2. Open Editor
  3. Click "maximize" in application title bar, and repeat this step, each click will increase about 1~300M memory usage.
    image
    image
    image
    image
    image

Memory usage will slowly to decrease, but only decrease 20% and stops.

空场景创建camera节点后,选择该节点,引擎卡死,命令行出现报错。

image

命令行输出(最下面有堆栈信息):

[2024-01-18 01:24:08.43][INFO ]( ant.window|window )(ant.window|window:2) startup.
[2024-01-18 01:24:08.43][INFO ]( timer )(timer:3) startup.
[2024-01-18 01:24:08.43][INFO ]( ant.hwi|bgfx )(ant.hwi|bgfx:4) startup.
[2024-01-18 01:24:08.43][INFO ]( subprocess )(subprocess:5) startup.
[2024-01-18 01:24:08.43][INFO ]( root )(root:1) startup.
[2024-01-18 01:24:08.43][INFO ]( io )(io:6) startup.
[2024-01-18 01:24:08.43][INFO ]( logger )(logger:7) startup.
3rd/bgfx/src/renderer_d3d11.cpp (948): BGFX WARN Direct3D11 device feature level 12.1.
[2024-01-18 01:24:08.43][INFO ]( ant.window|boot )(ant.window|boot:8) startup.
[2024-01-18 01:24:08.54][INFO ]( ant.window|world )(ant.window|world:9) startup.
[2024-01-18 01:24:08.56][INFO ]( ant.rmlui|rmlui )(ant.rmlui|rmlui:10) startup.
[2024-01-18 01:24:08.65][INFO ]( io )(...nProjects/ant/pkg/ant.compile_resource/tool_exe_path.lua:39) Use the debug tools path, but release path can greatly improve resource compilation efficiency, make sure build the release tool path: luamake tools -mode release
[2024-01-18 01:24:08.65][INFO ]( io )(...nProjects/ant/pkg/ant.compile_resource/tool_exe_path.lua:47) Use tools path:
[2024-01-18 01:24:08.68][INFO ]( ant.resource_manager|resource )(ant.resource_manager|resource:11) startup.
[2024-01-18 01:24:08.70][INFO ]( ant.window|world )(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:712) world initializing
[2024-01-18 01:24:08.78][INFO ]( ant.window|world )(...pment/OpenProjects/ant/pkg/ant.render/viewport/state.lua:30) scene viewrect:     0       0       1280    720
[2024-01-18 01:24:08.78][INFO ]( ant.window|world )(...pment/OpenProjects/ant/pkg/ant.render/viewport/state.lua:31) scene ratio:        0.75
[2024-01-18 01:24:08.78][INFO ]( ant.window|world )(...pment/OpenProjects/ant/pkg/ant.render/viewport/state.lua:32) device viewport:    0       0       1344    756
[2024-01-18 01:24:08.82][INFO ]( ant.window|world )(...nProjects/ant/pkg/ant.compile_resource/tool_exe_path.lua:39) Use the debug tools path, but release path can greatly improve resource compilation efficiency, make sure build the release tool path: luamake tools -mode release
[2024-01-18 01:24:08.82][INFO ]( ant.window|world )(...nProjects/ant/pkg/ant.compile_resource/tool_exe_path.lua:47) Use tools path:
[2024-01-18 01:24:08.90][INFO ]( ant.window|world )(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:720) world initialized
[2024-01-18 01:24:08.90][INFO ]( ant.window|world )(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:545) System changed.
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `ant.anim_ctrl|keyframe_system.component_init` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/pkg/ant.anim_ctrl/keyframe.lua:81)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `ant.daynight|daynight_system.entity_remove` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/pkg/ant.daynight/daynight.lua:102)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `ant.modifier|modifier_system.init` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/pkg/ant.modifier/modifier.lua:20)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `ant.modifier|modifier_system.exit` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/pkg/ant.modifier/modifier.lua:72)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `ant.modifier|modifier_system.entity_ready` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/pkg/ant.modifier/modifier.lua:69)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `ant.widget|physic_bounding_system.widget` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/pkg/ant.widget/widget.lua:166)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `tools.editor|camera_system.init_world` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/tools/editor/pkg/tools.editor/camera/camera_system.lua:13)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `tools.editor|camera_system.entity_ready` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/tools/editor/pkg/tools.editor/camera/camera_system.lua:16)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `tools.editor|gizmo_system.init` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/tools/editor/pkg/tools.editor/gizmo_system.lua:253)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `tools.editor|grid_brush_system.post_init` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/tools/editor/pkg/tools.editor/grid_brush_system.lua:252)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `tools.editor|gui_system.widget` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/tools/editor/pkg/tools.editor/gui_system.lua:378)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `tools.editor|second_view_camera_system.entity_init` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/tools/editor/pkg/tools.editor/camera/second_view.lua:72)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `ant.anim_ctrl|keyframe_system.component_init` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/pkg/ant.anim_ctrl/keyframe.lua:81)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `ant.daynight|daynight_system.entity_remove` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/pkg/ant.daynight/daynight.lua:102)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `ant.modifier|modifier_system.init` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/pkg/ant.modifier/modifier.lua:20)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `ant.modifier|modifier_system.exit` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/pkg/ant.modifier/modifier.lua:72)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `ant.modifier|modifier_system.entity_ready` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/pkg/ant.modifier/modifier.lua:69)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `ant.widget|physic_bounding_system.widget` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/pkg/ant.widget/widget.lua:166)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `tools.editor|camera_system.init_world` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/tools/editor/pkg/tools.editor/camera/camera_system.lua:13)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `tools.editor|camera_system.entity_ready` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/tools/editor/pkg/tools.editor/camera/camera_system.lua:16)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `tools.editor|gizmo_system.init` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/tools/editor/pkg/tools.editor/gizmo_system.lua:253)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `tools.editor|grid_brush_system.post_init` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/tools/editor/pkg/tools.editor/grid_brush_system.lua:252)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `tools.editor|gui_system.widget` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/tools/editor/pkg/tools.editor/gui_system.lua:378)�[0m
[2024-01-18 01:24:08.90][WARN ]( ant.window|world )�[33m(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:518) `tools.editor|second_view_camera_system.entity_init` is an empty method, it has been ignored. (D:/Development/OpenProjects/ant/tools/editor/pkg/tools.editor/camera/second_view.lua:72)�[0m
[2024-01-18 01:24:08.93][INFO ]( ant.efk|efk )(ant.efk|efk:12) startup.
Load font 瀹嬩綋 failed.
3rd/bgfx/src/renderer_d3d11.cpp (4528): BGFX WARN sRGB not supported for texture format 85
connect editor fileserver
[2024-01-18 01:24:10.81][INFO ]( ant.window|world )(...enProjects/ant/pkg/ant.render/viewport/window_resize.lua:38) device_size:        0       0       1344    756
[2024-01-18 01:24:10.81][INFO ]( ant.window|world )(...enProjects/ant/pkg/ant.render/viewport/window_resize.lua:39) main viewrect:      0       0       1280    720
[2024-01-18 01:24:10.89][INFO ]( ant.window|world )(D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:575) System refreshed.
[2024-01-18 01:24:10.95][INFO ]( ant.window|world )(...enProjects/ant/pkg/ant.render/viewport/window_resize.lua:38) device_size:        0       0       1344    756
[2024-01-18 01:24:10.95][INFO ]( ant.window|world )(...enProjects/ant/pkg/ant.render/viewport/window_resize.lua:39) main viewrect:      0       0       1280    720
[2024-01-18 01:24:18.90][INFO ]( ant.window|world )(...enProjects/ant/pkg/ant.render/viewport/window_resize.lua:38) device_size:        0       0       1920    1017
[2024-01-18 01:24:18.90][INFO ]( ant.window|world )(...enProjects/ant/pkg/ant.render/viewport/window_resize.lua:39) main viewrect:      0       0       1356    762
[2024-01-18 01:25:24.84][ERROR]( ant.window|world )attempt to index a string value (local 'qe')
stack traceback:
        ( service:9 )
        ...rojects/ant/pkg/ant.render/render_system/renderqueue.lua:140: in upvalue 'set_camera'
        ...rojects/ant/pkg/ant.render/render_system/renderqueue.lua:148: in field 'set_camera'
        .../tools/editor/pkg/tools.editor/camera/camera_manager.lua:22: in field 'on_target'
        ...rojects/ant/tools/editor/pkg/tools.editor/gui_system.lua:150: in upvalue 'on_target'
        ...rojects/ant/tools/editor/pkg/tools.editor/gui_system.lua:232: in local 'f'
        D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:389: in upvalue 'update_func'
        D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:414: in field '_pipeline_update'
        D:/Development/OpenProjects/ant/pkg/ant.ecs/main.lua:585: in method 'pipeline_update'
        ...opment/OpenProjects/ant/pkg/ant.window/service/world.lua:95: in upvalue 'f'

加载模型报错

我看 #95 这个已经完成,我更到最新尝试使用了下,加载模型时报下面的错:

[2024-02-29 21:28:53.44][ERROR]( ant.window|window )policy `ant.modifier|modifier` is not defined.
stack traceback:
        ( service:2 )
        G:/ant/ant/pkg/ant.world/policy.lua:34: in local 'import_policy'
        G:/ant/ant/pkg/ant.world/policy.lua:47: in field 'verify'
        G:/ant/ant/pkg/ant.world/main.lua:172: in upvalue 'create_entity_template'
        G:/ant/ant/pkg/ant.world/main.lua:196: in upvalue 'create_template'
        G:/ant/ant/pkg/ant.world/main.lua:225: in upvalue 'prefab_instance'
        G:/ant/ant/pkg/ant.world/main.lua:257: in method '_flush_instance_queue'
        G:/ant/ant/pkg/ant.world/entity_system.lua:71: in local 'f'
        G:/ant/ant/pkg/ant.world/main.lua:392: in upvalue 'update_func'
        G:/ant/ant/pkg/ant.world/main.lua:417: in field '_pipeline_update'
        G:/ant/ant/pkg/ant.world/main.lua:595: in method 'pipeline_update'
        G:/ant/ant/pkg/ant.window/world_instance.lua:79: in upvalue 'f'

另外,引擎部分希望少error,一般来个红色错误输出就可以了吧,目前的error相当于是宕机 = =

希望有地方可以配置项目支持的文件后缀名

Discussed in #98

Originally posted by constly February 20, 2024
我在接入 cute 来播放声音,这个可以直接播放wav或者ogg文件。
问题在于 我没办法仿照加载bank文件的方式来加载wav,因为wav没在ant.vfs/std.lua的game_whitelist中。

我感觉我这种散人或者说小团队,一般不太倾向于去改引擎的代码,因为这意味着必须要维护一个引擎分支,很麻烦,
如果可以在项目目录配置 或者 有程序接口可以设置那就比较方便了。

无法隐藏group

Discussed in #93

Originally posted by constly February 18, 2024
具体见 ant.test.features 里面的 group_test.lua ,按了G或H后,模型没有被隐藏
相关代码如下:


function group_test_sys:data_changed()
    for _, key, press in kb_mb:unpack() do
        if key == "G" and press == 0 then
            group_states["group_test1"] = not group_states["group_test1"]
            ig.enable_from_name("group_test1", "view_visible", group_states["group_test1"])
        elseif key == "H" and press == 0 then
            group_states["group_test2"] = not group_states["group_test2"]
            ig.enable_from_name("group_test2", "view_visible", group_states["group_test2"])
        elseif key == "B" and press == 0 then
            PC:create_instance {
                prefab = "/pkg/ant.resources.binary/meshes/base/ring.glb|mesh.prefab",
                group = ig.groupid "group_test2",
                on_ready = function(e)
                    local eid = e.tag['*'][1]
                    local ee<close> = world:entity(eid, "scene:in")
                    iom.set_position(ee, math3d.vector(0, 0, 10, 1))
                end
            }
        end
    end
end

```</div>

zsh: command not found : luamake on MacOS

Environment

  • OS: Mac
  • Version: 13.6 (22G120)
  • Chip: Apple M1 Pro

Everything went well before I ran the luamake command.

It said: command not found: luamake

I thought it might have failed to set it to the PATH, so I tried to use ./luamake under the "luamake" folder.

It told me: Please use ./compile/install.sh

Then I ran ./compile/install.sh again, the steps are shown as the following

sudo ./compile/install.sh
Password:
ninja: no work to do.
luamake alias added to /Users/kylin/.profile. (You may need to restart your shell.)

Finally, I still got stuck here.

zsh: command not found : luamake

Thanks!

[BUG] 编辑器 Entity 右键 Clone 菜单项崩溃

操作系统:Windows 11
出现版本:910bc6e
复现方法:

  1. 拉取最新版本的代码
  2. 通过 luamake all --mode release 方式编译
  3. 运行编辑器
  4. 通过 +Create 按钮创建 EmptyNode Entity
  5. 右键点选 empty1 并点选 Clone
  6. 编辑器崩溃并报错如下内容
    image
    image

启动崩溃

[我两台电脑,一台编译好能启动DEMO和编辑器,但是编辑器随便点点也会崩,还有一台启动DEMO和编辑器都会直接崩溃。下面贴出命令行过程。

D:\work\ant>bin\msvc\debug\lua.exe test/simple/main.lua
[2024-01-21 13:59:12.49][INFO ]( root )(root:1) startup.
[2024-01-21 13:59:12.49][INFO ]( ant.window|window )(ant.window|window:2) startup.
[2024-01-21 13:59:12.49][INFO ]( subprocess )(subprocess:5) startup.
[2024-01-21 13:59:12.49][INFO ]( ant.hwi|bgfx )(ant.hwi|bgfx:4) startup.
[2024-01-21 13:59:12.49][INFO ]( timer )(timer:3) startup.
[2024-01-21 13:59:12.49][INFO ]( io )(io:6) startup.
[2024-01-21 13:59:12.60][INFO ]( logger )(logger:7) startup.
[2024-01-21 13:59:12.61][INFO ]( ant.window|boot )(ant.window|boot:8) startup.
3rd/bgfx/src/nvapi.cpp (176): BGFX WARN NVAPI supported.
3rd/bgfx/src/renderer_d3d11.cpp (948): BGFX WARN Direct3D11 device feature level 11.0.
[2024-01-21 13:59:12.71][INFO ]( ant.window|world )(ant.window|world:9) startup.
[2024-01-21 13:59:13.05][INFO ]( ant.rmlui|rmlui )(ant.rmlui|rmlui:10) startup.
[2024-01-21 13:59:13.56][INFO ]( io )(D:/work/ant/pkg/ant.compile_resource/tool_exe_path.lua:47) Use tools path:
property 'background-repeat' default value (repeat) parse failed..
[2024-01-21 13:59:13.86][INFO ]( ant.resource_manager|resource )(ant.resource_manager|resource:11) startup.
[2024-01-21 13:59:13.94][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:712) world initializing
[2024-01-21 13:59:14.99][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/state.lua:30) scene viewrect:   0
        0       1280    720
[2024-01-21 13:59:14.99][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/state.lua:31) scene ratio:      0.75
[2024-01-21 13:59:14.99][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/state.lua:32) device viewport:  0
        0       1344    756
[2024-01-21 13:59:15.67][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:720) world initialized
[2024-01-21 13:59:15.67][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:545) System changed.
[2024-01-21 13:59:19.53][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/window_resize.lua:38) device_size:
        0       0       1344    756
[2024-01-21 13:59:19.53][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/window_resize.lua:39) main viewrect:
        0       0       1280    720
3rd/bgfx/src/bgfx.cpp (3932): BGFX ASSERT Invalid stage 12 (max 8).
Fatal error at 3rd/bgfx/src/bgfx.cpp(3932): [DebugCheck] Invalid stage 12 (max 8).
[2024-01-21 13:59:20.31][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:575) System refreshed.

D:\work\ant>bin\msvc\debug\lua.exe test/simple/main.lua
[2024-01-21 14:14:47.53][INFO ]( ant.window|window )(ant.window|window:2) startup.
[2024-01-21 14:14:47.53][INFO ]( timer )(timer:3) startup.
[2024-01-21 14:14:47.53][INFO ]( root )(root:1) startup.
[2024-01-21 14:14:47.53][INFO ]( subprocess )(subprocess:5) startup.
[2024-01-21 14:14:47.53][INFO ]( ant.hwi|bgfx )(ant.hwi|bgfx:4) startup.
[2024-01-21 14:14:47.53][INFO ]( io )(io:6) startup.
[2024-01-21 14:14:47.57][INFO ]( logger )(logger:7) startup.
3rd/bgfx/src/nvapi.cpp (176): BGFX WARN NVAPI supported.
3rd/bgfx/src/renderer_d3d11.cpp (948): BGFX WARN Direct3D11 device feature level 11.0.
property 'background-repeat' default value (repeat) parse failed..
[2024-01-21 14:14:47.59][INFO ]( ant.window|boot )(ant.window|boot:8) startup.
[2024-01-21 14:14:47.64][INFO ]( ant.window|world )(ant.window|world:9) startup.
[2024-01-21 14:14:47.70][INFO ]( ant.rmlui|rmlui )(ant.rmlui|rmlui:10) startup.
[2024-01-21 14:14:48.14][INFO ]( io )(D:/work/ant/pkg/ant.compile_resource/tool_exe_path.lua:47) Use tools path:
[2024-01-21 14:14:48.20][INFO ]( ant.resource_manager|resource )(ant.resource_manager|resource:11) startup.
[2024-01-21 14:14:48.23][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:712) world initializing
[2024-01-21 14:14:48.34][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/state.lua:30) scene viewrect:   0
        0       1280    720
[2024-01-21 14:14:48.34][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/state.lua:31) scene ratio:      0.75
[2024-01-21 14:14:48.34][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/state.lua:32) device viewport:  0
        0       1344    756
[2024-01-21 14:14:48.45][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:720) world initialized
[2024-01-21 14:14:48.45][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:545) System changed.
3rd/bgfx/src/bgfx.cpp (3932): BGFX ASSERT Invalid stage 12 (max 8).
Fatal error at 3rd/bgfx/src/bgfx.cpp(3932): [DebugCheck] Invalid stage 12 (max 8).
[2024-01-21 14:14:51.62][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/window_resize.lua:38) device_size:
        0       0       1344    756
[2024-01-21 14:14:51.62][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/window_resize.lua:39) main viewrect:
        0       0       1280    720
[2024-01-21 14:14:51.84][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:575) System refreshed.

D:\work\ant>bin\msvc\debug\lua.exe test/simple/main.lua
[2024-01-21 14:26:03.25][INFO ]( ant.window|window )(ant.window|window:2) startup.
[2024-01-21 14:26:03.25][INFO ]( ant.hwi|bgfx )(ant.hwi|bgfx:4) startup.
[2024-01-21 14:26:03.25][INFO ]( timer )(timer:3) startup.
[2024-01-21 14:26:03.25][INFO ]( subprocess )(subprocess:5) startup.
[2024-01-21 14:26:03.25][INFO ]( root )(root:1) startup.
[2024-01-21 14:26:03.25][INFO ]( io )(io:6) startup.
[2024-01-21 14:26:03.31][INFO ]( logger )(logger:7) startup.
3rd/bgfx/src/nvapi.cpp (176): BGFX WARN NVAPI supported.
3rd/bgfx/src/renderer_d3d11.cpp (948): BGFX WARN Direct3D11 device feature level 11.0.
property 'background-repeat' default value (repeat) parse failed..
[2024-01-21 14:26:03.31][INFO ]( ant.window|boot )(ant.window|boot:8) startup.
[2024-01-21 14:26:03.39][INFO ]( ant.window|world )(ant.window|world:9) startup.
[2024-01-21 14:26:03.47][INFO ]( ant.rmlui|rmlui )(ant.rmlui|rmlui:10) startup.
[2024-01-21 14:26:03.86][INFO ]( io )(D:/work/ant/pkg/ant.compile_resource/tool_exe_path.lua:47) Use tools path:
[2024-01-21 14:26:03.92][INFO ]( ant.resource_manager|resource )(ant.resource_manager|resource:11) startup.
[2024-01-21 14:26:03.93][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:712) world initializing
[2024-01-21 14:26:04.03][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/state.lua:30) scene viewrect:   0
        0       1280    720
[2024-01-21 14:26:04.03][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/state.lua:31) scene ratio:      0.75
[2024-01-21 14:26:04.03][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/state.lua:32) device viewport:  0
        0       1344    756
[2024-01-21 14:26:04.12][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:720) world initialized
[2024-01-21 14:26:04.12][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:545) System changed.
3rd/bgfx/src/bgfx.cpp (3932): BGFX ASSERT Invalid stage 12 (max 8).
Fatal error at 3rd/bgfx/src/bgfx.cpp(3932): [DebugCheck] Invalid stage 12 (max 8).
[2024-01-21 14:26:06.98][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/window_resize.lua:38) device_size:
        0       0       1344    756
[2024-01-21 14:26:06.98][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/window_resize.lua:39) main viewrect:
        0       0       1280    720
[2024-01-21 14:26:07.14][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:575) System refreshed.

D:\work\ant>bin\msvc\debug\lua.exe test/simple/main.lua
[2024-01-21 16:27:13.88][INFO ]( timer )(timer:3) startup.
[2024-01-21 16:27:13.88][INFO ]( ant.window|window )(ant.window|window:2) startup.
[2024-01-21 16:27:13.88][INFO ]( root )(root:1) startup.
[2024-01-21 16:27:13.88][INFO ]( subprocess )(subprocess:5) startup.
[2024-01-21 16:27:13.88][INFO ]( ant.hwi|bgfx )(ant.hwi|bgfx:4) startup.
[2024-01-21 16:27:13.88][INFO ]( io )(io:6) startup.
[2024-01-21 16:27:13.97][INFO ]( logger )(logger:7) startup.
3rd/bgfx/src/nvapi.cpp (176): BGFX WARN NVAPI supported.
3rd/bgfx/src/renderer_d3d11.cpp (948): BGFX WARN Direct3D11 device feature level 11.0.
[2024-01-21 16:27:13.99][INFO ]( ant.window|boot )(ant.window|boot:8) startup.
[2024-01-21 16:27:14.10][INFO ]( ant.window|world )(ant.window|world:9) startup.
[2024-01-21 16:27:14.44][INFO ]( ant.rmlui|rmlui )(ant.rmlui|rmlui:10) startup.
[2024-01-21 16:27:14.96][INFO ]( io )(D:/work/ant/pkg/ant.compile_resource/tool_exe_path.lua:47) Use tools path:
[2024-01-21 16:27:15.33][INFO ]( ant.resource_manager|resource )(ant.resource_manager|resource:11) startup.
[2024-01-21 16:27:15.41][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:712) world initializing
property 'background-repeat' default value (repeat) parse failed..
[2024-01-21 16:27:16.55][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/state.lua:30) scene viewrect:   0
        0       1280    720
[2024-01-21 16:27:16.55][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/state.lua:31) scene ratio:      0.75
[2024-01-21 16:27:16.55][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/state.lua:32) device viewport:  0
        0       1344    756
[2024-01-21 16:27:17.16][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:720) world initialized
[2024-01-21 16:27:17.16][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:545) System changed.
[2024-01-21 16:27:21.05][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/window_resize.lua:38) device_size:
        0       0       1344    756
[2024-01-21 16:27:21.05][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.render/viewport/window_resize.lua:39) main viewrect:
        0       0       1280    720
3rd/bgfx/src/bgfx.cpp (3932): BGFX ASSERT Invalid stage 12 (max 8).
Fatal error at 3rd/bgfx/src/bgfx.cpp(3932): [DebugCheck] Invalid stage 12 (max 8).
[2024-01-21 16:27:21.80][INFO ]( ant.window|world )(D:/work/ant/pkg/ant.ecs/main.lua:575) System refreshed.

使用VS 2022查看的崩溃堆栈
 	ucrtbased.dll!00007ffd2ee32fb5()	未知
 	ucrtbased.dll!00007ffd2ee33153()	未知
 	ucrtbased.dll!00007ffd2ee4ae2d()	未知
>	lua.exe!cb_fatal(bgfx_callback_interface_s * self, const char * filePath, unsigned short line, bgfx_fatal code, const char * str) 行 360	C
 	lua.exe!bgfx::CallbackC99::fatal(const char * _filePath, unsigned short _line, bgfx::Fatal::Enum _code, const char * _str) 行 5840	C++
 	lua.exe!bgfx::fatal(const char * _filePath, unsigned short _line, bgfx::Fatal::Enum _code, const char * _format, ...) 行 462	C++
 	lua.exe!bgfx::Encoder::setBuffer(unsigned char _stage, bgfx::DynamicVertexBufferHandle _handle, bgfx::Access::Enum _access) 行 3932	C++
 	lua.exe!bgfx_encoder_set_compute_dynamic_vertex_buffer(bgfx_encoder_s * _this, unsigned char _stage, bgfx_dynamic_vertex_buffer_handle_s _handle, bgfx_access _access) 行 923	C++
 	lua.exe!attrib_arena_apply(attrib_arena * A, int id, attrib_arena_apply_context * ctx) 行 382	C
 	lua.exe!apply_global8(attrib_arena * A, unsigned char mask, int base, attrib_arena_apply_context * ctx) 行 476	C
 	lua.exe!apply_global16(attrib_arena * A, unsigned short mask, int base, attrib_arena_apply_context * ctx) 行 491	C
 	lua.exe!apply_global32(attrib_arena * A, unsigned int mask, int base, attrib_arena_apply_context * ctx) 行 503	C
 	lua.exe!attrib_arena_apply_global(attrib_arena * A, unsigned __int64 mask, int base, attrib_arena_apply_context * ctx) 行 515	C
 	lua.exe!apply_material_instance(lua_State * L, material_instance * mi, ecs_world * w) 行 597	C
 	lua.exe!draw_obj(lua_State * L, ecs_world * w, const ant_component::render_args * ra, const ant_component::render_object * obj, const ant_component::indirect_object * iobj, const std::vector<math_t,std::allocator<math_t>> * mats, std::unordered_map<unsigned __int64,transform,std::hash<unsigned __int64>,std::equal_to<unsigned __int64>,std::allocator<std::pair<unsigned __int64 const ,transform>>> & trans) 行 159	C++
 	lua.exe!render_submit(lua_State * L, ecs_world * w, submit_cache & cc) 行 309	C++
 	lua.exe!lrender_submit(lua_State * L) 行 327	C++
 	lua.exe!precallC(lua_State * L, StackValue * func, int nresults, int(*)(lua_State *) f) 行 532	C
 	lua.exe!luaD_precall(lua_State * L, StackValue * func, int nresults) 行 596	C
 	lua.exe!luaV_execute(lua_State * L, CallInfo * ci) 行 1682	C
 	lua.exe!unroll(lua_State * L, void * ud) 行 749	C
 	lua.exe!resume(lua_State * L, void * ud) 行 812	C
 	lua.exe!luaD_rawrunprotected(lua_State * L, void(*)(lua_State *, void *) f, void * ud) 行 150	C
 	lua.exe!lua_resume(lua_State * L, lua_State * from, int nargs, int * nresults) 行 853	C
 	lua.exe!auxresume(lua_State * L, lua_State * co, int narg) 行 39	C
 	lua.exe!luaB_coresume(lua_State * L) 行 59	C
 	lua.exe!precallC(lua_State * L, StackValue * func, int nresults, int(*)(lua_State *) f) 行 532	C
 	lua.exe!luaD_precall(lua_State * L, StackValue * func, int nresults) 行 599	C
 	lua.exe!luaV_execute(lua_State * L, CallInfo * ci) 行 1682	C
 	lua.exe!unroll(lua_State * L, void * ud) 行 749	C
 	lua.exe!resume(lua_State * L, void * ud) 行 812	C
 	lua.exe!luaD_rawrunprotected(lua_State * L, void(*)(lua_State *, void *) f, void * ud) 行 150	C
 	lua.exe!lua_resume(lua_State * L, lua_State * from, int nargs, int * nresults) 行 853	C
 	lua.exe!service_resume(service_pool * p, service_id id, int thread_id) 行 489	C
 	lua.exe!thread_worker(void * ud) 行 516	C
 	lua.exe!thread_function(void * lpParam) 行 60	C

gltf 兼容性

Discussed in #91

Originally posted by constly February 17, 2024

我在sketchfab 这个网站上下载了好几个模型,都没办法正常运作起来,各有各的问题(有些是显示不全,有些是动画播放不对等等之类的)

比如 这个 就是动画播放不对: (我把下载的模型直接放ant.test.simple下的,不知道是否要用编辑器处理下)
bug_01

希望有空帮忙看看是什么情况 ~
这两个模型应该都可以免费下来测试模型1 模型2 , glb/gltf格式一样的表现

debug: how to debug ant engine with lua-debug

  • 正确安装 lua-debug ,并成功调试简单的 lua 脚本。
  • 在 ant 目录下面 .vscode 文件夹增加 launch.json 文件。
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lua",
            "request": "launch",
            "name": "Debug1",
            "program": "${workspaceFolder}/test/simple/main.lua"
        }
    ]
}
  • 在 vscode 中选择 Debug1 并运行,能成功启动,但是运行到 test/simple/main.lua 中的 require "bootstrap" 会报错。
D:\work\engine\ant>  d:; cd 'd:\work\engine\ant'; & 'c:/Users/Yan/.vscode/extensions/actboy168.lua-debug-2.0.4-win32-x64/runtime/win32-x64/lua54/lua.exe' '-e' 'dofile[[c:/Users/Yan/.vscode/extensions/actboy168.lua-debug-2.0.4-win32-x64/script/launch.lua]];DBG[[6380-ansi]]' 'D:\work\engine\ant/test/simple/main.lua'
C:\Users\Yan\.vscode\extensions\actboy168.lua-debug-2.0.4-win32-x64\runtime\win32-x64\lua54\lua.exe: D:\work\engine\ant/test/simple/main.lua:2: module 'bootstrap' not found:
        no field package.preload['bootstrap']
        no file '/engine/bootstrap.lua'
        no file 'D:\work\engine\ant/bootstrap.dll'
        no file 'D:\work\engine\ant/bootstrap.dll'
stack traceback:
        [C]: in function 'require'
        D:\work\engine\ant/test/simple/main.lua:2: in main chunk
        [C]: in ?

请问改怎么处理?

  • 因为用的 lua-debug 的 lua.exe 所以我需要在 test/simple/main.lua 中手动设置 package.pathpackage.cpath 吗?
  • 试了一下 lua-debug 的 Attach Process 也没有效果,进程也就直接退出了。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.