kompute icon indicating copy to clipboard operation
kompute copied to clipboard

memory sanitizer reports errors for simple example

Open mkandulavm opened this issue 1 year ago • 2 comments

Hi

I am trying to integrate the given simple multiplication example into a project. I use the memory sanitizer by default and it is showing following info.

single_include/kompute/Kompute.hpp:1049:30: runtime error: member call on address 0x555559947500 which does not point to an object of type 'TensorT' 0x555559947500: note: object has invalid vptr

Please help on how to proceed.

Also, in debug mode I am getting a segmentation fault in manager.cpp at this line this->mInstance->destroyDebugReportCallbackEXT(

why is this happening ?

mkandulavm avatar Aug 11 '22 11:08 mkandulavm

Once I defined this , the problem got resolved KOMPUTE_OPT_DISABLE_VK_DEBUG_LAYERS

thank you.

mkandulavm avatar Aug 11 '22 19:08 mkandulavm

Nice - thank you for updating, it does seem like there is a raised warning from the debug layers so we'll have a look. Thank you for reporting

axsaucedo avatar Aug 11 '22 19:08 axsaucedo

I'm getting a crash for this line aswell:

[Jun 28 2023 13:36:45] [debug] [/home/stephan/Development/bcenc-gpu/build/_deps/kompute-src/src/Manager.cpp:26] [VALIDATION]: Validation - Validation Error: [ UNASSIGNED-Threading-Info ] Object 0: handle = 0x12460c0, type = VK_OBJECT_TYPE_DEBUG_REPORT_CALLBACK_EXT; | MessageID = 0x5d6b67e2 | Couldn't find VkDebugReportCallbackEXT Object 0x12460c0. This should not happen and may indicate a bug in the application.

feliwir avatar Jun 28 '23 11:06 feliwir

@feliwir thank you for reporting this issue, however it seems it's a different issue, quite a strange one.

Could you please create a new issue with the details on your versions of vulkan, etc (as per the issue creation tempalte)?

We'll close this issue as several debug layer issues have been resolved since the most recent version.

axsaucedo avatar Jul 02 '23 12:07 axsaucedo