Open alwinsamson opened 2 years ago
@@ 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?
@@ 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.
Ok. Can you show me the debug log (Help->Set Log Level->Debug, then Help->Open Log prior to running the Bunch), as well as any crash report generated in Console.app?
I just ran some tests on my end and had no issues with Profile-specific chrome launches, so I'll need a better idea what's going on.
Thanks, Brett
On 10 Sep 2022, at 0:25, eleftheriakodikas wrote:
@@ 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.
-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/bunch/issues/254#issuecomment-1242635884 You are receiving this because you commented.
Message ID: @.***>
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
And do you get the crash if you don't include a profile in the command?
On 14 Sep 2022, at 14:43, eleftheriakodikas wrote:
Here's the Log output `2022-09-14 14:37:55: 🟡Debug Level set to 4. Restart required to enable. 2022-09-14 14:37:57: 🔘Added file logger (/Users/Al/Library/Logs/Bunch/com.brettterpstra.Bunch 2022-09-13--05-10-03-740.log) 2022-09-14 14:37:57: ⚪Launched
2022-09-14 14:37:58: 🔘Observing file:///Users/Al/Documents/Bunches/ for changes 2022-09-14 14:37:58: 🔘Generating status menu 2022-09-14 14:38:14: ⚪[Bunch Test 1] Open >>>>>>>>>>>>>>>>>>>>> 2022-09-14 14:38:14: ⚪[Bunch Test 1] Hiding all apps 2022-09-14 14:38:14: ⚪[Bunch Test 1] Opening URL (chrome[Profile 1]:https://brettterpstra.com) 2022-09-14 14:38:54: 🔘Added file logger (/Users/Al/Library/Logs/Bunch/com.brettterpstra.Bunch 2022-09-13--05-10-03-740.log) 2022-09-14 14:38:54: ⚪Launched
2022-09-14 14:38:54: 🔘Observing file:///Users/Al/Documents/Bunches/ for changes 2022-09-14 14:38:54: 🔘Generating status menu 2022-09-14 14:38:59: 🔘Generating status menu 2022-09-14 14:39:08: ⚪[Bunch Test 1] Open >>>>>>>>>>>>>>>>>>>>> 2022-09-14 14:39:08: ⚪[Bunch Test 1] Hiding all apps 2022-09-14 14:39:08: ⚪[Bunch Test 1] Opening URL (chrome[Profile 1]:https://brettterpstra.com) 2022-09-14 14:39:24: 🔘Added file logger (/Users/username/Library/Logs/Bunch/com.brettterpstra.Bunch 2022-09-13--05-10-03-740.log) 2022-09-14 14:39:24: ⚪Launched
2022-09-14 14:39:24: 🔘Observing file:///Users/username/Documents/Bunches/ for changes 2022-09-14 14:39:24: 🔘Generating status menu ` Here's what i have in my bunch file
<img width="640" alt="image" src="https://user-images.githubusercontent.com/71998285/190247609-2ab6610d-b82c-48df-9b50-1f2cb1902dee.png">
-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/bunch/issues/254#issuecomment-1247224820 You are receiving this because you commented.
Message ID: @.***>
It doesn't crash, but it also doesn't open chrome.
Using just
chrome:https://brettterpstra.com
?
On 14 Sep 2022, at 17:14, eleftheriakodikas wrote:
It doesn't crash, but it also doesn't open chrome.
-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/bunch/issues/254#issuecomment-1247354030 You are receiving this because you commented.
Message ID: @.***>
when I insert a random link it opens in the default chrome profile. Maybe something to do with chrome profile?
Just to be clear, do you mean a random link with chrome:
but without
any square brackets? I'm just trying to narrow down exactly what the
circumstances that cause the crash are.
On 17 Sep 2022, at 15:47, eleftheriakodikas wrote:
when I insert a random link it opens in the default chrome profile. Maybe something to do with chrome profile?
-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/bunch/issues/254#issuecomment-1250138189 You are receiving this because you commented.
Message ID: @.***>
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.
Same issue as @edcottrell. How did you bypass this issue?
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.
@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!
@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"
@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!
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.
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
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)
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?
I'm going to dig into it this weekend. If I can't find the cause of the crash, I'll remove the docs.
On 20 Jun 2024, at 20:34, AstroCodeCat wrote:
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?
-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/bunch/issues/254#issuecomment-2181823170 You are receiving this because you were mentioned.
Message ID: @.***>
If there is anything you'd like me to do I am more than happy to help. I only have bunch on my M3 Pro with multiple screens but do have iMac/ intel MacBook /intel and MacBook Air m2 to hand.
Thanks for looking into this.
Mike
From: Brett Terpstra @.> Sent: Saturday, June 22, 2024 2:09 AM To: ttscoff/bunch @.> Cc: AstroCodeCat @.>; Comment @.> Subject: Re: [ttscoff/bunch] Bunch crashes after opening chrome (Issue #254)
I'm going to dig into it this weekend. If I can't find the cause of the crash, I'll remove the docs.
On 20 Jun 2024, at 20:34, AstroCodeCat wrote:
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?
-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/bunch/issues/254#issuecomment-2181823170 You are receiving this because you were mentioned.
Message ID: @.***>
— Reply to this email directly, view it on GitHubhttps://github.com/ttscoff/bunch/issues/254#issuecomment-2183211715, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BERE74PGQFSG3UHEDJQU2JLZIRT4PAVCNFSM6AAAAAAQIIUSDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTGIYTCNZRGU. You are receiving this because you commented.Message ID: @.***>
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)
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.
Is otherprofile
the exact name of your other profile? Is there
anything else interesting about the profile name (such as spaces or
punctuation)? Does the crash happen with ALL profiles?
-Brett
On 23 Jun 2024, at 12:05, Ed Cottrell wrote:
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.
-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/bunch/issues/254#issuecomment-2185157520 You are receiving this because you were mentioned.
Message ID: @.***>
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
Hi Brett and Ed,
I also tested across a number of my regular profiles and all crash. Space/No spaces/non existent profiles. Can’t think of anything at the moment unique other than at one point I tried to launch chrome using only chrome as the app name and this launch chrome remote desktop uninstaller instead – I removed this and launch using “google chrome” instead.
Bunch: 1.4.17 (180) Mac - MacBook Pro - Apple M3 Pro - 14.5 (23F79)
//chrome[Mike]:https://control.shelly.cloud # crash //chrome[Peter]:https://clients.mindbodyonline.com # crash //chrome[peter]:https://clients.mindbodyonline.com # (lower case doesn't exist - crash) //chrome[Mad Collection]:https://clients.mindbodyonline.com # crash //chrome[Doesnotexist]:https://clients.mindbodyonline.com # crash //chrome[Michelle Ng MAD MB]:https://clients.mindbodyonline.com # crash
//chrome:https://clients.mindbodyonline.com # works //google chrome # works //chrome # doesn't launch //Chrome # doesn't launch
Thanks
Mike
From: Ed Cottrell @.> Date: Monday, 24 June 2024 at 5:19 AM To: ttscoff/bunch @.> Cc: AstroCodeCat @.>, Comment @.> Subject: Re: [ttscoff/bunch] Bunch crashes after opening chrome (Issue #254)
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
— Reply to this email directly, view it on GitHubhttps://github.com/ttscoff/bunch/issues/254#issuecomment-2185326402, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BERE74NAFT5T6RALMJLNJZ3ZI43VLAVCNFSM6AAAAAAQIIUSDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBVGMZDMNBQGI. You are receiving this because you commented.Message ID: @.***>
@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 ==========================================
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"
//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
when opening a specific google chrome profile Bunch crashes.
@@ chrome[Profile 1]:https://brettterpstra.com
Using Version 1.4.10 (163)