V-E hanging when electron-html-to spawned
same result with Node v4.5.0 and v6.9.1
Ubuntu 16.04
I duckducked a bit and see there is some issue with either linking of node or electron-prebuilt installation method (documented in the readme of electron-html-to). But I couldn't work it out. Somethings funny here I rekin...the below is the debug output. same result use framebuffer or without. hangs at the last line with no result. Interestingly, if I use a hyphenation parameter then I get the hyphenated HTML output, but still it then hangs and no PDF.
DEBUG=* vivliostyle-electron --debug index2.html --output sssa3s.pdf
electron-html-to Creating a new conversion function with options: +0ms { timeout: 300000,
numberOfWorkers: 2,
chromeCommandLineSwitches: { 'ignore-certificate-errors': null },
allowLocalFilesAccess: true,
tmpDir: '/tmp/electron-html-to-tmp-data',
strategy: 'dedicated-process',
converterPath: '/home/adam/.nvm/versions/node/v6.9.1/lib/node_modules/vivliostyle-electron/node_modules/electron-html-to/lib/converters/pdf.js' }
electron-workers:manager trying to get electron path from electron-prebuilt module.. +0ms
electron-workers Creating a new manager with options: +1ms { timeout: 300000,
numberOfWorkers: 2,
chromeCommandLineSwitches: { 'ignore-certificate-errors': null },
allowLocalFilesAccess: true,
tmpDir: '/tmp/electron-html-to-tmp-data',
strategy: 'dedicated-process',
converterPath: '/home/adam/.nvm/versions/node/v6.9.1/lib/node_modules/vivliostyle-electron/node_modules/electron-html-to/lib/converters/pdf.js',
hostEnvVarName: 'ELECTRON_WORKER_HOST',
portEnvVarName: 'ELECTRON_WORKER_PORT',
pathToScript: '/home/adam/.nvm/versions/node/v6.9.1/lib/node_modules/vivliostyle-electron/node_modules/electron-html-to/lib/scripts/serverScript.js',
env:
{ ELECTRON_HTML_TO_DEBUGGING: 'true',
chromeCommandLineSwitches: '{"ignore-certificate-errors":null}',
allowLocalFilesAccess: 'true' },
stdio:
[ null,
WriteStream {
connecting: false,
_hadError: false,
_handle: [Object],
_parent: null,
_host: null,
_readableState: [Object],
readable: false,
domain: null,
_events: [Object],
_eventsCount: 3,
_maxListeners: undefined,
_writableState: [Object],
writable: true,
allowHalfOpen: false,
destroyed: false,
_bytesDispatched: 0,
_sockname: null,
_writev: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
columns: 212,
rows: 55,
_type: 'tty',
fd: 1,
_isStdio: true,
destroySoon: [Function],
destroy: [Function] },
WriteStream {
connecting: false,
_hadError: false,
_handle: [Object],
_parent: null,
_host: null,
_readableState: [Object],
readable: false,
domain: null,
_events: [Object],
_eventsCount: 3,
_maxListeners: undefined,
_writableState: [Object],
writable: true,
allowHalfOpen: false,
destroyed: false,
_bytesDispatched: 570,
_sockname: null,
_writev: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
columns: 212,
rows: 55,
_type: 'tty',
fd: 2,
_isStdio: true,
destroySoon: [Function],
destroy: [Function] },
'ipc' ],
killSignal: 'SIGKILL',
connectionMode: 'server',
electronArgs: [],
pathToElectron: '/home/adam/.nvm/versions/node/v6.9.1/lib/node_modules/vivliostyle-electron/node_modules/electron-prebuilt/dist/electron',
maxConcurrencyPerWorker: Infinity,
host: '127.0.0.1' }
vivliostyle-electron:renderer Processing from input index2.html +0ms
vivliostyle-electron:renderer Converting from file:///home/adam/.nvm/versions/node/v6.9.1/lib/node_modules/vivliostyle-electron/renderer/renderer.html?url=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2FDesktop%2Ffc%2Findex2.html&pageSize=A4&debug=true +2ms
electron-html-to:conversion generating new conversion task.. +17ms
electron-html-to:conversion conversion task id: 2076fe39-4f0b-4555-b36e-63fcf7ec5dac +1ms
electron-html-to:conversion creating temporal html files in /tmp/electron-html-to-tmp-data.. +0ms
electron-html-to:conversion starting conversion task [strategy:dedicated-process][task id:2076fe39-4f0b-4555-b36e-63fcf7ec5dac] with options: +0ms { browserWindow: { webPreferences: {} },
waitForJSVarName: 'ELECTRON_HTML_TO_READY',
url: 'file:///home/adam/.nvm/versions/node/v6.9.1/lib/node_modules/vivliostyle-electron/renderer/renderer.html?url=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2FDesktop%2Ffc%2Findex2.html&pageSize=A4&debug=true',
waitForJS: true,
pdf:
{ marginsType: 0,
pageSize: 'A4',
printBackground: true,
landscape: false },
chromeCommandLineSwitches: { 'ignore-certificate-errors': null },
extraHeaders: {},
output:
{ tmpDir: '/tmp/electron-html-to-tmp-data',
id: '2076fe39-4f0b-4555-b36e-63fcf7ec5dac' } }
electron-html-to:dedicated-process-strategy saving settings in temporal file.. +1ms
electron-html-to:dedicated-process-strategy searching electron executable path.. +4ms
electron-html-to:dedicated-process-strategy electron executable path returned from electron-prebuilt module: /home/adam/.nvm/versions/node/v6.9.1/lib/node_modules/vivliostyle-electron/node_modules/electron-prebuilt/dist/electron +0ms
electron-html-to:dedicated-process-strategy electron process debugging mode activated +0ms
electron-html-to:dedicated-process-strategy spawing new electron process.. +0ms
electron-html-to:dedicated-process-strategy processing conversion.. +0ms