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

Bunch crashes after opening chrome #254

Open
alwinsamson opened this issue Sep 9, 2022 · 27 comments
Open

Bunch crashes after opening chrome #254

alwinsamson opened this issue Sep 9, 2022 · 27 comments

Comments

@alwinsamson
Copy link

when opening a specific google chrome profile Bunch crashes.

@@ chrome[Profile 1]:https://brettterpstra.com

Using Version 1.4.10 (163)

@ttscoff
Copy link
Owner

ttscoff commented Sep 9, 2022

@@ should never be on a line with anything else. Does it make a difference if you move that to the line above and have only the chrome URL on the line?

@alwinsamson
Copy link
Author

@@ should never be on a line with anything else. Does it make a difference if you move that to the line above and have only the chrome URL on the line?

I accidentally pasted it like that, it is actually at the top.

@ttscoff
Copy link
Owner

ttscoff commented Sep 10, 2022 via email

@alwinsamson
Copy link
Author

alwinsamson commented Sep 14, 2022

Here's the Log output
2022-09-14 14:44:39: ⚪[Bunch Test 1] Open >>>>>>>>>>>>>>>>>>>>>
2022-09-14 14:44:39: ⚪[Bunch Test 1] Hiding all apps
2022-09-14 14:44:39: ⚪[Bunch Test 1] Opening URL (chrome[Profile 1]:https://brettterpstra.com)

Here's what i have in my bunch file

image

@ttscoff
Copy link
Owner

ttscoff commented Sep 14, 2022 via email

@alwinsamson
Copy link
Author

It doesn't crash, but it also doesn't open chrome.

@ttscoff
Copy link
Owner

ttscoff commented Sep 15, 2022 via email

@alwinsamson
Copy link
Author

when I insert a random link it opens in the default chrome profile. Maybe something to do with chrome profile?

@ttscoff
Copy link
Owner

ttscoff commented Sep 19, 2022 via email

@edcottrell
Copy link

edcottrell commented Jan 25, 2023

I have the same problem. This bunch works fine:

@@

(dnd)
!!(dnd off)

chrome:https://brettterpstra.com/

But this bunch causes Bunch to exit abruptly when it reaches the URL:

@@

(dnd)
!!(dnd off)

chrome[otherprofile]:https://brettterpstra.com/

My log file ends up with the following:

2023-01-24 23:36:39: 🟡Debug Level set to 3. Restart required to enable.
2023-01-24 23:36:41: ⚪Quitting ------------------------------------------
2023-01-24 23:36:42: ⚪Launched ==========================================
2023-01-24 23:36:45: ⚪[My Bunch] Open >>>>>>>>>>>>>>>>>>>>>
2023-01-24 23:36:45: ⚪[My Bunch] Hiding all apps
2023-01-24 23:36:45: ⚪[My Bunch] Processing command "dnd"
2023-01-24 23:36:45: ⚪[My Bunch] Turning Do Not Disturb on
2023-01-24 23:36:45: ⚪[My Bunch] Opening URL (chrome[otherprofile]:https://brettterpstra.com/)

There are no other log entries after that.

I'm on 1.4.11.

@arlejeun
Copy link

arlejeun commented Mar 1, 2023

Same issue as @edcottrell. How did you bypass this issue?

@ttscoff
Copy link
Owner

ttscoff commented Mar 1, 2023

I'm afraid I haven't had a chance to dig into why this is happening yet. If I understand correctly, it only happens when using a chrome[profile]:url and not just chrome:url. Need to do some testing on this.

@edcottrell
Copy link

@arlejeun Unfortunately, I can’t find a true workaround. I just don’t automate that step for now.

@ttscoff That’s right, it’s only with the chrome[profile]:url format. Thanks!

@arlejeun
Copy link

arlejeun commented Mar 1, 2023

@edcottrell / @ttscoff Thanks for the quick update.

It might not be ideal but here is a quick workaround with bash script

In my bunch file, I can call this script as follow and it seems to be working

$ scripts/open_chrome_profile.sh "Profile 16" "www.genesys.com"
$ scripts/open_chrome_profile.sh "Profile 16" "www.successkpi.com"

Here is the open_chrome_profile.sh file

#!/bin/bash
# Provide an argument with the profile id $1 to open Chrome webpage $2
# To get profile id, check chrome://version
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --profile-directory="$1" "$2"

@edcottrell
Copy link

@arlejeun I just got a chance to look at this, but that approach worked like a charm. It's a great workaround for now. Thank you!

@sundeer
Copy link

sundeer commented Feb 18, 2024

Same here. I'm glad there's a workaround. Perhaps update the docs to reflect the issue. I'm new to Bunch and burned some time thinking it was me.

@AstroCodeCat
Copy link

Hi - looks like this is still an issue - have just spent some time digging into this. Same problem - with a profile it crashes bunch - without all is fine - have attached crash report - let me know what other info you need - thanks


title: Test Browsers

chrome[Mike]:https://control.shelly.cloud
//chrome[Peter]:https://clients.mindbodyonline.com
//chrome:https://clients.mindbodyonline.com

2024-06-20 13:33:26: ⚪[Test Browsers] Open >>>>>>>>>>>>>>>>>>>>>
2024-06-20 13:33:26: ⚪[Test Browsers] Opening URL (chrome[Mike]:https://control.shelly.cloud)
2024-06-20 13:33:35: 🔘Added file logger (/Users/mtyldesley/Library/Logs/Bunch/com.brettterpstra.Bunch 2024-06-19--03-12-39-170.log)
2024-06-20 13:33:35: ⚪Launched ==========================================
2024-06-20 13:33:35: 🔘Observing file:///Users/mtyldesley/Documents/Bunches/ for changes
2024-06-20 13:33:35: 🔘Generating status menu
2024-06-20 13:33:54: ⚪[Test Browsers] Open >>>>>>>>>>>>>>>>>>>>>
2024-06-20 13:33:54: ⚪[Test Browsers] Opening URL (chrome[Mike]:https://control.shelly.cloud)

Bunch-2024-06-20-115129.ips.zip

@AstroCodeCat
Copy link

Perhaps if this functionality/issue is not going to be fixed anytime soon it could be removed from the documentation so they don't spend time on it before coming here?

@ttscoff
Copy link
Owner

ttscoff commented Jun 21, 2024 via email

@AstroCodeCat
Copy link

AstroCodeCat commented Jun 21, 2024 via email

@ttscoff
Copy link
Owner

ttscoff commented Jun 23, 2024

I'm unable to replicate this, which makes it really hard to fix. I can run:

chrome[Work]:https://brettterpstra.com

And it does exactly that, opening my site in a new window of Work profile. Anything else you can see that I'm missing about your setup? I have the latest version of Chrome and am testing with Bunch 1.4.17 (180)

@edcottrell
Copy link

I tested with a similar line (replacing Work with my profile name and using exactly the same caseing as I used in Chrome, as in the line below):

chrome[otherprofile]:https://brettterpstra.com

Bunch still crashes immediately when opening the bunch in question. I'm on 1.4.17.

@ttscoff
Copy link
Owner

ttscoff commented Jun 23, 2024 via email

@edcottrell
Copy link

Yes, that's the exact name. No spaces or punctuation.

I created another profile just now with the exact name testprofile, and I still get a crash immediately upon running a bunch consisting of only the following lines:

---
title: TEST Chrome Profiles
---

chrome[testprofile]:https://brettterpstra.com

@AstroCodeCat
Copy link

AstroCodeCat commented Jun 24, 2024 via email

@edcottrell
Copy link

@AstroCodeCat Interesting. google chrome as application name doesn't do anything at all for me, and I get a log entry like the one below:

2024-06-23 21:48:59: 🔴App not running (Google Chrome[testprofile]:https://brettterpstra.com)

chrome without a profile works just fine. But chrome[anything] crashes Bunch every time. Those scenarios look identical in the logs except for (1) the profile appearing in the log entry and (2) the fact that Bunch had to be restarted any time I tried it with a specified profile in the bunchfile.

2024-06-23 21:51:11: ⚪[TEST Chrome Profiles] Open >>>>>>>>>>>>>>>>>>>>>
2024-06-23 21:51:11: ⚪[TEST Chrome Profiles] Opening URL (chrome[testprofile]:https://brettterpstra.com)
2024-06-23 21:51:16: ⚪Launched ==========================================
2024-06-23 21:52:30: ⚪[TEST Chrome Profiles] Open >>>>>>>>>>>>>>>>>>>>>
2024-06-23 21:52:30: ⚪[TEST Chrome Profiles] Opening URL (chrome:https://brettterpstra.com)
2024-06-23 21:52:59: ⚪[TEST Chrome Profiles] Closing <<<<<<<<<<<<<<<<<<
2024-06-23 21:53:02: ⚪[TEST Chrome Profiles] Open >>>>>>>>>>>>>>>>>>>>>
2024-06-23 21:53:02: ⚪[TEST Chrome Profiles] Opening URL (chrome[testprofile]:https://brettterpstra.com)
2024-06-23 21:53:08: ⚪Launched ==========================================

@AstroCodeCat
Copy link

Hi Ed,

Sorry I wasn't very clear. If I launch just the app (no URL, no following stuff), I need to use "google chrome", if I want to use the URL and profile I just use "chrome"

Thanks

title: Test Browsers

//chrome:https://clients.mindbodyonline.com # works
//google chrome # works
//goole chrome[Peter]:https://clients.mindbodyonline.com # doesn't work
//chrome # doesn't work
//Chrome # doesn't work

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

No branches or pull requests

6 participants