Comments (8)
The Debug Memory Graph raises warnings about 6 leaked types, of which OS_dispatch_queue_serial
and OS_dispatch_source
seem to be the most interesting. Printing their description yields:
Printing description of $7:
<OS_dispatch_source:
source[0x281400180] =
{
xref = 1,
ref = 1,
target = GCDAsyncSocket[0x28143c580],
ident = 0xffffffff,
mask = 0x0,
pending_data = 0x0,
registered = 0,
armed = 0,
cancelled,
deleted,
timer = { target = 0x6963374e1c, deadline = 0x6963374e1c, interval = 0x7fffffffffffffff, flags = 0x0 },
kevent = 0x281400100,
filter = timer
}>
from webdriveragent.
This is our fork of RoutingHTTPServer lib: https://github.com/appium/RoutingHTTPServer. Feel free to debug it and propose your fixes.
from webdriveragent.
This also might be related to appium/appium#14416, which was fixed also on the client side in appium@beta. Worth checking anyway
from webdriveragent.
Thanks, I had a look at appium/appium#14416, it seems unrelated at first sight.
I can reproduce the issue by simply initiating a TCP connection (e.g. echo exit | telnet localhost 8100
). Doing this in a loop leaks memory in the WDA process. This test never establishes a valid HTTP connection, so much of the middleware of RoutingHttpServer is never invoked.
It makes me think the issue is rather at the CocoaHTTPServer (also forked by appium) or at the GCDAsyncSocket level. For example, the CocoaAsyncSocket source files used by CocaoHTTPServer haven't been updated in 7 years.
I'll have a look and let you know what I find. On the other hand, can you reproduce this problem on your machine? Would be good to know I'm not the only one seeing this :).
from webdriveragent.
Closed as fixed
from webdriveragent.
In what way is this fixed? I continue to see related issues with the HTTP server used.
from webdriveragent.
I could no longer reproduce the issue described in this ticket after #348 and #349 got merged.
Are you seeing you still see this issue (memory leak by just running echo exit | telnet localhost 8100
or curl -X GET http://localhost:8100/health
in a loop)?
from webdriveragent.
As shared in other thread, the built in HTTP server is 1.x only, and requires Keep-Alive header as a result to re-use connections. This resolves the issue I was seeing.
from webdriveragent.
Related Issues (20)
- WebDriverAgent project is unable to build(find) the AppleTV( tvOS-17.2 Beta version HOT 1
- Runtime error when build with Xcode 15 HOT 6
- When I run WebDriverAgent using xcode connection, it works fine, but when I click on the software to run it, it crash. ios version is 17.1.2, xcode version is 15.0.1. HOT 7
- FR: Can we use `XCUIDevice.shared.system.open(url)` to open deep links to skip Safari? HOT 3
- Can't manually run WebDriverAgentRunner HOT 6
- 'No visible @interface for 'XCUIDevice' declares the selector 'pressButton:'' WDA build error for iOS 17.2 real device HOT 1
- I have no issues running WDA directly through Xcode on a real device. Whether started by clicking or through Sib, it works fine. However, after packaging WDA into an IPA file, installing it via Sib, and then launching WDA, it crashes. It doesn't happen every time, but the occurrence probability is quite high. HOT 2
- "Failed to find Matching Arch for input file" HOT 1
- Enterprise certificate packaging error HOT 1
- Can't chose simulator's XctestrunFile created by arm64 PC HOT 1
- Identifier '_XCTSetApplicationStateTimeout' is reserved because it starts with '_' followed by a capital letter HOT 11
- Mixing declarations and code is incompatible with standards before C99 HOT 1
- Iphone14,ios17.3,v5.15.8 Touch WebDriverAgent icon then crash。 HOT 3
- WebDriverAgentRunner HOT 2
- WDA crash when call screenshot API HOT 3
- build failure in new update 14.4 HOT 1
- window/size sometimes returns an incorrect size HOT 7
- Testing failed: No visible @interface for 'XCUIDevice' declares the selector 'pressButton:' Use of undeclared identifier 'XCUIDeviceButtonHome' Testing cancelled because the build failed. HOT 14
- 运行WebDriverAgent后出现的Automation Running hold both volume buttons to stop 提示蒙层能否去掉 HOT 2
- XCUIElementTypeAlert cannot be found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webdriveragent.