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

Chrome browser not terminated after execution - initial fix implemented #648

Closed
kensoh opened this issue Dec 18, 2019 · 2 comments
Closed
Labels

Comments

@kensoh
Copy link
Member

kensoh commented Dec 18, 2019

Issue first spotted on macOS Catalina release, running Chrome Version 79.0.3945.88 (Official Build) (64-bit). Not sure if it is due to macOS update changes or Chrome update change.

Observations from macOS shows that the Chrome processes info returned have changed. Due to that, the TagUI Chrome process isn't killed properly. Adding another grep window-size after the grep tagui_user_profile seems to fix the issue. To dig further and also collect feedback.

Below debugging info from macOS. Need to check on Linux and Windows. CC @siowyisheng

Tebel:src kensoh$ ps x | grep remote-debugging-port=9222 | grep tagui_user_profile | sed -e 's/^[ ]*//'                 
14058 s000  S      0:18.41 /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --user-data-dir=chrome/tagui_user_profile --remote-debugging-port=9222 about:blank --window-size=1366,842
14361 s000  S      0:00.15 /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/79.0.3945.88/Helpers/Google Chrome Helper (Renderer).app/Contents/MacOS/Google Chrome Helper (Renderer) --type=renderer --remote-debugging-port=9222 --field-trial-handle=1718379636,15956115326844771816,7185594664229212159,131072 --lang=en-GB --user-data-dir=chrome/tagui_user_profile --disable-oor-cors --enable-auto-reload --num-raster-threads=2 --enable-zero-copy --enable-gpu-memory-buffer-compositor-resources --enable-main-frame-before-activation --service-request-channel-token=6669127898619523836 --renderer-client-id=30 --no-v8-untrusted-code-mitigations --seatbelt-client=88
14362 s000  S      0:00.79 /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/79.0.3945.88/Helpers/Google Chrome Helper (Renderer).app/Contents/MacOS/Google Chrome Helper (Renderer) --type=renderer --remote-debugging-port=9222 --field-trial-handle=1718379636,15956115326844771816,7185594664229212159,131072 --lang=en-GB --user-data-dir=chrome/tagui_user_profile --instant-process --disable-oor-cors --enable-auto-reload --num-raster-threads=2 --enable-zero-copy --enable-gpu-memory-buffer-compositor-resources --enable-main-frame-before-activation --service-request-channel-token=7746585619481135149 --renderer-client-id=31 --no-v8-untrusted-code-mitigations --seatbelt-client=88
Tebel:src kensoh$ ps x | grep remote-debugging-port=9222 | grep tagui_user_profile | sed -e 's/^[ ]*//'                 
14588 s000  S+     0:06.50 /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --user-data-dir=chrome/tagui_user_profile --remote-debugging-port=9222 about:blank --window-size=1366,842
14747 s000  R+     0:00.65 /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/79.0.3945.88/Helpers/Google Chrome Helper (Renderer).app/Contents/MacOS/Google Chrome Helper (Renderer) --type=renderer --remote-debugging-port=9222 --field-trial-handle=1718379636,7252428747212509387,5878820744270324615,131072 --lang=en-GB --user-data-dir=chrome/tagui_user_profile --disable-oor-cors --enable-auto-reload --num-raster-threads=2 --enable-zero-copy --enable-gpu-memory-buffer-compositor-resources --enable-main-frame-before-activation --service-request-channel-token=14471844672944768107 --renderer-client-id=23 --no-v8-untrusted-code-mitigations --seatbelt-client=119
14759 s000  S+     0:00.12 /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/79.0.3945.88/Helpers/Google Chrome Helper (Renderer).app/Contents/MacOS/Google Chrome Helper (Renderer) --type=renderer --remote-debugging-port=9222 --field-trial-handle=1718379636,7252428747212509387,5878820744270324615,131072 --lang=en-GB --user-data-dir=chrome/tagui_user_profile --disable-oor-cors --enable-auto-reload --num-raster-threads=2 --enable-zero-copy --enable-gpu-memory-buffer-compositor-resources --enable-main-frame-before-activation --service-request-channel-token=15579972353932130591 --renderer-client-id=24 --no-v8-untrusted-code-mitigations --seatbelt-client=157
@kensoh kensoh added the bug label Dec 18, 2019
@kensoh kensoh changed the title Chrome browser not terminated after execution - to investigate and get feedback Chrome browser not terminated after execution - investigate and get feedback Dec 18, 2019
kensoh added a commit that referenced this issue Dec 19, 2019
#642 - various updates for v5.11 release
#648 - fix for macOS/Linux Chrome not exiting
@kensoh
Copy link
Member Author

kensoh commented Dec 19, 2019

Fix deployed in TagUI v5.11 packaged release - https://github.com/kelaberetiv/TagUI#set-up

Solution is add an additional grep window-size to the process filter in tagui/src/tagui file. Tested to be working on macOS and Linux. For Windows, tested quite exhaustively with @siowyisheng that the latest Chrome version is not impacted by this, so no change was made.

@kensoh kensoh changed the title Chrome browser not terminated after execution - investigate and get feedback Chrome browser not terminated after execution - initial fix implemented Dec 19, 2019
@kensoh
Copy link
Member Author

kensoh commented Dec 19, 2019

Users with with an existing installation, you may also download the cutting edge version master.zip to overwrite. Instead of downloading above packaged zip which is 150+ MB.

More details here - https://github.com/kelaberetiv/TagUI#set-up

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

No branches or pull requests

2 participants