Fail to running test/simple/main.lua
* 更新 master 到最新
* `$ ./bin/mingw/debug/ant.exe test/simple/main.lua`
* 出现如下错误:
```
[2024-07-22 18:27:03.76][INFO ]( io )(D:/work/engine/ant/pkg/ant.compile_resource/subprocess.lua:68) D:/work/engine/ant/bin/mingw/debug/texturec.exe -f D:/work/engine/ant/pkg/ant.resources.test/sky/colorcube2x2.ktx -o D:/work/engine/ant/test/simple/res/windows-direct3d11/texture/colorcube2x2.texture_21a28db096e7137d02daaab46b3bc47f4d3b7d9c/main
.dds -q fastest --max 256 --linear -m
[2024-07-22 18:27:03.86][ERROR]( ant.resource_manager|resource ) compile failed: D:/work/engine/ant/pkg/ant.resources.test/sky/colorcube2x2.texture
----------------------------
Failed, error code:80000003
----------------------------
D:/work/engine/ant/bin/mingw/debug/texturec.exe -f D:/work/engine/ant/pkg/ant.resources.test/sky/colorcube2x2.ktx -o D:/work/engine/ant/test/simple/res/windows-direct3d11/texture/colorcube2x2.texture_21a28db096e7137d02daaab46b3bc47f4d3b7d9c/main.dds -q fastest --max 256 --linear -m
----------------------------
```
尝试定位:
* 执行 `$ gdb D:/work/engine/ant/bin/mingw/debug/texturec.exe`
* `(gdb) set args D:/work/engine/ant/bin/mingw/debug/texturec.exe -f D:/work/engine/ant/pkg/ant.resources.test/sky/colorcube2x2.ktx -o D:/work/engine/ant/test/simple/res/windows-direct3d11/texture/colorcube2x2.texture_21a28db096e7137d02daaab46b3bc47f4d3b7d9c/main.dds -q fastest --max 256 --linear -m`
* `(gdb) r`
```
Starting program: D:\work\engine\ant\bin\mingw\debug\texturec.exe D:/work/engine/ant/bin/mingw/debug/texturec.exe -f D:/work/engine/ant/pkg/ant.resources.test/sky/colorcube2x2.ktx -o D:/work/engine/ant/test/simple/res/windows-direct3d11/texture/colorcube2x2.texture_21a28db096e7137d02daaab46b3bc47f4d3b7d9c/main.dds -q fastest --max 256 --linear
-m
[New Thread 23376.0x63d4]
[New Thread 23376.0x77a0]
[New Thread 23376.0x6370]
warning: 3rd/bimg/src/image.cpp(5278): ASSERT size == imageSize -> KTX: Image size mismatch 64 (expected 384).
Thread 1 received signal SIGTRAP, Trace/breakpoint trap.
bx::debugBreak () at 3rd/bx/src/debug.cpp:60
60
```
我对图形不怎么了解,求指导一下,出现这种情况如何处理呢?
PS: 还是用 mingw 来玩 ant 了,用 VS 编译出来的 texturec.exe 崩了后完全没有 core dump 文件(用的 debug),不如直接在 gdb 里面看崩的堆栈方便。
关闭于 2024-07-23 10 条评论