mozilla / web-ext

A command line tool to help build, run, and test web extensions
Mozilla Public License 2.0
2.69k stars 338 forks source link

[webpack --watch + web-ext start] Unexpected packet from actor root (Application Update Service Helper) #1092

Open osdiab opened 7 years ago

osdiab commented 7 years ago

Is this a feature request or a bug?

Bug

What is the current behavior?

I am developing an extension. It uses webpack@3.5.5 to compile a TypeScript project to JS scripts specified in manifest.json. For the development workflow I use the concurrently@3.5.0 library to run the following command:

concurrently 'webpack --watch' 'web-ext run'

This starts up properly, but pretty frequently, the Firefox browser to boots up closes automatically and this error shows up in the terminal:

[1] /Users/omar/code/personal/webextension-max-tabs/node_modules/firefox-client/lib/client.js:173
[1]       throw new Error("Unexpected packet from actor " +  message.from
[1]             ^
[1] Error: Unexpected packet from actor root{"from":"root","addons":[{"actor":"server1.conn0.addon7","id":"aushelper@mozilla.org","name":"Application Update Service Helper","iconURL":null,"debuggable":true,"temporarilyInstalled":false,"consoleActor":"server1.conn0.addonConsole19","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon8","id":"e10srollout@mozilla.org","name":"Multi-process staged rollout","iconURL":null,"debuggable":true,"temporarilyInstalled":false,"consoleActor":"server1.conn0.addonConsole20","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon9","id":"firefox@getpocket.com","name":"Pocket","iconURL":null,"debuggable":true,"temporarilyInstalled":false,"consoleActor":"server1.conn0.addonConsole21","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon10","id":"screenshots@mozilla.org","name":"Firefox Screenshots","iconURL":null,"debuggable":true,"temporarilyInstalled":false,"consoleActor":"server1.conn0.addonConsole22","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon11","id":"webcompat@mozilla.org","name":"Web Compat","iconURL":null,"debuggable":true,"temporarilyInstalled":false,"consoleActor":"server1.conn0.addonConsole23","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon12","id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","name":"Default","iconURL":"chrome://browser/content/default-theme-icon.svg","temporarilyInstalled":false,"consoleActor":"server1.conn0.addonConsole24","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.webExtension13","url":"file:///Users/omar/code/personal/webextension-max-tabs/","outerWindowID":3,"consoleActor":"server1.conn0.consoleActor25","inspectorActor":"server1.conn0.inspectorActor26","callWatcherActor":"server1.conn0.callWatcherActor27","canvasActor":"server1.conn0.canvasActor28","webglActor":"server1.conn0.webglActor29","webaudioActor":"server1.conn0.webaudioActor30","styleSheetsActor":"server1.conn0.styleSheetsActor31","styleEditorActor":"server1.conn0.styleEditorActor32","storageActor":"server1.conn0.storageActor33","gcliActor":"server1.conn0.gcliActor34","memoryActor":"server1.conn0.memoryActor35","framerateActor":"server1.conn0.framerateActor36","eventLoopLagActor":"server1.conn0.eventLoopLagActor37","reflowActor":"server1.conn0.reflowActor38","cssPropertiesActor":"server1.conn0.cssPropertiesActor39","cssUsageActor":"server1.conn0.cssUsageActor40","monitorActor":"server1.conn0.monitorActor41","timelineActor":"server1.conn0.timelineActor42","directorManagerActor":"server1.conn0.directorManagerActor43","profilerActor":"server1.conn0.profilerActor44","performanceActor":"server1.conn0.performanceActor45","animationsActor":"server1.conn0.animationsActor46","promisesActor":"server1.conn0.promisesActor47","performanceEntriesActor":"server1.conn0.performanceEntriesActor48","emulationActor":"server1.conn0.emulationActor49","webExtensionInspectedWindowActor":"server1.conn0.webExtensionInspectedWindowActor50","id":"560311d46e1534d795c8ae440a7aac7729d04a2c@temporary-addon","name":"Tab Limit","iconURL":"file:///Users/omar/code/personal/webextension-max-tabs/icons/48.svg","debuggable":true,"temporarilyInstalled":true,"isWebExtension":true},{"actor":"server1.conn0.addon14","id":"firefox-compact-light@mozilla.org@personas.mozilla.org","name":"Compact Light","iconURL":"resource:///chrome/browser/content/browser/defaultthemes/compactlight.icon.svg","consoleActor":"server1.conn0.addonConsole51","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon15","id":"firefox-compact-dark@mozilla.org@personas.mozilla.org","name":"Compact Dark","iconURL":"resource:///chrome/browser/content/browser/defaultthemes/compactdark.icon.svg","consoleActor":"server1.conn0.addonConsole52","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon18","id":"{6c05dc9d-bf02-9ece-49d3-30aba1586653}","name":"Shockwave Flash","consoleActor":"server1.conn0.addonConsole55","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon56","id":"gmp-gmpopenh264","name":"OpenH264 Video Codec provided by Cisco Systems, Inc.","consoleActor":"server1.conn0.addonConsole58","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon57","id":"gmp-widevinecdm","name":"Widevine Content Decryption Module provided by Google Inc.","consoleActor":"server1.conn0.addonConsole59","traits":{"highlightable":false,"networkMonitor":false}}]}
[1]     at Client.handleMessage (/Users/omar/code/personal/webextension-max-tabs/node_modules/firefox-client/lib/client.js:173:13)
[1]     at Client.readMessage (/Users/omar/code/personal/webextension-max-tabs/node_modules/firefox-client/lib/client.js:220:10)
[1]     at Client.onData (/Users/omar/code/personal/webextension-max-tabs/node_modules/firefox-client/lib/client.js:186:16)
[1]     at emitOne (events.js:115:13)
[1]     at Socket.emit (events.js:210:7)
[1]     at addChunk (_stream_readable.js:252:12)
[1]     at readableAddChunk (_stream_readable.js:239:11)
[1]     at Socket.Readable.push (_stream_readable.js:197:10)
[1]     at TCP.onread (net.js:589:20)
[1] web-ext run exited with code 1

What is the expected or desired behavior?

Version information (for bug reports)

node --version && npm --version && web-ext --version
v8.2.1
5.4.2
2.0.0

Thanks in advance!

kumar303 commented 7 years ago

Hi. Thanks for the bug report. Could you attach a log generated with web-ext run --verbose?

As a side note, you may wish to ignore your source files so that only the final webpack-built files will trigger web-ext to reload your extension. However, that may not be related to this bug.

osdiab commented 7 years ago

I added my source files to be ignored, but the error still occurred; here's the verbose error:

→ npm start

> webextension-max-tabs@0.0.1 start /Users/omar/code/personal/webextension-max-tabs
> concurrently 'webpack --watch' 'web-ext run --verbose --ignore-files src/**/*'

[0]
[0] Webpack is watching the files…
[0]
[0] ts-loader: Using typescript@2.4.2 and /Users/omar/code/personal/webextension-max-tabs/tsconfig.json
[1] [program.js][debug] Getting the version from package.json
[1] [program.js][info] Version: 2.0.0
[1] [program.js][debug] Getting the version from package.json
[1] [cmd/run.js][info] Running web extension from /Users/omar/code/personal/webextension-max-tabs
[1] [util/manifest.js][debug] Validating manifest at /Users/omar/code/personal/webextension-max-tabs/manifest.json
[1] [extension-runners/firefox-desktop.js][debug] Creating new Firefox profile
[1] [firefox/index.js][debug] Running Firefox with profile at /var/folders/w1/hj30kdtd2mb0nrxyxs06kdkw0000gn/T/42b8acc0-ce47-4e80-be2f-d6a569244e9d
[1] [firefox/index.js][debug] Checking if remote Firefox port 6005 is available
[1] [firefox/remote.js][debug] Connecting to Firefox on port 6005
[1] [firefox/index.js][debug] Executing Firefox binary: /Applications/Firefox.app/Contents/MacOS/firefox-bin
[1] [firefox/index.js][debug] Firefox args: -start-debugger-server 6005 -foreground -no-remote -profile /var/folders/w1/hj30kdtd2mb0nrxyxs06kdkw0000gn/T/42b8acc0-ce47-4e80-be2f-d6a569244e9d
[1] [firefox/index.js][info] Use --verbose or open Tools > Web Developer > Browser Console to see logging
[1] [firefox/remote.js][debug] Connecting to the remote Firefox debugger
[1] [firefox/remote.js][debug] Connecting to Firefox on port 6005
[1] [firefox/remote.js][debug] Retrying Firefox (0); connection error: Error: connect ECONNREFUSED 127.0.0.1:6005
[1] [firefox/remote.js][debug] Connecting to Firefox on port 6005
[1] [firefox/remote.js][debug] Retrying Firefox (1); connection error: Error: connect ECONNREFUSED 127.0.0.1:6005
[1] [firefox/remote.js][debug] Connecting to Firefox on port 6005
[1] [firefox/remote.js][debug] Retrying Firefox (2); connection error: Error: connect ECONNREFUSED 127.0.0.1:6005
[1] [firefox/remote.js][debug] Connecting to Firefox on port 6005
[1] [firefox/remote.js][debug] Retrying Firefox (3); connection error: Error: connect ECONNREFUSED 127.0.0.1:6005
[1] [firefox/remote.js][debug] Connecting to Firefox on port 6005
[1] [firefox/remote.js][debug] Retrying Firefox (4); connection error: Error: connect ECONNREFUSED 127.0.0.1:6005
[1] [firefox/remote.js][debug] Connecting to Firefox on port 6005
[1] [firefox/remote.js][debug] Retrying Firefox (5); connection error: Error: connect ECONNREFUSED 127.0.0.1:6005
[1] [firefox/remote.js][debug] Connecting to Firefox on port 6005
[1] [firefox/remote.js][debug] Retrying Firefox (6); connection error: Error: connect ECONNREFUSED 127.0.0.1:6005
[1] [firefox/remote.js][debug] Connecting to Firefox on port 6005
[0] ts-loader: Using typescript@2.4.2 and /Users/omar/code/personal/webextension-max-tabs/tsconfig.json
[1] [firefox/remote.js][debug] Retrying Firefox (7); connection error: Error: connect ECONNREFUSED 127.0.0.1:6005
[1] [firefox/remote.js][debug] Connecting to Firefox on port 6005
[1] [firefox/remote.js][debug] Retrying Firefox (8); connection error: Error: connect ECONNREFUSED 127.0.0.1:6005
[1] [firefox/remote.js][debug] Connecting to Firefox on port 6005
[1] [firefox/index.js][debug] Firefox stdout: Started debugger server on 6005
[1] [firefox/remote.js][debug] Retrying Firefox (9); connection error: Error: connect ECONNREFUSED 127.0.0.1:6005
[1] [firefox/remote.js][debug] Connecting to Firefox on port 6005
[1] [firefox/remote.js][debug] Connected to the remote Firefox debugger on port 6005
[1] [firefox/index.js][debug] Firefox stderr: JavaScript strict warning: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/security/socket.js, line 781: ReferenceError: reference to undefined property "_handshakeTimeout"
[0] ts-loader: Using typescript@2.4.2 and /Users/omar/code/personal/webextension-max-tabs/tsconfig.json
[1] [firefox/remote.js][debug] installTemporaryAddon: {"addon":{"id":"9ee831049cf849a01eb60d15c3bec1fa6d3ee704@temporary-addon","actor":false},"from":"server1.conn0.addonsActor3"}
[1] [firefox/remote.js][info] Installed /Users/omar/code/personal/webextension-max-tabs as a temporary add-on
[1] [cmd/run.js][info] The extension will reload if any source file changes
[1] [util/file-filter.js][debug] Resolved path **/*.xpi with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/**/*.xpi
[1] [util/file-filter.js][debug] Resolved path **/*.zip with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/**/*.zip
[1] [util/file-filter.js][debug] Resolved path **/.* with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/**/.*
[1] [util/file-filter.js][debug] Resolved path **/.*/**/* with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/**/.*/**/*
[1] [util/file-filter.js][debug] Resolved path **/node_modules with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/**/node_modules
[1] [util/file-filter.js][debug] Resolved path **/node_modules/**/* with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/**/node_modules/**/*
[1] [util/file-filter.js][debug] Resolved path src/background/index.ts with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/src/background/index.ts
[1] [util/file-filter.js][debug] Resolved path src/common/Message.ts with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/src/common/Message.ts
[1] [util/file-filter.js][debug] Resolved path src/common/messageKinds.ts with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/src/common/messageKinds.ts
[1] [util/file-filter.js][debug] Resolved path src/content/index.test.ts with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/src/content/index.test.ts
[1] [util/file-filter.js][debug] Resolved path src/content/index.ts with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/src/content/index.ts
[1] [util/file-filter.js][debug] Resolved path src/icons/icon-outlines.sketch with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/src/icons/icon-outlines.sketch
[1] [util/file-filter.js][debug] Resolved path src/icons/icon.sketch with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/src/icons/icon.sketch
[1] [util/file-filter.js][debug] Resolved path src/options_ui/components with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/src/options_ui/components
[1] [util/file-filter.js][debug] Resolved path src/options_ui/index.html with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/src/options_ui/index.html
[1] [util/file-filter.js][debug] Resolved path src/options_ui/index.tsx with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/src/options_ui/index.tsx
[1] [util/file-filter.js][debug] Resolved path src/options_ui/store with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/src/options_ui/store
[1] [util/file-filter.js][debug] Ignoring artifacts directory "/Users/omar/code/personal/webextension-max-tabs/web-ext-artifacts" and all its subdirectories
[1] [util/file-filter.js][debug] Resolved path /Users/omar/code/personal/webextension-max-tabs/web-ext-artifacts with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/web-ext-artifacts
[1] [util/file-filter.js][debug] Resolved path /Users/omar/code/personal/webextension-max-tabs/web-ext-artifacts/**/* with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/web-ext-artifacts/**/*
[1] [watcher.js][debug] Watching for file changes in /Users/omar/code/personal/webextension-max-tabs
[1] [util/file-filter.js][debug] Resolved path /Users/omar/code/personal/webextension-max-tabs/package.json with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/package.json
[1] [watcher.js][debug] Changed: /Users/omar/code/personal/webextension-max-tabs/package.json
[1] [watcher.js][debug] Last change detection: 16:52:13 GMT+0900 (JST)
[1] [extension-runners/index.js][debug] Reloading add-on at /Users/omar/code/personal/webextension-max-tabs
[1] [firefox/index.js][debug] Firefox stderr: JavaScript strict warning: chrome://global/content/bindings/browser.xml, line 401: ReferenceError: reference to undefined property "localName"
[1] JavaScript strict warning: resource://gre/modules/addons/XPIProvider.jsm, line 7535: ReferenceError: reference to undefined property "bootstrap"
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 1887: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 3319: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 4540: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 6266: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 6384: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 6407: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 6434: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 6457: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 6951: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 7436: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 7437: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 7461: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 7462: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 98: ReferenceError: reference to undefined property "Symbol"
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 305: ReferenceError: reference to undefined property "useSetter"
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 1327: ReferenceError: reference to undefined property Symbol.toStringTag
[1] [firefox/index.js][debug] Firefox stderr: JavaScript strict warning: chrome://browser/content/tabbrowser.xml, line 673: ReferenceError: reference to undefined property "initialPageLoadedFromURLBar"
[1] 2017-10-11 16:52:14.073 firefox-bin[6036:8235420] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : [self textInputContext]=0x12a1ef880 *NO* NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4097 "connection from pid 0" UserInfo={NSDebugDescription=connection from pid 0}, com.apple.inputmethod.EmojiFunctionRowItem
[1] [firefox/index.js][debug] Firefox stderr: JavaScript strict warning: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/node-properties/node-properties.js, line 134: ReferenceError: reference to undefined property "resume"
[1] JavaScript strict warning: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/node-properties/node-properties.js, line 124: ReferenceError: reference to undefined property "o"
[1] JavaScript strict warning: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/node-properties/node-properties.js, line 130: ReferenceError: reference to undefined property "o"
[1] 2017-10-11 16:52:14.682 firefox-bin[6036:8235420] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : [self textInputContext]=0x12a1ef880 *NO* NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4097 "connection from pid 0" UserInfo={NSDebugDescription=connection from pid 0}, com.apple.inputmethod.EmojiFunctionRowItem
[1] JavaScript strict warning: resource://gre/modules/ProfileAge.jsm, line 205: ReferenceError: reference to undefined property "reset"
[1] 2017-10-11 16:52:15.176 plugin-container[6038:8235709] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x953b, name = 'com.apple.tsm.portname'
[1] See /usr/include/servers/bootstrap_defs.h for the error codes.
[1] 2017-10-11 16:52:15.180 plugin-container[6038:8235709] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9903, name = 'com.apple.CFPasteboardClient'
[1] See /usr/include/servers/bootstrap_defs.h for the error codes.
[1] [firefox/index.js][debug] Firefox stdout: 1507708336007 addons.xpi  WARN    Addon with ID 9ee831049cf849a01eb60d15c3bec1fa6d3ee704@temporary-addon already installed, older version will be disabled
[1] [firefox/index.js][debug] Firefox stderr: JavaScript strict warning: resource://gre/modules/addons/XPIProvider.jsm, line 7871: ReferenceError: reference to undefined property "installDate"
[1] JavaScript strict warning: chrome://global/content/bindings/browser.xml, line 401: ReferenceError: reference to undefined property "localName"
[1] [firefox/remote.js][debug] Received message from client: {"from":"root","type":"addonListChanged"}
Last extension reload: 16:52:17 GMT+0900 (JST)[firefox/remote.js][debug]
[1]
[1] [firefox/index.js][debug] Firefox stderr: JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 1887: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 3319: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 4540: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 6266: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 6384: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 6407: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 6434: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 6457: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 6951: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 7436: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 7437: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 7461: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 7462: SyntaxError: test for equality (==) mistyped as assignment (=)?
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 98: ReferenceError: reference to undefined property "Symbol"
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 305: ReferenceError: reference to undefined property "useSetter"
[1] JavaScript strict warning: moz-extension://8a979d82-8775-5e49-8ada-91d6e4ba32eb/__build/background.js, line 1327: ReferenceError: reference to undefined property Symbol.toStringTag
[1] [util/file-filter.js][debug] Resolved path /Users/omar/code/personal/webextension-max-tabs/.git/FETCH_HEAD with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/.git/FETCH_HEAD
[1] [util/file-filter.js][debug] FileFilter: ignoring file /Users/omar/code/personal/webextension-max-tabs/.git/FETCH_HEAD (it matched /Users/omar/code/personal/webextension-max-tabs/**/.*/**/*)
[1] [watcher.js][debug] Ignoring change to: /Users/omar/code/personal/webextension-max-tabs/.git/FETCH_HEAD
[1] [firefox/index.js][debug] Firefox stderr: JavaScript strict warning: chrome://global/content/bindings/browser.xml, line 401: ReferenceError: reference to undefined property "localName"
[1] [util/file-filter.js][debug] Resolved path /Users/omar/code/personal/webextension-max-tabs/__build/content.js with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/__build/content.js
[1] [watcher.js][debug] Changed: /Users/omar/code/personal/webextension-max-tabs/__build/content.js
[1] [watcher.js][debug] Last change detection: 16:52:22 GMT+0900 (JST)
[1] [extension-runners/index.js][debug] Reloading add-on at /Users/omar/code/personal/webextension-max-tabs
[1] [util/file-filter.js][debug] Resolved path /Users/omar/code/personal/webextension-max-tabs/__build/background.js with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/__build/background.js
[1] [watcher.js][debug] Changed: /Users/omar/code/personal/webextension-max-tabs/__build/background.js
[1] [watcher.js][debug] Last change detection: 16:52:22 GMT+0900 (JST)
[0] Hash: d5473a25cdb11f07c626ed33ce7299f1ca2395719cc0eb2779a8737faae9
[0] Version: webpack 3.5.5
[0] Child
[0]     Hash: d5473a25cdb11f07c626
[0]     Time: 13925ms
[0]          Asset    Size  Chunks                    Chunk Names
[0]     content.js  251 kB       0  [emitted]  [big]  main
[0]      [129] multi core-js ./src/content/index.ts 40 bytes {0} [built]
[0]      [340] ./src/content/index.ts 1.73 kB {0} [built]
[0]      [341] ./src/common/messageKinds.ts 912 bytes {0} [built]
[0]         + 339 hidden modules
[0] Child
[0]     Hash: ed33ce7299f1ca239571
[0]     Time: 14115ms
[0]             Asset    Size  Chunks                    Chunk Names
[0]     background.js  252 kB       0  [emitted]  [big]  main
[0]      [129] multi core-js ./src/background/index.ts 40 bytes {0} [built]
[0]      [340] ./src/background/index.ts 3.96 kB {0} [built]
[0]         + 339 hidden modules
[0] Child
[0]     Hash: 9cc0eb2779a8737faae9
[0]     Time: 17929ms
[0]             Asset     Size  Chunks                    Chunk Names
[0]     options_ui.js  1.11 MB       0  [emitted]  [big]  main
[0]      [221] (webpack)/buildin/global.js 509 bytes {0} [built]
[0]      [226] ./src/options_ui/store/settings/actions.ts 1.77 kB {0} [built]
[0]      [228] multi core-js ./src/options_ui/index.tsx 40 bytes {0} [built]
[0]      [439] ./src/options_ui/index.tsx 1.62 kB {0} [built]
[0]      [558] (webpack)/buildin/module.js 517 bytes {0} [built]
[0]      [569] ./src/options_ui/store/settings/index.ts 5.96 kB {0} [built]
[0]      [570] ./src/options_ui/store/errors.ts 1.49 kB {0} [built]
[0]      [571] ./src/options_ui/store/index.ts 1.49 kB {0} [built]
[0]      [572] ./src/options_ui/store/settings/reducer.ts 3.12 kB {0} [built]
[0]         + 564 hidden modules
[1] [util/file-filter.js][debug] Resolved path /Users/omar/code/personal/webextension-max-tabs/__build/options_ui.js with sourceDir /Users/omar/code/personal/webextension-max-tabs to /Users/omar/code/personal/webextension-max-tabs/__build/options_ui.js
[1] [watcher.js][debug] Changed: /Users/omar/code/personal/webextension-max-tabs/__build/options_ui.js
[1] [watcher.js][debug] Last change detection: 16:52:27 GMT+0900 (JST)
[1] [extension-runners/index.js][debug] Reloading add-on at /Users/omar/code/personal/webextension-max-tabs
[1] [firefox/index.js][debug] Firefox stdout: 1507708347648 addons.xpi  WARN    Addon with ID 9ee831049cf849a01eb60d15c3bec1fa6d3ee704@temporary-addon already installed, older version will be disabled
[1]
[1] /Users/omar/code/personal/webextension-max-tabs/node_modules/firefox-client/lib/client.js:173
[1]       throw new Error("Unexpected packet from actor " +  message.from
[1]             ^
[1] Error: Unexpected packet from actor root{"from":"root","addons":[{"actor":"server1.conn0.addon7","id":"aushelper@mozilla.org","name":"Application Update Service Helper","iconURL":null,"debuggable":true,"temporarilyInstalled":false,"consoleActor":"server1.conn0.addonConsole19","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon8","id":"e10srollout@mozilla.org","name":"Multi-process staged rollout","iconURL":null,"debuggable":true,"temporarilyInstalled":false,"consoleActor":"server1.conn0.addonConsole20","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon9","id":"firefox@getpocket.com","name":"Pocket","iconURL":null,"debuggable":true,"temporarilyInstalled":false,"consoleActor":"server1.conn0.addonConsole21","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon10","id":"screenshots@mozilla.org","name":"Firefox Screenshots","iconURL":null,"debuggable":true,"temporarilyInstalled":false,"consoleActor":"server1.conn0.addonConsole22","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon11","id":"webcompat@mozilla.org","name":"Web Compat","iconURL":null,"debuggable":true,"temporarilyInstalled":false,"consoleActor":"server1.conn0.addonConsole23","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon12","id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","name":"Default","iconURL":"chrome://browser/content/default-theme-icon.svg","temporarilyInstalled":false,"consoleActor":"server1.conn0.addonConsole24","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.webExtension13","url":"file:///Users/omar/code/personal/webextension-max-tabs/","outerWindowID":12,"consoleActor":"server1.conn0.consoleActor25","inspectorActor":"server1.conn0.inspectorActor26","callWatcherActor":"server1.conn0.callWatcherActor27","canvasActor":"server1.conn0.canvasActor28","webglActor":"server1.conn0.webglActor29","webaudioActor":"server1.conn0.webaudioActor30","styleSheetsActor":"server1.conn0.styleSheetsActor31","styleEditorActor":"server1.conn0.styleEditorActor32","storageActor":"server1.conn0.storageActor33","gcliActor":"server1.conn0.gcliActor34","memoryActor":"server1.conn0.memoryActor35","framerateActor":"server1.conn0.framerateActor36","eventLoopLagActor":"server1.conn0.eventLoopLagActor37","reflowActor":"server1.conn0.reflowActor38","cssPropertiesActor":"server1.conn0.cssPropertiesActor39","cssUsageActor":"server1.conn0.cssUsageActor40","monitorActor":"server1.conn0.monitorActor41","timelineActor":"server1.conn0.timelineActor42","directorManagerActor":"server1.conn0.directorManagerActor43","profilerActor":"server1.conn0.profilerActor44","performanceActor":"server1.conn0.performanceActor45","animationsActor":"server1.conn0.animationsActor46","promisesActor":"server1.conn0.promisesActor47","performanceEntriesActor":"server1.conn0.performanceEntriesActor48","emulationActor":"server1.conn0.emulationActor49","webExtensionInspectedWindowActor":"server1.conn0.webExtensionInspectedWindowActor50","id":"9ee831049cf849a01eb60d15c3bec1fa6d3ee704@temporary-addon","name":"Tab Limit","iconURL":"file:///Users/omar/code/personal/webextension-max-tabs/icons/48.svg","debuggable":true,"temporarilyInstalled":true,"isWebExtension":true},{"actor":"server1.conn0.addon14","id":"firefox-compact-light@mozilla.org@personas.mozilla.org","name":"Compact Light","iconURL":"resource:///chrome/browser/content/browser/defaultthemes/compactlight.icon.svg","consoleActor":"server1.conn0.addonConsole51","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon15","id":"firefox-compact-dark@mozilla.org@personas.mozilla.org","name":"Compact Dark","iconURL":"resource:///chrome/browser/content/browser/defaultthemes/compactdark.icon.svg","consoleActor":"server1.conn0.addonConsole52","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon16","id":"gmp-gmpopenh264","name":"OpenH264 Video Codec provided by Cisco Systems, Inc.","consoleActor":"server1.conn0.addonConsole53","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon17","id":"gmp-widevinecdm","name":"Widevine Content Decryption Module provided by Google Inc.","consoleActor":"server1.conn0.addonConsole54","traits":{"highlightable":false,"networkMonitor":false}},{"actor":"server1.conn0.addon18","id":"{6c05dc9d-bf02-9ece-49d3-30aba1586653}","name":"Shockwave Flash","consoleActor":"server1.conn0.addonConsole55","traits":{"highlightable":false,"networkMonitor":false}}]}
[1]     at Client.handleMessage (/Users/omar/code/personal/webextension-max-tabs/node_modules/firefox-client/lib/client.js:173:13)
[1]     at Client.readMessage (/Users/omar/code/personal/webextension-max-tabs/node_modules/firefox-client/lib/client.js:220:10)
[1]     at Client.onData (/Users/omar/code/personal/webextension-max-tabs/node_modules/firefox-client/lib/client.js:186:16)
[1]     at emitOne (events.js:115:13)
[1]     at Socket.emit (events.js:210:7)
[1]     at addChunk (_stream_readable.js:252:12)
[1]     at readableAddChunk (_stream_readable.js:239:11)
[1]     at Socket.Readable.push (_stream_readable.js:197:10)
[1]     at TCP.onread (net.js:589:20)
[1] web-ext run --verbose --ignore-files src/**/* exited with code 1

Thanks for your prompt help! I'm traveling around so I just got around to posting this now. [0] is the output for my webpack job, and [1] is the output for web-ext --verbose.

osdiab commented 7 years ago

And also to be clearer, this doesn't happen everytime—just frequently enough to be a pain; sometimes it happens almost every time/every other time I save my source and therefore trigger Webpack to regenerate my code again but for instance right now it's only happening once in maybe 10-15 saves or so, I don't really know why the frequency of the error varies so much.

sneakypete81 commented 6 years ago

I see this behaviour too on both Mac and Windows, usually failing but occasionally succeeding. It appears to be if a file changes at some critical point while Firefox is starting up - if I add a fixed delay to ensure webpack doesn't output anything while web-ext run is starting, it never seems to fail.

See also #1069.

Firefox version: 56.0.1 (64-bit) OS and version: Win10 RS1

node --version && npm --version && web-ext --version
v6.10.1
3.10.10
1.9.1
kumar303 commented 6 years ago

Thanks for the verbose log. It looks like 'Application Update Service Helper' is maybe causing the issue but things like that are supposed to be disabled by web-ext. Maybe some configuration for it changed.

Also, maybe we should not throw an error for unexpected actor messages. I'll have to think about the implications of ignoring errors though.

kumar303 commented 6 years ago

Fixing this may require porting from firefox-client to https://github.com/saucelabs/foxdriver (or something)