{"record":{"id":"4598663648e81518","repo":"iflytek/astron-agent","slug":"max-framerate-must-be-0-0","errorCode":null,"errorMessage":"max_framerate must be >= 0.0","messagePattern":"max_framerate must be >= 0\\.0","errorType":"exception","errorClass":"RangeError","httpStatus":null,"severity":"error","filePath":"console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/webrtc-player--YuOiwFd.js","lineNumber":1857,"sourceCode":"                  this.setParametersPromises = [];\n                  var e = arguments[1],\n                    r = e && 'sendEncodings' in e;\n                  r &&\n                    e.sendEncodings.forEach(function (e) {\n                      if ('rid' in e && !/^[a-z0-9]{0,16}$/i.test(e.rid))\n                        throw new TypeError('Invalid RID value provided.');\n                      if (\n                        'scaleResolutionDownBy' in e &&\n                        !(parseFloat(e.scaleResolutionDownBy) >= 1)\n                      )\n                        throw new RangeError(\n                          'scale_resolution_down_by must be >= 1.0'\n                        );\n                      if (\n                        'maxFramerate' in e &&\n                        !(parseFloat(e.maxFramerate) >= 0)\n                      )\n                        throw new RangeError('max_framerate must be >= 0.0');\n                    });\n                  var n = t.apply(this, arguments);\n                  if (r) {\n                    var i = n.sender,\n                      a = i.getParameters();\n                    'encodings' in a ||\n                      ((a.encodings = e.sendEncodings),\n                      this.setParametersPromises.push(\n                        i.setParameters(a).catch(function () {})\n                      ));\n                  }\n                  return n;\n                });\n            }\n          }),\n          (n.shimCreateOffer = function (e) {\n            if (\n              'object' === (void 0 === e ? 'undefined' : i(e)) &&","sourceCodeStart":1839,"sourceCodeEnd":1875,"githubUrl":"https://github.com/iflytek/astron-agent/blob/5e758547a83371a5a4b29dadf4ac03e8dd527635/console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/webrtc-player--YuOiwFd.js#L1839-L1875","documentation":"A RangeError from the addTransceiver shim's sendEncodings validation when maxFramerate is present but parses to a negative number (or non-numeric). Indicates malformed RTP encoding parameters supplied to the avatar SDK's PeerConnection.","triggerScenarios":"Thrown at console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/webrtc-player--YuOiwFd.js:1857 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set maxFramerate to a non-negative number (e.g. 15, 30)","Remove maxFramerate from sendEncodings if framerate capping is not needed","Validate encoding params before passing them to addTransceiver"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5e758547a83371a5a4b29dadf4ac03e8dd527635","analyzedAt":"2026-09-12T08:03:51.356Z","contentChangedAt":"2026-09-12T08:03:51.356Z","schemaVersion":2},"datasetVersion":"2026-09-19T12:17:13.211Z"}