jpcy / xatlas

Mesh parameterization / UV unwrapping library
MIT License
2.09k stars 220 forks source link

xatlas cause memory leak #104

Open GuDuJian-J-Zhang opened 2 years ago

GuDuJian-J-Zhang commented 2 years ago

firstly, thanks for you guys efforts for this awesome tool

but seems that there are some memory leaks like below.

and when i change XA_DEBUG_HEAP to 1, those memory leaks disappeared.

`Visual Leak Detector Version 2.7.0 installed. Generating a Unicode (UTF-16) encoded report. Outputting the report to the debugger and to memory_leak_report No memory leaks detected. Visual Leak Detector is now exiting. ERROR: Visual Leak Detector: Detected a memory leak internal to Visual Leak Detector!! ---------- Block 2491146 at 0x00000000C705C140: 264 bytes ---------- Call Stack: C:\workspace\visualleakdetector\src\callstack.cpp (493): Full call stack not available. Data: 00 00 00 00 00 00 00 00 F2 43 8B C4 F6 7F 00 00 ....䏲쒋翶. DE 42 8B C4 F6 7F 00 00 9E 41 8B C4 F6 7F 00 00 䋞쒋翶.䆞쒋翶. 8E 44 8B C4 F6 7F 00 00 34 70 5F F6 FA 7F 00 00 䒎쒋翶.瀴翺. 51 26 50 F7 FA 7F 00 00 51 26 50 F7 FA 7F 00 00 ♑翺.♑翺. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........

ERROR: Visual Leak Detector: Detected a memory leak internal to Visual Leak Detector!! ---------- Block 2491138 at 0x00000000CAE99730: 328 bytes ---------- Call Stack: C:\workspace\visualleakdetector\src\callstack.cpp (100): Full call stack not available. Data: A8 80 89 BD FA 7F 00 00 00 00 00 00 40 00 00 00 肨붉翺...@. 26 00 00 00 00 00 00 00 40 C1 05 C7 15 02 00 00 &...셀윅ȕ. 90 59 1C AE FA 7F 00 00 55 F0 18 6F FA 7F 00 00 妐긜翺.漘翺. FB 90 1D 6F FA 7F 00 00 78 7A 1D 6F FA 7F 00 00 郻漝翺.穸漝翺. 5E 50 1D 6F FA 7F 00 00 58 4D 1D 6F FA 7F 00 00 偞漝翺.䵘漝翺. E2 12 1C 6F FA 7F 00 00 16 63 1B 6F FA 7F 00 00 ዢ漜翺.挖漛翺. 23 6C 19 6F FA 7F 00 00 BA C2 1D 6F FA 7F 00 00 氣漙翺.슺漝翺. 5F FF 1A 6F FA 7F 00 00 B3 D0 18 6F FA 7F 00 00 ⦅漚翺.킳漘翺. 4E ED 18 6F FA 7F 00 00 EC 00 BD 6F FA 7F 00 00 漘翺.ì澽翺. 6B E2 BC 6F FA 7F 00 00 51 75 3E 6F FA 7F 00 00 澼翺.畑漾翺. F3 EB 83 C4 F6 7F 00 00 EF 32 86 C4 F6 7F 00 00 쒃翶.㋯쒆翶. 6E 0D 86 C4 F6 7F 00 00 8E F0 85 C4 F6 7F 00 00 ൮쒆翶.쒅翶. 0A 41 86 C4 F6 7F 00 00 32 64 83 C4 F6 7F 00 00 䄊쒆翶.搲쒃翶. 80 5E 82 C4 F6 7F 00 00 01 5A 82 C4 F6 7F 00 00 庀쒂翶.威쒂翶. F2 2A 8A C4 F6 7F 00 00 0A 17 8A C4 F6 7F 00 00 ⫲쒊翶.ᜊ쒊翶. 33 8A FB BD FA 7F 00 00 7A D9 FB BD FA 7F 00 00 訳뷻翺.☐뷻翺.

ERROR: Visual Leak Detector: Detected a memory leak internal to Visual Leak Detector!! ---------- Block 2490231 at 0x00000000CAE96470: 328 bytes ---------- Call Stack: C:\workspace\visualleakdetector\src\callstack.cpp (100): Full call stack not available. Data: A8 80 89 BD FA 7F 00 00 00 00 00 00 20 00 00 00 肨붉翺..... 0E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ....... 90 59 1C AE FA 7F 00 00 55 F0 18 6F FA 7F 00 00 妐긜翺.漘翺. FB 90 1D 6F FA 7F 00 00 78 7A 1D 6F FA 7F 00 00 郻漝翺.穸漝翺. 5E 50 1D 6F FA 7F 00 00 58 4D 1D 6F FA 7F 00 00 偞漝翺.䵘漝翺. 3C 2D 1B 6F FA 7F 00 00 AE 6B 19 6F FA 7F 00 00 ⴼ漛翺.殮漙翺. D9 C6 1D 6F FA 7F 00 00 82 CC 19 6F FA 7F 00 00 웙漝翺.첂漙翺. 13 C6 19 6F FA 7F 00 00 7C 4C 1E AE FA 7F 00 00 옓漙翺.䱼긞翺. 34 70 5F F6 FA 7F 00 00 51 26 50 F7 FA 7F 00 00 瀴翺.♑翺. 51 26 50 F7 FA 7F 00 00 00 00 00 00 00 00 00 00 ♑翺..... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........

ERROR: Visual Leak Detector: Detected a memory leak internal to Visual Leak Detector!! ---------- Block 2487856 at 0x00000000CAEAB440: 328 bytes ---------- Call Stack: C:\workspace\visualleakdetector\src\callstack.cpp (100): Full call stack not available. Data: A8 80 89 BD FA 7F 00 00 00 00 00 00 20 00 00 00 肨붉翺..... 0E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ....... 90 59 1C AE FA 7F 00 00 55 F0 18 6F FA 7F 00 00 妐긜翺.漘翺. FB 90 1D 6F FA 7F 00 00 78 7A 1D 6F FA 7F 00 00 郻漝翺.穸漝翺. 5E 50 1D 6F FA 7F 00 00 28 44 1D 6F FA 7F 00 00 偞漝翺.䐨漝翺. 7E 1C 1A 6F FA 7F 00 00 5A 60 19 6F FA 7F 00 00 ᱾漚翺.恚漙翺. D9 C6 1D 6F FA 7F 00 00 82 CC 19 6F FA 7F 00 00 웙漝翺.첂漙翺. 13 C6 19 6F FA 7F 00 00 7C 4C 1E AE FA 7F 00 00 옓漙翺.䱼긞翺. 34 70 5F F6 FA 7F 00 00 51 26 50 F7 FA 7F 00 00 瀴翺.♑翺. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........

ERROR: Visual Leak Detector: Detected a memory leak internal to Visual Leak Detector!! ---------- Block 2487583 at 0x00000000CAE8A110: 328 bytes ---------- Call Stack: C:\workspace\visualleakdetector\src\callstack.cpp (100): Full call stack not available. Data: A8 80 89 BD FA 7F 00 00 00 00 00 00 20 00 00 00 肨붉翺..... 0E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ....... 90 59 1C AE FA 7F 00 00 55 F0 18 6F FA 7F 00 00 妐긜翺.漘翺. FB 90 1D 6F FA 7F 00 00 78 7A 1D 6F FA 7F 00 00 郻漝翺.穸漝翺. 5E 50 1D 6F FA 7F 00 00 28 44 1D 6F FA 7F 00 00 偞漝翺.䐨漝翺. 7E 1C 1A 6F FA 7F 00 00 5A 60 19 6F FA 7F 00 00 ᱾漚翺.恚漙翺. D9 C6 1D 6F FA 7F 00 00 82 CC 19 6F FA 7F 00 00 웙漝翺.첂漙翺. 13 C6 19 6F FA 7F 00 00 7C 4C 1E AE FA 7F 00 00 옓漙翺.䱼긞翺. 34 70 5F F6 FA 7F 00 00 51 26 50 F7 FA 7F 00 00 瀴翺.♑翺. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........

ERROR: Visual Leak Detector: Detected a memory leak internal to Visual Leak Detector!! ---------- Block 2484510 at 0x00000000C7053040: 264 bytes ---------- Call Stack: C:\workspace\visualleakdetector\src\callstack.cpp (493): Full call stack not available. Data: 00 00 00 00 00 00 00 00 38 A9 8A C4 F6 7F 00 00 ....ꤸ쒊翶. F2 43 8B C4 F6 7F 00 00 DE 42 8B C4 F6 7F 00 00 䏲쒋翶.䋞쒋翶. 9E 41 8B C4 F6 7F 00 00 8E 44 8B C4 F6 7F 00 00 䆞쒋翶.䒎쒋翶. 34 70 5F F6 FA 7F 00 00 51 26 50 F7 FA 7F 00 00 瀴翺.♑翺. 04 40 80 6F FA 7F 00 00 36 07 9F 6F FA 7F 00 00 䀄澀翺.ܶ澟翺. 9D 7D D1 6F FA 7F 00 00 1A 7D D1 6F FA 7F 00 00 綝濑翺.級濑翺. 19 2B D3 6F FA 7F 00 00 BE 1D 8B 6F FA 7F 00 00 ⬙濓翺.ᶾ澋翺. DF E3 BC 6F FA 7F 00 00 B3 75 3E 6F FA 7F 00 00 澼翺.疳漾翺. 0E A1 85 C4 F6 7F 00 00 A4 17 8A C4 F6 7F 00 00 ꄎ쒅翶.ឤ쒊翶. 33 8A FB BD FA 7F 00 00 7A D9 FB BD FA 7F 00 00 訳뷻翺.☐뷻翺. D4 DE FB BD FA 7F 00 00 26 C9 FB BD FA 7F 00 00 ☐뷻翺.줦뷻翺. 63 C8 FB BD FA 7F 00 00 38 A9 8A C4 F6 7F 00 00 졣뷻翺.ꤸ쒊翶. F2 43 8B C4 F6 7F 00 00 DE 42 8B C4 F6 7F 00 00 䏲쒋翶.䋞쒋翶. 9E 41 8B C4 F6 7F 00 00 8E 44 8B C4 F6 7F 00 00 䆞쒋翶.䒎쒋翶. 34 70 5F F6 FA 7F 00 00 00 00 00 00 00 00 00 00 瀴翺..... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........

ERROR: Visual Leak Detector: Detected a memory leak internal to Visual Leak Detector!! ---------- Block 2484506 at 0x00000000CAE58140: 328 bytes ---------- Call Stack: C:\workspace\visualleakdetector\src\callstack.cpp (100): Full call stack not available. Data: A8 80 89 BD FA 7F 00 00 00 00 00 00 40 00 00 00 肨붉翺...@. 27 00 00 00 00 00 00 00 40 30 05 C7 15 02 00 00 '...぀윅ȕ. 50 54 1C AE FA 7F 00 00 13 AB 08 70 FA 7F 00 00 呐긜翺.ꬓ瀈翺. 74 32 1F 6F FA 7F 00 00 83 63 1E 6F FA 7F 00 00 ㉴漟翺.掃漞翺. 01 7F 1F 6F FA 7F 00 00 BE 62 1E 6F FA 7F 00 00 缁漟翺.抾漞翺. C1 7D 2A 6F FA 7F 00 00 0A 49 31 6F FA 7F 00 00 緁漪翺.䤊漱翺. 78 17 AA 6F FA 7F 00 00 7A A9 AA 6F FA 7F 00 00 ᝸澪翺.ꥺ澪翺. C6 12 AF 6F FA 7F 00 00 B3 9D AE 6F FA 7F 00 00 ዆澯翺.鶳澮翺. 49 98 AF 6F FA 7F 00 00 6F 0F BD 6F FA 7F 00 00 顉澯翺.཯澽翺. 4D FF BC 6F FA 7F 00 00 6B E2 BC 6F FA 7F 00 00 m澼翺.澼翺. 51 75 3E 6F FA 7F 00 00 F3 EB 83 C4 F6 7F 00 00 畑漾翺.쒃翶. EF 32 86 C4 F6 7F 00 00 6E 0D 86 C4 F6 7F 00 00 ㋯쒆翶.൮쒆翶. 8E F0 85 C4 F6 7F 00 00 0A 41 86 C4 F6 7F 00 00 쒅翶.䄊쒆翶. 32 64 83 C4 F6 7F 00 00 80 5E 82 C4 F6 7F 00 00 搲쒃翶.庀쒂翶. 01 5A 82 C4 F6 7F 00 00 F2 2A 8A C4 F6 7F 00 00 威쒂翶.⫲쒊翶. 0A 17 8A C4 F6 7F 00 00 33 8A FB BD FA 7F 00 00 ᜊ쒊翶.訳뷻翺.

ERROR: Visual Leak Detector: Detected a memory leak internal to Visual Leak Detector!! ---------- Block 2129884 at 0x00000000CADCC5F0: 328 bytes ---------- Call Stack: C:\workspace\visualleakdetector\src\callstack.cpp (100): Full call stack not available. Data: A8 80 89 BD FA 7F 00 00 00 00 00 00 20 00 00 00 肨붉翺..... 0E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ....... 90 59 1C AE FA 7F 00 00 55 F0 18 6F FA 7F 00 00 妐긜翺.漘翺. FB 90 1D 6F FA 7F 00 00 78 7A 1D 6F FA 7F 00 00 郻漝翺.穸漝翺. 5E 50 1D 6F FA 7F 00 00 28 44 1D 6F FA 7F 00 00 偞漝翺.䐨漝翺. 53 1C 1A 6F FA 7F 00 00 5A 60 19 6F FA 7F 00 00 ᱓漚翺.恚漙翺. D9 C6 1D 6F FA 7F 00 00 82 CC 19 6F FA 7F 00 00 웙漝翺.첂漙翺. 13 C6 19 6F FA 7F 00 00 7C 4C 1E AE FA 7F 00 00 옓漙翺.䱼긞翺. 34 70 5F F6 FA 7F 00 00 51 26 50 F7 FA 7F 00 00 瀴翺.♑翺. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........

ERROR: Visual Leak Detector: Detected a memory leak internal to Visual Leak Detector!! ---------- Block 2126738 at 0x00000000CADA8470: 328 bytes ---------- Call Stack: C:\workspace\visualleakdetector\src\callstack.cpp (100): Full call stack not available. Data: A8 80 89 BD FA 7F 00 00 00 00 00 00 20 00 00 00 肨붉翺..... 0E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ....... 90 59 1C AE FA 7F 00 00 55 F0 18 6F FA 7F 00 00 妐긜翺.漘翺. FB 90 1D 6F FA 7F 00 00 78 7A 1D 6F FA 7F 00 00 郻漝翺.穸漝翺. 5E 50 1D 6F FA 7F 00 00 28 44 1D 6F FA 7F 00 00 偞漝翺.䐨漝翺. 3F 72 1B 6F FA 7F 00 00 77 65 19 6F FA 7F 00 00 爿漛翺.敷漙翺. D9 C6 1D 6F FA 7F 00 00 82 CC 19 6F FA 7F 00 00 웙漝翺.첂漙翺. 13 C6 19 6F FA 7F 00 00 7C 4C 1E AE FA 7F 00 00 옓漙翺.䱼긞翺. 34 70 5F F6 FA 7F 00 00 51 26 50 F7 FA 7F 00 00 瀴翺.♑翺. D9 02 53 6F FA 7F 00 00 A6 D9 52 6F FA 7F 00 00 ˙潓翺.☐潒翺. 23 C0 52 6F FA 7F 00 00 D9 F8 52 6F FA 7F 00 00 쀣潒翺.潒翺. 0C 9C 52 6F FA 7F 00 00 96 BE FB 6F FA 7F 00 00 鰌潒翺.뺖濻翺. 1D 10 BD 6F FA 7F 00 00 4D FF BC 6F FA 7F 00 00 ဝ澽翺.m澼翺. 6B E2 BC 6F FA 7F 00 00 51 75 3E 6F FA 7F 00 00 澼翺.畑漾翺. F3 EB 83 C4 F6 7F 00 00 EF 32 86 C4 F6 7F 00 00 쒃翶.㋯쒆翶. 6E 0D 86 C4 F6 7F 00 00 8E F0 85 C4 F6 7F 00 00 ൮쒆翶.쒅翶.

ERROR: Visual Leak Detector: Detected a memory leak internal to Visual Leak Detector!! ---------- Block 2124777 at 0x00000000CADE0DF0: 264 bytes ---------- Call Stack: C:\workspace\visualleakdetector\src\callstack.cpp (493): Full call stack not available. Data: 00 00 00 00 00 00 00 00 D4 DE FB BD FA 7F 00 00 ....☐뷻翺. 26 C9 FB BD FA 7F 00 00 63 C8 FB BD FA 7F 00 00 줦뷻翺.졣뷻翺. 38 A9 8A C4 F6 7F 00 00 F2 43 8B C4 F6 7F 00 00 ꤸ쒊翶.䏲쒋翶. DE 42 8B C4 F6 7F 00 00 9E 41 8B C4 F6 7F 00 00 䋞쒋翶.䆞쒋翶. 8E 44 8B C4 F6 7F 00 00 34 70 5F F6 FA 7F 00 00 䒎쒋翶.瀴翺. 51 26 50 F7 FA 7F 00 00 00 00 00 00 00 00 00 00 ♑翺..... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........

ERROR: Visual Leak Detector: Detected a memory leak internal to Visual Leak Detector!! ---------- Block 2124772 at 0x00000000CADA01F0: 328 bytes ---------- Call Stack: C:\workspace\visualleakdetector\src\callstack.cpp (100): Full call stack not available. Data: A8 80 89 BD FA 7F 00 00 00 00 00 00 40 00 00 00 肨붉翺...@. 2A 00 00 00 00 00 00 00 F0 0D DE CA 15 02 00 00 *...෰쫞ȕ. 50 54 1C AE FA 7F 00 00 13 AB 08 70 FA 7F 00 00 呐긜翺.ꬓ瀈翺. 74 32 1F 6F FA 7F 00 00 83 63 1E 6F FA 7F 00 00 ㉴漟翺.掃漞翺. 01 7F 1F 6F FA 7F 00 00 BE 62 1E 6F FA 7F 00 00 缁漟翺.抾漞翺. C1 7D 2A 6F FA 7F 00 00 0A 49 31 6F FA 7F 00 00 緁漪翺.䤊漱翺. 18 1D AA 6F FA 7F 00 00 28 CE AA 6F FA 7F 00 00 ᴘ澪翺.츨澪翺. 76 14 AF 6F FA 7F 00 00 63 9F AE 6F FA 7F 00 00 ᑶ澯翺.齣澮翺. 09 9C AF 6F FA 7F 00 00 DF E3 FB 6F FA 7F 00 00 鰉澯翺.濻翺. 77 15 FC 6F FA 7F 00 00 8C BD FB 6F FA 7F 00 00 ᕷ濼翺.붌濻翺. B0 0F BD 6F FA 7F 00 00 4D FF BC 6F FA 7F 00 00 ྰ澽翺.m澼翺. 6B E2 BC 6F FA 7F 00 00 51 75 3E 6F FA 7F 00 00 澼翺.畑漾翺. F3 EB 83 C4 F6 7F 00 00 EF 32 86 C4 F6 7F 00 00 쒃翶.㋯쒆翶. 6E 0D 86 C4 F6 7F 00 00 8E F0 85 C4 F6 7F 00 00 ൮쒆翶.쒅翶. 0A 41 86 C4 F6 7F 00 00 32 64 83 C4 F6 7F 00 00 䄊쒆翶.搲쒃翶. 80 5E 82 C4 F6 7F 00 00 01 5A 82 C4 F6 7F 00 00 庀쒂翶.威쒂翶.`