Difference between revisions of "Errors description"

From WowWiki
Jump to navigation Jump to search
Line 1: Line 1:
   
+
 
    // WASM errors
+
{| class="wikitable"
    // -- trap errors
+
|-
    "Stack Low",                                "[trap] stack overflow"
+
! ID !! Text !! Description
    "",                          "[trap] out of bounds memory access"
+
|-
    "Divide by zero",                        "[trap] integer divide by zero"
+
| 1 || - || Reserved
    "",                                      "[trap] integer overflow"
+
|-
    "",                        "[trap] invalid conversion to integer"
+
| 2 || "Stack Low" || [trap] stack overflow
    "",                            "[trap] indirect call type mismatch"
+
|-
    "",                                      "[trap] undefined element"
+
| 3 || - || [trap] out of bounds memory access
    "",                                  "[trap] null table element"
+
|-
    "Heap Low",                                          "[trap] program called exit"
+
| 4 || "Divide by zero" || [trap] integer divide by zero
    "",                                                  "[trap] program called abort"
+
|-
    "",                                          "[trap] unreachable executed"
+
| 5 || - || [trap] integer overflow
    // -- runtime errors
+
|-
    "",                                "function is missing compiled m3 code"
+
| 6 || - || [trap] invalid conversion to integer
    "Memory overflow",                        "runtime ran out of memory"
+
|-
    "",                          "global memory is missing from a module"
+
| 7 || - || [trap] indirect call type mismatch
    "",                          "global index is too large"
+
|-
    "",                              "argument count mismatch"
+
| 8 || - || [trap] undefined element
    "",                                "argument type mismatch"
+
|-
    "",                                  "global lookup failed"
+
| 9 || - || [trap] null table element
    "",                                  "global type mismatch"
+
|-
    "",                                    "global is not mutable"
+
| 10 || "Heap Low" || [trap] program called unexpected exit
    // -- compilation errors
+
|-
    "",                                            "no compiler found for opcode"
+
| 11 || - || [trap] program called abort
    "",                                        "unknown opcode"
+
|-
    "",                                      "restricted opcode"
+
| 12 || - || [trap] unreachable executed
    "Stack Low",                      "compiling function overran its stack height limit"
+
|-
    "Stack Low",                      "compiling function underran the stack"
+
| 13 || - || function is missing compiled m3 code
    "Cache Low",                      "memory allocation failed when acquiring a new M3 code page"
+
|-
    "",                              "attempting to set an immutable global"
+
| 14 || "Memory overflow" || runtime ran out of memory
    "",                                        "incorrect type on stack"
+
|-
    "",                                  "incorrect value count on stack"
+
| 15 || - || global memory is missing from a module
    // -- link errors
+
|-
    "",                                    "attempting to use module that is not loaded"
+
| 16 || - || global index is too large
    "",                                  "attempting to bind module to multiple runtimes"
+
|-
    "",                                "function lookup failed"
+
| 17 || - || argument count mismatch
    "",                              "missing imported function"
+
|-
    "",                          "malformed function signature"
+
| 18 || - || argument type mismatch
    // -- parse errors
+
|-
    "",                              "incompatible Wasm binary version"
+
| 19 || - || global lookup failed
    "",                                          "malformed Wasm binary"
+
|-
    "",                                    "out of order Wasm section"
+
| 20 || - || global type mismatch
    "",                                              "underrun while parsing Wasm binary"
+
|-
    "",                                                "overrun while parsing Wasm binary"
+
| 21 || - || global is not mutable
    "",                                      "missing init_expr in Wasm binary"
+
|-
    "",                                          "LEB encoded value overflow"
+
| 22 || - || no compiler found for opcode
    "",                                          "invalid length UTF-8 string"
+
|-
    "",                                    "section underrun while parsing Wasm binary"
+
| 23 || - || unknown opcode
    "",                                      "section overrun while parsing Wasm binary"
+
|-
    "",                                      "unknown value_type"
+
| 24 || - || restricted opcode
    "",                              "only one memory per module is supported"
+
|-
    "",                                    "too many arguments or return values"
+
| 25 || "Stack Low" || compiling function overran its stack height limit
    "",                                        "memory allocation failed"
+
|-
    // PAWN errors
+
| 26 || "Stack Low" || compiling function underran the stack
    "Forced exit",     
+
|-
    "",                "asert"
+
| 27 || "Cache Low" || memory allocation failed when acquiring a new M3 code page
    "",                                          "stack/heap collision"
+
|-
    "",                                            "index out of bounds"
+
| 28 || - || attempting to set an immutable global
    "",                                          "invalid memory access"
+
|-
    "",                                          "invalid instruction"
+
| 29 || - || incorrect type on stack
    "Stack underflow",                            "stack underflow"
+
|-
    "Heap underflow",                              "heap underflow"
+
| 30 || - || incorrect value count on stack
    "",                                          "no callback, or invalid callback"
+
|-
    "",                                            "native function failed"
+
| 31 || - || attempting to use module that is not loaded
    "Divide by zero",                              "divide by zero"
+
|-
    "",                                              "go into sleepmode - code can be restarted"
+
| 32 || - || attempting to bind module to multiple runtimes
    "",                                          "no implementation for this state, no fall-back"
+
|-
    "Out of memory",                                "out of memory"
+
| 33 || - || function lookup failed
    "",                                            "invalid file format"
+
|-
    "",                                            "file is for a newer version of the AMX"
+
| 34 || - || missing imported function
    "",                                          "function not found"
+
|-
    "",                                              "invalid index parameter (bad entry point)"
+
| 35 || - || malformed function signature
    "",                                              "debugger cannot run"
+
|-
    "",                                              "AMX not initialized (or doubly initialized)"
+
| 36 || - || incompatible Wasm binary version
    "",                                          "unable to set user data field (table full)"
+
|-
    "",                                          "cannot initialize the JIT"
+
| 37 || - || malformed Wasm binary
    "Parameter error",                              "parameter error"
+
|-
    "",                                            "domain error, expression result does not fit in range"
+
| 38 || - || out of order Wasm section
    "",                                            "general error (unknown or unspecific error)"
+
|-
    "",                                            "overlays are unsupported (JIT) or uninitialized"
+
| 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
 +
|}

Revision as of 07:32, 11 June 2024

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