18.6.17日报

2019-02-20 09:52:48 浏览数 (1)

1,解决vscode在加载文件夹时崩溃的问题。

原因是页面会reload,而mb会把所有env里的uv的handle全部close。导致vscode的sharp process的有名管道的handleye

被关闭了。

出问题的地方,主进程发送消息 line:68, [E:mycodeminiblink49trunkelectronlibbrowserapiweb-contents.js] , [WebContents.send] line:22,[E:test_codevscode-master-1.23.1resourcesappoutvsbasepartsipccommonipc.electron.js] , [Protocol.send] line:60, [E:test_codevscode-master-1.23.1resourcesappoutvsbasepartsipccommonipc.js] , [] line:1581,[E:test_codevscode-master-1.23.1resourcesappoutvsbasecommonwinjs.base.js] , [CompletePromise_then] line:59,[E:test_codevscode-master-1.23.1resourcesappoutvsbasepartsipccommonipc.js] , [ChannelServer.onCommonRequest] line:41,[E:test_codevscode-master-1.23.1resourcesappoutvsbasepartsipccommonipc.js] , [ChannelServer.onMessage] line:32, [E:test_codevscode-master-1.23.1resourcesappoutvsbasepartsipccommonipc.js] , [] line:103, [E:test_codevscode-master-1.23.1resourcesappoutvsbasecommonevent.js] , [Emitter.fire] line:12, [E:test_codevscode-master-1.23.1resourcesappoutvsbasepartsipccommonipc.electron.js] , [] line:327, [E:test_codevscode-master-1.23.1resourcesappoutvsbasecommonevent.js] , [] line:341, [E:test_codevscode-master-1.23.1resourcesappoutvsbasecommonevent.js] , [] line:103, [E:test_codevscode-master-1.23.1resourcesappoutvsbasecommonevent.js] , [Emitter.fire] line:496, [E:test_codevscode-master-1.23.1resourcesappoutvsbasecommonevent.js] , [fn] line:111, [events.js] , [emitTwo] line:191, [events.js] , [emit] line:33, [E:mycodeminiblink49trunkelectronlibbrowserapiweb-contents.js] , [] line:116, [events.js] , [emitThree] line:194, [events.js] , [emit] 出问题的地方,sharp页面的渲染进程要去connect 共享进程 line:870, [net.js] , [connect] line:934, [net.js] , [Socket.connect] line:74, [net.js] , [exports.connect.exports.createConnection] line:196, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/parts/ipc/node/ipc.net.js] , [] line:1656, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/common/winjs.base.js] , [Promise_ctor] line:195, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/parts/ipc/node/ipc.net.js] , [connect] line:192, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/workbench/electron-browser/shell.js] , [] line:1185, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/common/winjs.base.js] , [notifySuccess] line:867, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/common/winjs.base.js] , [enter] line:1083, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/common/winjs.base.js] , [_run] line:1051, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/common/winjs.base.js] , [_completed] line:144, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/parts/ipc/common/ipc.js] , [_this.handlers.(anonymous function)] line:202, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/parts/ipc/common/ipc.js] , [ChannelClient.onMessage] line:109, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/parts/ipc/common/ipc.js] , [] line:103, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/common/event.js] , [Emitter.fire] line:12, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/parts/ipc/common/ipc.electron.js] , [] line:103, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/common/event.js] , [Emitter.fire] line:496, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/common/event.js] , [fn] line:106, [events.js] , [emitTwo] line:191, [events.js] , [emit]  主进程创建第二个窗口 line:26, [E:test_codevscode-master-1.23.1outvscodeelectron-mainsharedProcess.js] , [get] line:55, [E:test_codevscode-master-1.23.1outvsbasecommondecorators.js] , [descriptor.(anonymous function)] line:92, [E:test_codevscode-master-1.23.1outvscodeelectron-mainsharedProcess.js] , [] line:1185, [E:test_codevscode-master-1.23.1outvsbasecommonwinjs.base.js] , [notifySuccess] line:867, [E:test_codevscode-master-1.23.1outvsbasecommonwinjs.base.js] , [enter] line:1083, [E:test_codevscode-master-1.23.1outvsbasecommonwinjs.base.js] , [_run] line:1051, [E:test_codevscode-master-1.23.1outvsbasecommonwinjs.base.js] , [_completed] line:302, [E:test_codevscode-master-1.23.1outvsbasecommonasync.js] , [Barrier.open] line:88, [E:test_codevscode-master-1.23.1outvscodeelectron-mainsharedProcess.js] , [SharedProcess.spawn] line:414, [E:test_codevscode-master-1.23.1outvscodeelectron-mainapp.js] , [CodeApplication.afterWindowOpen] line:247, [E:test_codevscode-master-1.23.1outvscodeelectron-mainapp.js] , [] line:48, [E:test_codevscode-master-1.23.1outvsplatforminstantiationcommoninstantiationService.js] , [InstantiationService.invokeFunction] line:247, [E:test_codevscode-master-1.23.1outvscodeelectron-mainapp.js] , [] line:1581, [E:test_codevscode-master-1.23.1outvsbasecommonwinjs.base.js] , [CompletePromise_then] line:240, [E:test_codevscode-master-1.23.1outvscodeelectron-mainapp.js] , [] line:1581, [E:test_codevscode-master-1.23.1outvsbasecommonwinjs.base.js] , [CompletePromise_then] line:225, [E:test_codevscode-master-1.23.1outvscodeelectron-mainapp.js] , [CodeApplication.startup] line:345, [E:test_codevscode-master-1.23.1outvscodeelectron-mainmain.js] , [] line:1185, [E:test_codevscode-master-1.23.1outvsbasecommonwinjs.base.js] , [notifySuccess] line:867, [E:test_codevscode-master-1.23.1outvsbasecommonwinjs.base.js] , [enter] line:1083, [E:test_codevscode-master-1.23.1outvsbasecommonwinjs.base.js] , [_run] line:1051, [E:test_codevscode-master-1.23.1outvsbasecommonwinjs.base.js] , [_completed] line:189, [E:test_codevscode-master-1.23.1outvsbasepartsipcnodeipc.net.js] , [] line:291, [events.js] , [g] line:86, [events.js] , [emitNone] line:185, [events.js] , [emit] line:1285, [net.js] , [emitListeningNT] line:71, [internal/process/next_tick.js] , [_combinedTickCallback] line:98, [internal/process/next_tick.js] , [_tickCallback] 渲染进程握手消息

[sharedProcess. sharedProcessMain.js handshake __callstack__],

[file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js]

stackTrace:     at handshake [111]:[14]:[file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js]     at startup [9]:[9]:[file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js]     at (anonymous function) [154]:[18]:[file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcess.js]     at Module._invokeFactory [952]:[41]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at Module.complete [965]:[36]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at ModuleManager._onModuleComplete [1580]:[20]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at ModuleManager._onModuleComplete [1592]:[30]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at ModuleManager._onModuleComplete [1592]:[30]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at ModuleManager._onModuleComplete [1592]:[30]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at ModuleManager._onModuleComplete [1592]:[30]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at ModuleManager._onModuleComplete [1592]:[30]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at ModuleManager._onModuleComplete [1592]:[30]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at ModuleManager._onModuleComplete [1592]:[30]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at ModuleManager._resolve [1542]:[22]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at ModuleManager.defineModule [1196]:[18]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at ModuleManager._onLoad [1275]:[22]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at (anonymous function) [1447]:[31]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at OnlyOnceScriptLoader.triggerCallback [585]:[36]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at (anonymous function) [579]:[90]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at (anonymous function) [786]:[29]:[file:///e:/test_code/vscode-master-1.23.1/resources/app/out/vs/loader.js]     at readFileAfterClose [445]:[3]:[fs.js] HandleWrap::HandleWrap 09561D68 handshake:hey there 的时候创建 创建命名管道 FatalException: 18 line:1203, [net.js] , [createServerHandle] line:1243, [net.js] , [Server._listen2] line:1295, [net.js] , [listen] line:1384, [net.js] , [Server.listen] line:187, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/parts/ipc/node/ipc.net.js] , [] line:1656, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/common/winjs.base.js] , [Promise_ctor] line:184, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/parts/ipc/node/ipc.net.js] , [serve] line:79, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js] , [setup] line:102, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js] , [setupIPC] line:113, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js] , [] line:1185, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/common/winjs.base.js] , [notifySuccess] line:867, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/common/winjs.base.js] , [enter] line:1083, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/common/winjs.base.js] , [_run] line:1051, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/base/common/winjs.base.js] , [_completed] line:106, [file:///E:/test_code/vscode-master-1.23.1/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js] , [] line:291, [events.js] , [g] line:106, [events.js] , [emitTwo] line:191, [events.js] , [emit]

0 人点赞