Difference between revisions of "Errors description"

From WowWiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
    // General errors
+
More details about application memory could be found in [[Application memory description|Application memory description]]
    "",                // APP_ERROR_NONE
+
 
    "Unknown",          // APP_ERROR_UNKNOWN
+
{| class="wikitable"
    // WASM errors
+
|-
    // -- trap errors
+
! ID !! Text !! Description
    "Stack Low",        // APP_ERROR_WASM_STACK_OVERFLOW                        "[trap] stack overflow"
+
|-
    "",                // APP_ERROR_WASM_OUT_OF_BOUNDS_MEMORY_ACCESS          "[trap] out of bounds memory access"
+
| 1 || - || Reserved
    "Divide by zero",  // APP_ERROR_WASM_DIVISION_BY_ZERO                      "[trap] integer divide by zero"
+
|-
    "",                // APP_ERROR_WASM_INTEGER_OVERFLOW                      "[trap] integer overflow"
+
| 2 || "Stack Low" || [trap] stack overflow
    "",                // APP_ERROR_WASM_INVALID_CONVERSION_TO_INTEGER        "[trap] invalid conversion to integer"
+
|-
    "",                // APP_ERROR_WASM_INDIRECT_CALL_TYPE_MISMATCH          "[trap] indirect call type mismatch"
+
| 3 || - || [trap] out of bounds memory access
    "",                // APP_ERROR_WASM_UNDEFINED_ELEMENT                    "[trap] undefined element"
+
|-
    "",                // APP_ERROR_WASM_NULL_TABLE_ELEMENT                    "[trap] null table element"
+
| 4 || "Divide by zero" || [trap] integer divide by zero
    "Heap Low",        // APP_ERROR_WASM_EXIT                                  "[trap] program called exit"
+
|-
    "",                // APP_ERROR_WASM_ABORT                                "[trap] program called abort"
+
| 5 || - || [trap] integer overflow
    "",                // APP_ERROR_WASM_UNREACHABLE                          "[trap] unreachable executed"
+
|-
    // -- runtime errors
+
| 6 || - || [trap] invalid conversion to integer
    "",                // APP_ERROR_WASM_MISSING_COMPILED_CODE                "function is missing compiled m3 code"
+
|-
    "Memory overflow",  // APP_ERROR_WASM_MEMORY_OVERFLOW                      "runtime ran out of memory"
+
| 7 || - || [trap] indirect call type mismatch
    "",                // APP_ERROR_WASM_GLOBAL_MEMORY_NOT_ALLOCATED          "global memory is missing from a module"
+
|-
    "",                // APP_ERROR_WASM_GLOBAL_INDEX_OUT_OF_BOUNDS            "global index is too large"
+
| 8 || - || [trap] undefined element
    "",                // APP_ERROR_WASM_ARGUMENT_COUNT_MISMATCH              "argument count mismatch"
+
|-
    "",                // APP_ERROR_WASM_ARGUMENT_TYPE_MISMATCH                "argument type mismatch"
+
| 9 || - || [trap] null table element
    "",                // APP_ERROR_WASM_GLOBAL_LOOKUP_FAILED                  "global lookup failed"
+
|-
    "",                // APP_ERROR_WASM_GLOBAL_TYPE_MISMATCH                  "global type mismatch"
+
| 10 || "Heap Low" || [trap] program called unexpected exit
    "",                // APP_ERROR_WASM_GLOBAL_NOT_MUTABLE                    "global is not mutable"
+
|-
    // -- compilation errors
+
| 11 || - || [trap] program called abort
    "",                // APP_ERROR_WASM_NO_COMPILER                          "no compiler found for opcode"
+
|-
    "",                // APP_ERROR_WASM_UNKNOWN_OPCODE                        "unknown opcode"
+
| 12 || - || [trap] unreachable executed
    "",                // APP_ERROR_WASM_RESTRICTED_OPCODE                    "restricted opcode"
+
|-
    "Stack Low",        // APP_ERROR_WASM_FUNCTION_STACK_OVERFLOW              "compiling function overran its stack height limit"
+
| 13 || - || function is missing compiled m3 code
    "Stack Low",        // APP_ERROR_WASM_FUNCTION_STACK_UNDERRUN              "compiling function underran the stack"
+
|-
    "Cache Low",        // APP_ERROR_WASM_MALLOC_FAILED_CODE_PAGE              "memory allocation failed when acquiring a new M3 code page"
+
| 14 || "Memory overflow" || runtime ran out of memory
    "",                // APP_ERROR_WASM_SETTING_IMMUTABLE_GLOBAL              "attempting to set an immutable global"
+
|-
    "",                // APP_ERROR_WASM_TYPE_MISMATCH                        "incorrect type on stack"
+
| 15 || - || global memory is missing from a module
    "",                // APP_ERROR_WASM_TYPE_COUNT_MISMATCH                  "incorrect value count on stack"
+
|-
    // -- link errors
+
| 16 || - || global index is too large
    "",                // APP_ERROR_WASM_MODULE_NOT_LINKED                    "attempting to use module that is not loaded"
+
|-
    "",                // APP_ERROR_WASM_MODULE_ALREADY_LINKED                "attempting to bind module to multiple runtimes"
+
| 17 || - || argument count mismatch
    "",                // APP_ERROR_WASM_FUNCTION_LOOKUP_FAILED                "function lookup failed"
+
|-
    "",                // APP_ERROR_WASM_FUNCTION_IMPORT_MISSING              "missing imported function"
+
| 18 || - || argument type mismatch
    "",                // APP_ERROR_WASM_MALFORMED_FUNCTION_SIGNATURE          "malformed function signature"
+
|-
    // -- parse errors
+
| 19 || - || global lookup failed
    "",                // APP_ERROR_WASM_INCOMPATIBLE_WASM_VERSION            "incompatible Wasm binary version"
+
|-
    "",                // APP_ERROR_WASM_MALFORMED                            "malformed Wasm binary"
+
| 20 || - || global type mismatch
    "",                // APP_ERROR_WASM_MISORDERED_SECTION                    "out of order Wasm section"
+
|-
    "",                // APP_ERROR_WASM_UNDERRUN                              "underrun while parsing Wasm binary"
+
| 21 || - || global is not mutable
    "",                // APP_ERROR_WASM_OVERRUN                              "overrun while parsing Wasm binary"
+
|-
    "",                // APP_ERROR_WASM_MISSING_INIT_EXPR                    "missing init_expr in Wasm binary"
+
| 22 || - || no compiler found for opcode
    "",                // APP_ERROR_WASM_LEB_OVERFLOW                          "LEB encoded value overflow"
+
|-
    "",                // APP_ERROR_WASM_MISSING_UTF8,                        "invalid length UTF-8 string"
+
| 23 || - || unknown opcode
    "",                // APP_ERROR_WASM_SECTION_UNDERERRUN,                  "section underrun while parsing Wasm binary"
+
|-
    "",                // APP_ERROR_WASM_SECTION_OVERRUN,                      "section overrun while parsing Wasm binary"
+
| 24 || - || restricted opcode
    "",                // APP_ERROR_WASM_INVALID_TYPE_ID,                      "unknown value_type"
+
|-
    "",                // APP_ERROR_WASM_TOO_MANY_MEMORY_SECTIONS,            "only one memory per module is supported"
+
| 25 || "Stack Low" || compiling function overran its stack height limit
    "",                // APP_ERROR_WASM_TOO_MANY_ARGS_RETS,                  "too many arguments or return values"
+
|-
    "",                // APP_ERROR_WASM_MALLOC_FAILED,                        "memory allocation failed"
+
| 26 || "Stack Low" || compiling function underran the stack
    // PAWN errors
+
|-
    "Forced exit",      // APP_ERROR_AMX_ERR_EXIT,
+
| 27 || "Cache Low" || memory allocation failed when acquiring a new M3 code page
    "",                // APP_ERROR_AMX_ERR_ASSERT,
+
|-
    "",                // APP_ERROR_AMX_ERR_STACKERR,                          "stack/heap collision"
+
| 28 || - || attempting to set an immutable global
    "",                // APP_ERROR_AMX_ERR_BOUNDS,                            "index out of bounds"
+
|-
    "",                // APP_ERROR_AMX_ERR_MEMACCESS,                        "invalid memory access"
+
| 29 || - || incorrect type on stack
    "",                // APP_ERROR_AMX_ERR_INVINSTR,                          "invalid instruction"
+
|-
    "Stack underflow",  // APP_ERROR_AMX_ERR_STACKLOW,                          "stack underflow"
+
| 30 || - || incorrect value count on stack
    "Heap underflow",  // APP_ERROR_AMX_ERR_HEAPLOW,                          "heap underflow"
+
|-
    "",                // APP_ERROR_AMX_ERR_CALLBACK,                          "no callback, or invalid callback"
+
| 31 || - || attempting to use module that is not loaded
    "",                // APP_ERROR_AMX_ERR_NATIVE,                            "native function failed"
+
|-
    "Divide by zero",  // APP_ERROR_AMX_ERR_DIVIDE,                            "divide by zero"
+
| 32 || - || attempting to bind module to multiple runtimes
    "",                // APP_ERROR_AMX_ERR_SLEEP,                            "go into sleepmode - code can be restarted"
+
|-
    "",                // APP_ERROR_AMX_ERR_INVSTATE,                          "no implementation for this state, no fall-back"
+
| 33 || - || function lookup failed
    "Out of memory",    // APP_ERROR_AMX_ERR_MEMORY,                            "out of memory"
+
|-
    "",                // APP_ERROR_AMX_ERR_FORMAT,                            "invalid file format"
+
| 34 || - || missing imported function
    "",                // APP_ERROR_AMX_ERR_VERSION,                          "file is for a newer version of the AMX"
+
|-
    "",                // APP_ERROR_AMX_ERR_NOTFOUND,                          "function not found"
+
| 35 || - || malformed function signature
    "",                // APP_ERROR_AMX_ERR_INDEX,                            "invalid index parameter (bad entry point)"
+
|-
    "",                // APP_ERROR_AMX_ERR_DEBUG,                            "debugger cannot run"
+
| 36 || - || incompatible Wasm binary version
    "",                // APP_ERROR_AMX_ERR_INIT,                              "AMX not initialized (or doubly initialized)"
+
|-
    "",                // APP_ERROR_AMX_ERR_USERDATA,                          "unable to set user data field (table full)"
+
| 37 || - || malformed Wasm binary
    "",                // APP_ERROR_AMX_ERR_INIT_JIT,                          "cannot initialize the JIT"
+
|-
    "Parameter error",  // APP_ERROR_AMX_ERR_PARAMS,                            "parameter error"
+
| 38 || - || out of order Wasm section
    "",                // APP_ERROR_AMX_ERR_DOMAIN,                            "domain error, expression result does not fit in range"
+
|-
    "",                // APP_ERROR_AMX_ERR_GENERAL,                          "general error (unknown or unspecific error)"
+
| 39 || - || underrun while parsing Wasm binary
    "",                // APP_ERROR_AMX_ERR_OVERLAY,                          "overlays are unsupported (JIT) or uninitialized"
+
|-
 +
| 40 || - || overrun while parsing Wasm binary
 +
|-
 +
| 41 || - || missing init_expr in Wasm binary
 +
|-
 +
| 42 || - || LEB encoded value overflow
 +
|-
 +
| 43 || - || invalid length UTF-8 string
 +
|-
 +
| 44 || - || section underrun while parsing Wasm binary
 +
|-
 +
| 45 || - || section overrun while parsing Wasm binary
 +
|-
 +
| 46 || - || unknown value_type
 +
|-
 +
| 47 || - || only one memory per module is supported
 +
|-
 +
| 48 || - || too many arguments or return values
 +
|-
 +
| 49 || - || memory allocation failed
 +
|-
 +
| 50 || "Forced exit" || Forced exit
 +
|-
 +
| 51 || "asert" || Aasert
 +
|-
 +
| 52 || - || stack/heap collision
 +
|-
 +
| 53 || - || index out of bounds
 +
|-
 +
| 54 || - || invalid memory access
 +
|-
 +
| 55 || - || invalid instruction
 +
|-
 +
| 56 || "Stack underflow" || stack underflow
 +
|-
 +
| 57 || "Heap underflow" || heap underflow
 +
|-
 +
| 58 || - || no callback, or invalid callback
 +
|-
 +
| 59 || - || native function failed
 +
|-
 +
| 60 || "Divide by zero" || divide by zero
 +
|-
 +
| 61 || - || go into sleepmode - code can be restarted
 +
|-
 +
| 62 || - || no implementation for this state, no fall-back
 +
|-
 +
| 63 || "Out of memory" || out of memory
 +
|-
 +
| 64 || - || invalid file format
 +
|-
 +
| 65 || - || file is for a newer version of the AMX
 +
|-
 +
| 66 || - || function not found
 +
|-
 +
| 67 || - || invalid index parameter (bad entry point)
 +
|-
 +
| 68 || - || debugger cannot run
 +
|-
 +
| 69 || - || AMX not initialized (or doubly initialized)
 +
|-
 +
| 70 || - || unable to set user data field (table full)
 +
|-
 +
| 71 || - || cannot initialize the JIT
 +
|-
 +
| 72 || "Parameter error" || parameter error
 +
|-
 +
| 73 || - || domain error, expression result does not fit in range
 +
|-
 +
| 74 || - || general error (unknown or unspecific error)
 +
|-
 +
| 75 || - || overlays are unsupported (JIT) or uninitialized
 +
|}

Latest revision as of 12:22, 11 June 2024

More details about application memory could be found in Application memory description

ID Text Description
1 - Reserved
2 "Stack Low" [trap] stack overflow
3 - [trap] out of bounds memory access
4 "Divide by zero" [trap] integer divide by zero
5 - [trap] integer overflow
6 - [trap] invalid conversion to integer
7 - [trap] indirect call type mismatch
8 - [trap] undefined element
9 - [trap] null table element
10 "Heap Low" [trap] program called unexpected exit
11 - [trap] program called abort
12 - [trap] unreachable executed
13 - function is missing compiled m3 code
14 "Memory overflow" runtime ran out of memory
15 - global memory is missing from a module
16 - global index is too large
17 - argument count mismatch
18 - argument type mismatch
19 - global lookup failed
20 - global type mismatch
21 - global is not mutable
22 - no compiler found for opcode
23 - unknown opcode
24 - restricted opcode
25 "Stack Low" compiling function overran its stack height limit
26 "Stack Low" compiling function underran the stack
27 "Cache Low" memory allocation failed when acquiring a new M3 code page
28 - attempting to set an immutable global
29 - incorrect type on stack
30 - incorrect value count on stack
31 - attempting to use module that is not loaded
32 - attempting to bind module to multiple runtimes
33 - function lookup failed
34 - missing imported function
35 - malformed function signature
36 - incompatible Wasm binary version
37 - malformed Wasm binary
38 - out of order Wasm section
39 - underrun while parsing Wasm binary
40 - overrun while parsing Wasm binary
41 - missing init_expr in Wasm binary
42 - LEB encoded value overflow
43 - invalid length UTF-8 string
44 - section underrun while parsing Wasm binary
45 - section overrun while parsing Wasm binary
46 - unknown value_type
47 - only one memory per module is supported
48 - too many arguments or return values
49 - memory allocation failed
50 "Forced exit" Forced exit
51 "asert" Aasert
52 - stack/heap collision
53 - index out of bounds
54 - invalid memory access
55 - invalid instruction
56 "Stack underflow" stack underflow
57 "Heap underflow" heap underflow
58 - no callback, or invalid callback
59 - native function failed
60 "Divide by zero" divide by zero
61 - go into sleepmode - code can be restarted
62 - no implementation for this state, no fall-back
63 "Out of memory" out of memory
64 - invalid file format
65 - file is for a newer version of the AMX
66 - function not found
67 - invalid index parameter (bad entry point)
68 - debugger cannot run
69 - AMX not initialized (or doubly initialized)
70 - unable to set user data field (table full)
71 - cannot initialize the JIT
72 "Parameter error" parameter error
73 - domain error, expression result does not fit in range
74 - general error (unknown or unspecific error)
75 - overlays are unsupported (JIT) or uninitialized