内存问题:
- > hvigor ERROR: Failed :entry:default@SignHap...
- > hvigor ERROR: Tools execution failed.
- OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000745400000, 627048448, 0) failed; error='页面文件太小,无法完成操作。' (DOS error/errno=1455)
- Detail: Please check the message from tools.
- > hvigor ERROR: BUILD FAILED in 32 s 834 ms
根据工具简介可知,HUAWEI DevEco Studio是基于IntelliJ IDEA Community开源版本打造。对DevEco Studio运行异常的部分问题,可参考IntelliJ IDEA Community运行异常来处理。
- ...
- Register to memory mapping:
-
-
- RIP=0x00007ff8d91730f0 jvm.dll
- RAX=0x0000000000000108 is an unknown value
- RBX=0x0 is NULL
- RCX=0x000001c11f0abd60 points into unknown readable memory: 0x000001c11d830970 | 70 09 83 1d c1 01 00 00
- RDX=0x000001c11f0bd420 points into unknown readable memory: 0x000001c11d830a48 | 48 0a 83 1d c1 01 00 00
- RSP=0x0000009cb1efa0b0 is pointing into the stack for thread: 0x000001c0b8895360
- RBP=0x000001c11f09a330 points into unknown readable memory: 0x0000000000000000 | 00 00 00 00 00 00 00 00
- RSI=0x0000009cb1efa4f0 is pointing into the stack for thread: 0x000001c0b8895360
- RDI=0x0000000000000001 is an unknown value
- R8 =0x000001c11f09a330 points into unknown readable memory: 0x0000000000000000 | 00 00 00 00 00 00 00 00
- R9 =0x000001c11f0bd510 points into unknown readable memory: 0x000001c115486660 | 60 66 48 15 c1 01 00 00
- R10=0x0000000000000003 is an unknown value
- R11=0x000001c11f0abd60 points into unknown readable memory: 0x000001c11d830970 | 70 09 83 1d c1 01 00 00
- R12=0x000001c11f0bd3d0 points into unknown readable memory: 0x000001c11d831b58 | 58 1b 83 1d c1 01 00 00
- R13=0x0 is NULL
- R14=0x000001c11f2e8d70 points into unknown readable memory: 0xffffffff00000001 | 01 00 00 00 ff ff ff ff
- R15=0x000001c11d830a48 points into unknown readable memory: 0x00007ff8d97e7168 | 68 71 7e d9 f8 7f 00 00
- ...
- Stack slot to memory mapping:
- stack at sp + 0 slots: 0x000001c11f09a330 points into unknown readable memory: 0x0000000000000000 | 00 00 00 00 00 00 00 00
- stack at sp + 1 slots: 0x0000009cb1efa100 is pointing into the stack for thread: 0x000001c0b8895360
- stack at sp + 2 slots: 0x0000009cb1efa4f0 is pointing into the stack for thread: 0x000001c0b8895360
- stack at sp + 3 slots: 0x000001c11f2e8d70 points into unknown readable memory: 0xffffffff00000001 | 01 00 00 00 ff ff ff ff
- stack at sp + 4 slots: 0x000001c11f2e8d70 points into unknown readable memory: 0xffffffff00000001 | 01 00 00 00 ff ff ff ff
- stack at sp + 5 slots: 0x000001c0b88647b0 points into unknown readable memory: 0x000001c000000006 | 06 00 00 00 c0 01 00 00
- stack at sp + 6 slots: 0x000001c11f2de030 points into unknown readable memory: 0x000001c11f09a320 | 20 a3 09 1f c1 01 00 00
- stack at sp + 7 slots: 0x0000000000167398 is an unknown value
- ...
- bool HeapDumpOnOutOfMemoryError = true {manageable} {command line}
- ...
关键日志HeapDumpOnOutOfMemoryError = true可知内存不足。
场景二:根据os::commit_memory(0x0000000745400000, 627048448, 0) failed报错,可知为内存不足问题。