Symptom
The file name and line number are displayed as [object Object], or the file name is correct but the line number is displayed as [object Object].
Solution
The file name and line number are displayed as
[object Object].The msSanitizer tool fails to parse the correct file name and line number. You can use either of the following methods to solve the problem:
- If the
[object Object]option is enabled to check the memory of the CANN software stack, you can import the sanitizer API header file and recompile the user program so that the detection tool can obtain the correct file name and line number. For details, see "Checking the Memory of the CANN Software Stack" > "Memory Leak Detection Principles" > "Step 4" in . - If the operator is being checked for exceptions, the
[object Object]compilation option may not be enabled in the operator compilation phase. The correct file name and line number can be generated only after the[object Object]compilation option is enabled. For details, see "Preparations" > "Preparations for Kernel Launch Symbol Scenario" in .
- If the
The file name is correct, but the line number is
[object Object].This problem generally occurs because the
[object Object]or[object Object]compilation option is used to compile the operator code. When the compiler optimizes the operator code, the code line changes. You can use[object Object]to disable compiler optimization during operator compilation to solve this problem.
Symptom
The error message [object Object] is displayed.
Possible Causes
The input code segment for operator linking is too large and exceeds the instruction jump range supported by the compiler.
Solution
Add compilation options to increase the jump range of the compiler. According to "Preparations" > "Configuring Compilation Options" > "Adding -g to Compilation Options" in , add [object Object] after [object Object].
Symptom
When the msSanitizer tool is used to detect exceptions, the message [object Object] is displayed.
Possible Causes
The size of the operator execution information exceeds the default size of the GM allocated by the tool, causing some information loss.
Solution
Change the value of [object Object] as prompted and restart the operator for exception detection.