-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Labels
Buga problem that needs fixinga problem that needs fixingNodeNode.js-specific issueNode.js-specific issue
Description
Is there an existing issue for this?
- I have searched the existing issues
Appium Version
current master: 7103126
Appium Host Type
Command Line
Are you using Appium components not maintained by the Appium team?
No response
Is this issue reproducible using the latest components?
- I confirm the issue is still reproducible with the latest component versions
Current Behavior
Run BiDi log execution such as appium/python-client#1154
Then, the Maximum call stack size exceeded
error occurred below.
RangeError: Maximum call stack size exceeded
at Log.<anonymous> (/Users/kazu/github/appium/packages/appium/lib/logsink.js:97:17)
at Log.emit (node:events:536:35)
at Log.log (/Users/kazu/github/appium/packages/logger/lib/log.ts:259:10)
at Log.debug (/Users/kazu/github/appium/packages/logger/lib/log.ts:179:10)
at Object.wrappedLogger.<computed> [as debug] (/Users/kazu/github/appium/packages/support/lib/logging.js:72:22)
at EventEmitter.eventListener (/Users/kazu/github/appium/packages/appium/lib/bidi-commands.ts:484:20)
at EventEmitter.emit (node:events:524:28)
at Log.listener (/Users/kazu/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-android-driver/lib/commands/log.js:175:23)
at Log.emit (node:events:536:35)
at Log.log (/Users/kazu/github/appium/packages/logger/lib/log.ts:259:10)
at Log.debug (/Users/kazu/github/appium/packages/logger/lib/log.ts:179:10)
at Object.wrappedLogger.<computed> [as debug] (/Users/kazu/github/appium/packages/support/lib/logging.js:72:22)
at EventEmitter.eventListener (/Users/kazu/github/appium/packages/appium/lib/bidi-commands.ts:484:20)
at EventEmitter.emit (node:events:524:28)
at Log.listener (/Users/kazu/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-android-driver/lib/commands/log.js:175:23)
at Log.emit (node:events:536:35)
at Log.log (/Users/kazu/github/appium/packages/logger/lib/log.ts:259:10)
at Log.debug (/Users/kazu/github/appium/packages/logger/lib/log.ts:179:10)
at Object.wrappedLogger.<computed> [as debug] (/Users/kazu/github/appium/packages/support/lib/logging.js:72:22)
at EventEmitter.eventListener (/Users/kazu/github/appium/packages/appium/lib/bidi-commands.ts:484:20)
at EventEmitter.emit (node:events:524:28)
at Log.listener (/Users/kazu/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-android-driver/lib/commands/log.js:175:23)
at Log.emit (node:events:536:35)
at Log.log (/Users/kazu/github/appium/packages/logger/lib/log.ts:259:10)
at Log.debug (/Users/kazu/github/appium/packages/logger/lib/log.ts:179:10)
at Object.wrappedLogger.<computed> [as debug] (/Users/kazu/github/appium/packages/support/lib/logging.js:72:22)
at EventEmitter.eventListener (/Users/kazu/github/appium/packages/appium/lib/bidi-commands.ts:484:20)
at EventEmitter.emit (node:events:524:28)
at Log.listener (/Users/kazu/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-android-driver/lib/commands/log.js:175:23)
at Log.emit (node:events:536:35)
at Log.log (/Users/kazu/github/appium/packages/logger/lib/log.ts:259:10)
at Log.debug (/Users/kazu/github/appium/packages/logger/lib/log.ts:179:10)
at Object.wrappedLogger.<computed> [as debug] (/Users/kazu/github/appium/packages/support/lib/logging.js:72:22)
at EventEmitter.eventListener (/Users/kazu/github/appium/packages/appium/lib/bidi-commands.ts:484:20)
at EventEmitter.emit (node:events:524:28)
at Log.listener (/Users/kazu/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-android-driver/lib/commands/log.js:175:23)
at Log.emit (node:events:536:35)
at Log.log (/Users/kazu/github/appium/packages/logger/lib/log.ts:259:10)
at Log.debug (/Users/kazu/github/appium/packages/logger/lib/log.ts:179:10)
at Object.wrappedLogger.<computed> [as debug] (/Users/kazu/github/appium/packages/support/lib/logging.js:72:22)
at EventEmitter.eventListener (/Users/kazu/github/appium/packages/appium/lib/bidi-commands.ts:484:20)
at EventEmitter.emit (node:events:524:28)
at Log.listener (/Users/kazu/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-android-driver/lib/commands/log.js:175:23)
at Log.emit (node:events:536:35)
at Log.log (/Users/kazu/github/appium/packages/logger/lib/log.ts:259:10)
at Log.debug (/Users/kazu/github/appium/packages/logger/lib/log.ts:179:10)
Once I commented out https://github.com/appium/appium/blob/master/packages/appium/lib/bidi-commands.ts#L484-L490
Expected Behavior
Do not cause the error
Appium Log
https://gist.github.com/KazuCocoa/14c7c21c7fe9f08618bf19400a45be66
Environment Details
- Debug details (
appium --show-debug-info
): - Last component version(s) which did not exhibit the problem:
- Platform and version of device under test:
- Real device or emulator/simulator:
Minimal Reproducible Example
Run appium/python-client#1154 test. The same one in the Java client may also be able to reproduce it.
Further Information
No response
Metadata
Metadata
Assignees
Labels
Buga problem that needs fixinga problem that needs fixingNodeNode.js-specific issueNode.js-specific issue