ppBruce
2023-06-06 17:19:43 +08:00
进行到 dbToJson 卡住了。
1.input 文件夹不存在,看起来是手动在'2 dbToJson'下自己建一个?
2.修改 config.js 填入需要导入的对方微信 id ,这步是为什么呢?是不是可以理解为每次只能把一个对话转为 json ,多个的话需要手动执行多次?
3.在 2 dbToJson 下执行 node run build 一直报错。
node:internal/modules/cjs/loader:1078
throw err;
^
Error: Cannot find module 'C:\wechat\tools\Shmily-Get-Wechat-main\export\db-android\2 dbToJson\run'
[90m at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) [39m
[90m at Module._load (node:internal/modules/cjs/loader:920:27) [39m
[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) [39m
[90m at node:internal/main/run_main_module:23:47 [39m {
code: [32m'MODULE_NOT_FOUND' [39m,
requireStack: []
}
Node.js v18.16.0
4.在 2 dbToJson 下执行 node index.js ,执行一段时间后,报错。
正在解密 Message
java.lang.OutOfMemoryError: Java heap space
at java.io.BufferedWriter.<init>(Unknown Source)
at java.io.BufferedWriter.<init>(Unknown Source)
at sqlite.test.ReadTxt.writeDocument(ReadTxt.java:116)
at sqlite.test.ReadTxt.main(ReadTxt.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84)
at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94)
node:child_process:960
throw err;
^
Error: Command failed: decodeMessageTable.exe
java.lang.OutOfMemoryError: Java heap space
at java.io.BufferedWriter.<init>(Unknown Source)
at java.io.BufferedWriter.<init>(Unknown Source)
at sqlite.test.ReadTxt.writeDocument(ReadTxt.java:116)
at sqlite.test.ReadTxt.main(ReadTxt.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84)
at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94)
at checkExecSyncError (node:child_process:885:11)
at execSync (node:child_process:957:15)
at Object.<anonymous> (C:\wechat\tools\Shmily-Get-Wechat-main\export\db-android\2 dbToJson\index.js:13:1)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
status: 1,
signal: null,
output: [
null,
'',
'java.lang.OutOfMemoryError: Java heap space\r\n' +
'\tat java.io.BufferedWriter.<init>(Unknown Source)\r\n' +
'\tat java.io.BufferedWriter.<init>(Unknown Source)\r\n' +
'\tat sqlite.test.ReadTxt.writeDocument(ReadTxt.java:116)\r\n' +
'\tat sqlite.test.ReadTxt.main(ReadTxt.java:86)\r\n' +
'\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n' +
'\tat sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)\r\n' +
'\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\r\n' +
'\tat java.lang.reflect.Method.invoke(Unknown Source)\r\n' +
'\tat com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84)\r\n' +
'\tat com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94)\r\n'
],
pid: 10184,
stdout: '',
stderr: 'java.lang.OutOfMemoryError: Java heap space\r\n' +
'\tat java.io.BufferedWriter.<init>(Unknown Source)\r\n' +
'\tat java.io.BufferedWriter.<init>(Unknown Source)\r\n' +
'\tat sqlite.test.ReadTxt.writeDocument(ReadTxt.java:116)\r\n' +
'\tat sqlite.test.ReadTxt.main(ReadTxt.java:86)\r\n' +
'\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n' +
'\tat sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)\r\n' +
'\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\r\n' +
'\tat java.lang.reflect.Method.invoke(Unknown Source)\r\n' +
'\tat com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84)\r\n' +
'\tat com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94)\r\n'
}
Node.js v18.16.0