profile
viewpoint
Denny Britz dennybritz Mountain View, CA https://twitter.com/dennybritz High-school dropout. Ex Google Brain, Stanford, Berkeley. Into Startups, Deep Learning. Writing at wildml.com and dennybritz.com. Lived in 日本 and 한국

dennybritz/cnn-text-classification-tf 5127

Convolutional Neural Network for Text Classification in Tensorflow

dennybritz/deeplearning-papernotes 4177

Summaries and notes on Deep Learning research papers

dennybritz/chatbot-retrieval 1484

Dual LSTM Encoder for Dialog Response Generation

dennybritz/neal-react 1309

Startup Landing Page Components for React.js

dennybritz/nn-from-scratch 1305

Implementing a Neural Network from Scratch

dennybritz/booknotes 100

Notes I'm taking when reading books

dennybritz/neal-sample 63

Sample page for neal-react

dennybritz/nn-theano 58

Speed up your Neural Network with Theano and the GPU

dennybritz/bella 46

Labeling and Evaluation Tool for NLP Tasks

issue commentdennybritz/reinforcement-learning

Why is Chapter 11 excluded?

Hi! There is no specific reason. I think when I wrote the code in this repository chapter 11 was not yet fully completed or published.

BedirT

comment created time in 20 days

issue commentappium/appium

Failed to launch Appium Settings app (Bluestacks Emulator)

Thanks, that fixed it!

dennybritz

comment created time in 25 days

issue commentappium/appium

Failed to launch Appium Settings app (Bluestacks Emulator)

beyond1:/ $ pgrep --help
usage: pgrep [-cL] [-d DELIM] [-L SIGNAL] [PATTERN]

Search for process(es). PATTERN is an extended regular expression checked
against command names.

-c	Show only count of matches
-d	Use DELIM instead of newline
-L	Send SIGNAL instead of printing name
-l	Show command name
dennybritz

comment created time in a month

issue openedappium/appium

Failed to launch Appium Settings app (Bluestacks Emulator)

The problem

When trying to use the Bluestacks emulator as my device I get the following error

An unknown server-side error occurred while processing the command. Original error: Failed to launch Appium Settings app: Condition unmet after 5196 ms. Timing out.` message.

Related: https://github.com/appium/appium/issues/12901

Environment

  • Appium version (or git revision) that exhibits the issue: 1.16.0
  • Desktop OS/version used to run Appium: Mac OS
  • Node.js version (unless using Appium.app|exe): v13.5.0
  • Npm or Yarn package manager: yarn
  • Mobile platform/version under test: Android (Bluestacks) 7.1.2
  • Real device or emulator/simulator: Bluestack Emulator
  • Appium CLI or Appium.app|exe: CLI

Details

Issue seems to be related to https://github.com/appium/appium/issues/13567

It seems like Appium can't find the settings app, but I checked the emulator shell and got this:

1|beyond1:/ $ ps | grep appium                                                                                                                                                                                                                                                 
u0_a62    5372  1633  1195476 87576          0 0000000000 S io.appium.settings
beyond1:/ $ pgrep -l appium                                                                                                                                                                                                                                                    
5372 io.appium.setti
beyond1:/ $ pgrep ^appium\.settings$
1|beyond1:/ $ 

Link to Appium logs

Appium and logcat log files: https://gist.github.com/dennybritz/aa92bc1c757f08776dcd65db7f96646b

created time in a month

issue commentappium/appium

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

Yep, this seems to fix it! 🎉

dennybritz

comment created time in 3 months

issue commentappium/appium

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

That seems to have fixed the session close issue but the memory leak problem is still there:

Heap.20191126.165021.62039.0.003.heapsnapshot.zip

dennybritz

comment created time in 3 months

issue commentappium/appium

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

For what it's worth, I did built the 1.16.0-beta.2 version locally and it worked fine, but once I link in the updated appium-base-driver module I get the above and it immediately closes the session.

dennybritz

comment created time in 3 months

issue commentappium/appium

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

I haven't been able to test this. I don't know why patching the module didn't work, but I tried building Appium from scratch while linking in the appium-base-driver module, but when doing that, I get the following error when trying to execute commands:

[debug] [W3C (36f3e66a)] Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started
[debug] [W3C (36f3e66a)]     at asyncHandler (/Users/dennybritz/github/appium-base-driver/lib/protocol/protocol.js:252:15)
[debug] [W3C (36f3e66a)]     at /Users/dennybritz/github/appium-base-driver/lib/protocol/protocol.js:432:15
[debug] [W3C (36f3e66a)]     at Layer.handle [as handle_request] (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/layer.js:95:5)
[debug] [W3C (36f3e66a)]     at next (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/route.js:137:13)
[debug] [W3C (36f3e66a)]     at Route.dispatch (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/route.js:112:3)
[debug] [W3C (36f3e66a)]     at Layer.handle [as handle_request] (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/layer.js:95:5)
[debug] [W3C (36f3e66a)]     at /Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:281:22
[debug] [W3C (36f3e66a)]     at param (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:354:14)
[debug] [W3C (36f3e66a)]     at param (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:365:14)
[debug] [W3C (36f3e66a)]     at Function.process_params (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:410:3)
[debug] [W3C (36f3e66a)]     at next (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C (36f3e66a)]     at logger (/Users/dennybritz/github/appium-base-driver/node_modules/morgan/index.js:144:5)
[debug] [W3C (36f3e66a)]     at Layer.handle [as handle_request] (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/layer.js:95:5)
[debug] [W3C (36f3e66a)]     at trim_prefix (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:317:13)
[debug] [W3C (36f3e66a)]     at /Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:284:7
[debug] [W3C (36f3e66a)]     at Function.process_params (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:335:12)
[debug] [W3C (36f3e66a)]     at next (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C (36f3e66a)]     at jsonParser (/Users/dennybritz/github/appium-base-driver/node_modules/body-parser/lib/types/json.js:110:7)
[debug] [W3C (36f3e66a)]     at Layer.handle [as handle_request] (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/layer.js:95:5)
[debug] [W3C (36f3e66a)]     at trim_prefix (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:317:13)
[debug] [W3C (36f3e66a)]     at /Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:284:7
[debug] [W3C (36f3e66a)]     at Function.process_params (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:335:12)
[debug] [W3C (36f3e66a)]     at next (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C (36f3e66a)]     at Layer.handle [as handle_request] (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/layer.js:91:12)
[debug] [W3C (36f3e66a)]     at trim_prefix (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:317:13)
[debug] [W3C (36f3e66a)]     at /Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:284:7
[debug] [W3C (36f3e66a)]     at Function.process_params (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:335:12)
[debug] [W3C (36f3e66a)]     at next (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C (36f3e66a)]     at Layer.handle [as handle_request] (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/layer.js:91:12)
[debug] [W3C (36f3e66a)]     at trim_prefix (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:317:13)
[debug] [W3C (36f3e66a)]     at /Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:284:7
[debug] [W3C (36f3e66a)]     at Function.process_params (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:335:12)
[debug] [W3C (36f3e66a)]     at next (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C (36f3e66a)]     at methodOverride (/Users/dennybritz/github/appium-base-driver/node_modules/method-override/index.js:65:14)
[HTTP] <-- GET /wd/hub/session/36f3e66a-2f3f-446d-8229-08056ee2aacc/screenshot 404 24 ms - 4039
[HTTP] 
[HTTP] --> GET /wd/hub/session/36f3e66a-2f3f-446d-8229-08056ee2aacc/screenshot
[HTTP] {}
[debug] [W3C (36f3e66a)] Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started
[debug] [W3C (36f3e66a)]     at asyncHandler (/Users/dennybritz/github/appium-base-driver/lib/protocol/protocol.js:252:15)
[debug] [W3C (36f3e66a)]     at /Users/dennybritz/github/appium-base-driver/lib/protocol/protocol.js:432:15
[debug] [W3C (36f3e66a)]     at Layer.handle [as handle_request] (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/layer.js:95:5)
[debug] [W3C (36f3e66a)]     at next (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/route.js:137:13)
[debug] [W3C (36f3e66a)]     at Route.dispatch (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/route.js:112:3)
[debug] [W3C (36f3e66a)]     at Layer.handle [as handle_request] (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/layer.js:95:5)
[debug] [W3C (36f3e66a)]     at /Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:281:22
[debug] [W3C (36f3e66a)]     at param (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:354:14)
[debug] [W3C (36f3e66a)]     at param (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:365:14)
[debug] [W3C (36f3e66a)]     at Function.process_params (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:410:3)
[debug] [W3C (36f3e66a)]     at next (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C (36f3e66a)]     at logger (/Users/dennybritz/github/appium-base-driver/node_modules/morgan/index.js:144:5)
[debug] [W3C (36f3e66a)]     at Layer.handle [as handle_request] (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/layer.js:95:5)
[debug] [W3C (36f3e66a)]     at trim_prefix (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:317:13)
[debug] [W3C (36f3e66a)]     at /Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:284:7
[debug] [W3C (36f3e66a)]     at Function.process_params (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:335:12)
[debug] [W3C (36f3e66a)]     at next (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C (36f3e66a)]     at jsonParser (/Users/dennybritz/github/appium-base-driver/node_modules/body-parser/lib/types/json.js:110:7)
[debug] [W3C (36f3e66a)]     at Layer.handle [as handle_request] (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/layer.js:95:5)
[debug] [W3C (36f3e66a)]     at trim_prefix (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:317:13)
[debug] [W3C (36f3e66a)]     at /Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:284:7
[debug] [W3C (36f3e66a)]     at Function.process_params (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:335:12)
[debug] [W3C (36f3e66a)]     at next (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C (36f3e66a)]     at Layer.handle [as handle_request] (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/layer.js:91:12)
[debug] [W3C (36f3e66a)]     at trim_prefix (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:317:13)
[debug] [W3C (36f3e66a)]     at /Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:284:7
[debug] [W3C (36f3e66a)]     at Function.process_params (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:335:12)
[debug] [W3C (36f3e66a)]     at next (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C (36f3e66a)]     at Layer.handle [as handle_request] (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/layer.js:91:12)
[debug] [W3C (36f3e66a)]     at trim_prefix (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:317:13)
[debug] [W3C (36f3e66a)]     at /Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:284:7
[debug] [W3C (36f3e66a)]     at Function.process_params (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:335:12)
[debug] [W3C (36f3e66a)]     at next (/Users/dennybritz/github/appium-base-driver/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C (36f3e66a)]     at methodOverride (/Users/dennybritz/github/appium-base-driver/node_modules/method-override/index.js:65:14)
dennybritz

comment created time in 3 months

issue commentappium/appium

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

I applied the changes to /usr/local/lib/node_modules/appium/node_modules/appium-base-driver but I don't think that fixed it, the memory usage still keeps increasing.

dennybritz

comment created time in 3 months

issue openedappium/appium

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

The problem

Same as https://github.com/appium/appium/issues/13321 and https://github.com/appium/appium/issues/13074

Appium crashes after some time with FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory due to memory leak. Process memory is continuously increasing.

I saw this problem with the latest stable version, then upgraded to appium@beta as suggested in the other issue. The problem is still the same.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.16.0-beta.2
  • Last Appium version that did not exhibit the issue (if applicable): N/A
  • Desktop OS/version used to run Appium: macOS 10.15.1
  • Node.js version (unless using Appium.app|exe): v13.1.0
  • Npm or Yarn package manager: npm 6.13.1
  • Mobile platform/version under test: iOS 12.4
  • Real device or emulator/simulator: Real Device
  • Appium CLI or Appium.app|exe: CLI

Details

The application is taking screenshots with get_screenshot_as_file in a loop, same as the other issue(s) linked above. Here's a heap snapshot taken a 10 minutes into the run with memory usage already at several GB:

Heap.20191125.115127.20733.0.006.heapsnapshot.zip

I took a brief look at the dump and it seems like all screenshots are left in memory?

Link to Appium logs

https://gist.github.com/dennybritz/c727f4ad03379340713fc3d3a19b0dc5

created time in 3 months

push eventdennybritz/reinforcement-learning

Roshan Ray

commit sha 1298c8ddd60331ab7457bb7fa6fbc42ebecf8f0c

Update README.md

view details

Denny Britz

commit sha 06ce3127a2cb7cfd6cf2a9cbd523ac4550db5a54

Merge pull request #216 from roshray/patch-1 Update README.md

view details

push time in 4 months

PR merged dennybritz/reinforcement-learning

Update README.md

Deep RL Bootcamp

+1 -0

1 comment

1 changed file

roshray

pr closed time in 4 months

pull request commentdennybritz/reinforcement-learning

Update README.md

Thanks!

roshray

comment created time in 4 months

push eventdennybritz/reinforcement-learning

nsydn

commit sha 775fd81e82fa900f87d35309f937d1102ed9fc57

Update Policy Iteration Solution.ipynb

view details

nsydn

commit sha 7d232607e63743c7c1b9ff912f4e0084bbf3e616

Update Policy Iteration Solution.ipynb

view details

Denny Britz

commit sha 89dacf56ee8172e4038f899c7de1a9082a2a12f3

Merge pull request #214 from nsydn/master a test pull req (corrected few typos)

view details

push time in 5 months

pull request commentdennybritz/reinforcement-learning

a test pull req (corrected few typos)

Thanks for the correction!

nsydn

comment created time in 5 months

issue commentnlposs/NLP-OSS

[NLP-OSS 2020] Program Committee Suggestions/Confirmation

Happy to confirm my participation in the PC!

alvations

comment created time in 5 months

starteddylanaraps/pure-bash-bible

started time in 5 months

more