Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent error in event handler: TypeError: Invalid Version: null.null.0 #3448

Closed
haslinghuis opened this issue May 10, 2023 · 0 comments · Fixed by #3449
Closed

Intermittent error in event handler: TypeError: Invalid Version: null.null.0 #3448

haslinghuis opened this issue May 10, 2023 · 0 comments · Fixed by #3449
Labels

Comments

@haslinghuis
Copy link
Member

Describe the bug

Intermittent issue. This issue is not new but rarely encountered. Posting output here for further investigation.

serial: closed connection with ID: 10, Sent: 284547 bytes, Received: 4735416 bytes
serial.js:128 serial: connection opened with ID: 11 , Baud: 115200
firmware_flasher.js:599 Requesting board information
MSPHelper.js:1645 code: 1 (MSP_API_VERSION) - crc failed
MspHelper.process_data @ MSPHelper.js:1645
MSPHelper.js:1663 code: 1 - crc failed. No callback
MspHelper.process_data @ MSPHelper.js:1663
firmware_flasher.js:641 Attempting to connect while there still is a connection true 11
verifyBoard @ firmware_flasher.js:641
serial.js:258 serial: closed connection with ID: 11, Sent: 6 bytes, Received: 9 bytes
serial.js:128 serial: connection opened with ID: 12 , Baud: 115200
firmware_flasher.js:599 Requesting board information
main.html#:1 Error in event handler: TypeError: Invalid Version: null.null.0
    at new SemVer (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/vendor.js:2949:12)
    at compare (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/vendor.js:3264:11)
    at Function.gte (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/vendor.js:3320:11)
    at getBuildInfo (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/firmware_flasher.js:2765:39)
    at MspHelper.process_data (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:10021:31)
    at chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:2617:13
    at Array.forEach (<anonymous>)
    at Object.notify (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:2616:24)
    at Object._dispatch_message (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:2607:14)
    at Object.read (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:2574:22)
serial_backend.js:89 Connecting to: \\.\COM15
common.js:42 Chrome API Error: Failed to connect to the port..
 Traced Error
    at checkChromeRuntimeError (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/common.js:1154:90)
    at chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:1962:27
checkChromeRuntimeError @ common.js:42
serial.js:154 serial: failed to open serial port
serial_backend.js:334 Failed to open serial port
serial_backend.js:89 Connecting to: \\.\COM15
common.js:42 Chrome API Error: Failed to connect to the port..
 Traced Error
    at checkChromeRuntimeError (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/common.js:1154:90)
    at chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:1962:27
checkChromeRuntimeError @ common.js:42
serial.js:154 serial: failed to open serial port
serial_backend.js:334 Failed to open serial port
DevTools failed to load source map: Could not load content for chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/node_modules/jquery-textcomplete/dist/dist/jquery.textcomplete.min.map: System error: net::ERR_FILE_NOT_FOUND
serial.js:464 serial: device_lost ID: 12 (receive)
errorHandler @ serial.js:464
watch_for_on_receive_errors @ serial.js:123
serial_backend.js:89 Connecting to: \\.\COM15
common.js:42 Chrome API Error: Failed to connect to the port..
 Traced Error
    at checkChromeRuntimeError (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/common.js:1154:90)
    at chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:1962:27
checkChromeRuntimeError @ common.js:42
(anonymous) @ serial.js:51
serial.js:154 serial: failed to open serial port
serial_backend.js:334 Failed to open serial port
port_handler.js:168 PortHandler - Removed: [{"path":"\\\\.\\COM15","displayName":"Betaflight STM32G47x","vendorId":1155,"productId":22336}]
port_handler.js:209 PortHandler - Found: [{"path":"\\\\.\\COM15","displayName":"Betaflight STM32G47x","vendorId":1155,"productId":22336}]
firmware_flasher.js:641 Attempting to connect while there still is a connection false 12
verifyBoard @ firmware_flasher.js:641
(anonymous) @ firmware_flasher.js:997
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2
trigger @ jquery.min.js:2
(anonymous) @ jquery.min.js:2
each @ jquery.min.js:2
each @ jquery.min.js:2
trigger @ jquery.min.js:2
PortHandler.detectPort @ port_handler.js:223
(anonymous) @ port_handler.js:106
(anonymous) @ serial.js:296
serial.js:258 serial: closed connection with ID: 12, Sent: 12 bytes, Received: 27 bytes
serial.js:128 serial: connection opened with ID: 13 , Baud: 115200
firmware_flasher.js:599 Requesting board information
3MSPHelper.js:1645 code: 160 (MSP_UID) - crc failed
MspHelper.process_data @ MSPHelper.js:1645
(anonymous) @ msp.js:235
notify @ msp.js:234
_dispatch_message @ msp.js:225
read @ msp.js:192
(anonymous) @ firmware_flasher.js:615
msp.js:337 MSP: data request timed-out: 1 ID: 13 TAB: firmware_flasher TIMEOUT: 50 QUEUE: 1 (1)
(anonymous) @ msp.js:337
setTimeout (async)
send_message @ msp.js:336
detectBoard @ firmware_flasher.js:600
onConnect @ firmware_flasher.js:618
(anonymous) @ serial.js:131
main.html#:1 Error in event handler: TypeError: Invalid Version: null.null.0
    at new SemVer (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/vendor.js:2949:12)
    at compare (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/vendor.js:3264:11)
    at Function.gte (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/vendor.js:3320:11)
    at getBuildInfo (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/firmware_flasher.js:2765:39)
    at MspHelper.process_data (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:10021:31)
    at chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:2617:13
    at Array.forEach (<anonymous>)
    at Object.notify (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:2616:24)
    at Object._dispatch_message (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:2607:14)
    at Object.read (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:2574:22)
firmware_flasher.js:641 Attempting to connect while there still is a connection true 13
verifyBoard @ firmware_flasher.js:641
(anonymous) @ firmware_flasher.js:658
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2
serial.js:258 serial: closed connection with ID: 13, Sent: 18 bytes, Received: 36 bytes
serial_backend.js:89 Connecting to: \\.\COM15
serial.js:128 serial: connection opened with ID: 14 , Baud: 115200
serial_backend.js:275 Requesting configuration data
4MSPHelper.js:1645 code: 160 (MSP_UID) - crc failed
MspHelper.process_data @ MSPHelper.js:1645
(anonymous) @ msp.js:235
notify @ msp.js:234
_dispatch_message @ msp.js:225
read @ msp.js:192
read_serial @ serial_backend.js:665
msp.js:337 MSP: data request timed-out: 1 ID: 14 TAB: firmware_flasher TIMEOUT: 249 QUEUE: 1 (1)
(anonymous) @ msp.js:337
setTimeout (async)
send_message @ msp.js:336
onOpen @ serial_backend.js:277
(anonymous) @ serial.js:131
main.html#:1 Error in event handler: TypeError: Invalid Version: null.null.0
    at new SemVer (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/vendor.js:2949:12)
    at compare (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/vendor.js:3264:11)
    at Function.gte (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/vendor.js:3320:11)
    at MspHelper.process_data (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:9165:35)
    at chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:2617:13
    at Array.forEach (<anonymous>)
    at Object.notify (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:2616:24)
    at Object._dispatch_message (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:2607:14)
    at Object.read (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:2574:22)
    at read_serial (chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/js/main.js:12049:15)
msp.js:337 MSP: data request timed-out: 4 ID: 14 TAB: firmware_flasher TIMEOUT: 267 QUEUE: 1 (4)
(anonymous) @ msp.js:337
setTimeout (async)
send_message @ msp.js:336
(anonymous) @ serial_backend.js:296
MspHelper.process_data @ MSPHelper.js:1661
(anonymous) @ msp.js:235
notify @ msp.js:234
_dispatch_message @ msp.js:225
read @ msp.js:192
read_serial @ serial_backend.js:665
MSPHelper.js:1645 code: 4 (MSP_BOARD_INFO) - crc failed
MspHelper.process_data @ MSPHelper.js:1645
(anonymous) @ msp.js:235
notify @ msp.js:234
_dispatch_message @ msp.js:225
read @ msp.js:192
read_serial @ serial_backend.js:665
MSPHelper.js:1663 code: 4 - crc failed. No callback
MspHelper.process_data @ MSPHelper.js:1663
(anonymous) @ msp.js:235
notify @ msp.js:234
_dispatch_message @ msp.js:225
read @ msp.js:192
read_serial @ serial_backend.js:665
3MSPHelper.js:1645 code: 4 (MSP_BOARD_INFO) - crc failed
MspHelper.process_data @ MSPHelper.js:1645
(anonymous) @ msp.js:235
notify @ msp.js:234
_dispatch_message @ msp.js:225
read @ msp.js:192
read_serial @ serial_backend.js:665
semver.js:332 Uncaught TypeError: Invalid Version: null.null.0
    at new SemVer (semver.js:332:11)
    at compare (semver.js:647:10)
    at Function.lt (semver.js:688:10)
    at finishClose (serial_backend.js:190:16)
    at onFinishCallback (serial_backend.js:116:25)
    at MspHelper.setArmingEnabled (MSPHelper.js:2717:13)
    at HTMLAnchorElement.<anonymous> (serial_backend.js:119:31)
    at HTMLAnchorElement.dispatch (jquery.min.js:2:43064)
    at y.handle (jquery.min.js:2:41048)
    at Object.trigger (jquery.min.js:2:71659)
SemVer @ semver.js:332
compare @ semver.js:647
lt @ semver.js:688
finishClose @ serial_backend.js:190
onFinishCallback @ serial_backend.js:116
MspHelper.setArmingEnabled @ MSPHelper.js:2717
(anonymous) @ serial_backend.js:119
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2
trigger @ jquery.min.js:2
(anonymous) @ jquery.min.js:2
each @ jquery.min.js:2
each @ jquery.min.js:2
trigger @ jquery.min.js:2
S.fn.<computed> @ jquery.min.js:2
(anonymous) @ serial_backend.js:237
(anonymous) @ gui.js:212
setTimeout (async)
timeout_add @ gui.js:211
setConnectionTimeout @ serial_backend.js:233
onOpen @ serial_backend.js:270
(anonymous) @ serial.js:131

To Reproduce

Intermittent issue.

Expected behavior

Catch the crc error or fix the version reported by MSP.

Configurator version

10.10

Flight controller configuration

board_name MAMBAG4
manufacturer_id DIAT

# feature
feature GPS
feature TELEMETRY
feature OSD

# serial
serial 3 2 115200 57600 0 115200

# master
set gps_auto_baud = ON
set osd_warnings_pos = 14740
set osd_canvas_width = 30
set osd_canvas_height = 13

Add any other context about the problem that you think might be relevant here

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant