Starting an app with command line arguments #86
Replies: 5 comments 5 replies
-
The |
Beta Was this translation helpful? Give feedback.
-
I'm still confused: You're launching Chrome with the Bunch (using a
script item), but then clicking a Google Meeting link somewhere else,
correct? And when you click that link, Chrome is crashing, and it's
Chrome that shows you a Bunch-related error? Or is the Meeting also
being opened by a Bunch?
And you don't see any of this happen if you do the same thing from the
command line? The errors seem related to the webcam initializing, but I
would expect the same thing to happen if you launched from the command
line and then clicked a Meeting link... Bunch script items are run in
protected space under their own user, so there may be permissions
issues. I'd be curious what you see if you open up the script monitor
for that line (Bunch menu->Shell Scripts).
…-Brett
On 28 Jun 2021, at 14:58, rickyrodmac wrote:
Google Meeting is Google's version of a Zoom or Microsoft Teems
meeting. Our company uses Google and in the calendar we can add a
meeting to the invitation. "Bunch / Script error / [menu name] Google
Chrome --profile-directory=Defau..." is the text that shows up in the
notification message after Chrome crashes. Here is the info from the
log file.
2021-06-28 12:54:24: 🔴Script Error: exit code 6 for
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
--profile-directory=Default
2021-06-28 12:54:24: 🔴STDOUT: Changed waitThread to realtime
priority!
Asked for all format descriptions...
2021-06-28 12:54:24: 🔴STDERR: 2021-06-28 12:54:03.106 Google
Chrome[88901:8417283] Error loading
/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn:
dlopen(/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn,
262): no suitable image found. Did find:
/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn:
code signature in
(/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn)
not valid for use in process using Library Validation: mapping process
and mapped file (non-platform) have different Team IDs
/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn:
stat() failed with errno=9
2021-06-28 12:54:05.038 1PasswordNativeMessageHost[88961:8418055]
70806001 [EXT_NMH:(Secondary Thread
0x7ff3c5d07f90):OPNMXPCConnection.swift] E connect() | Connection
Established
[0628/125423.863699:WARNING:process_memory_mac.cc(93)]
mach_vm_read(0x7ffee0a4b000, 0x2000): (os/kern) invalid address (1)
[0628/125424.147134:WARNING:crash_report_exception_handler.cc(240)]
UniversalExceptionRaise: (os/kern) failure (5)
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#86 (reply in thread)
|
Beta Was this translation helpful? Give feedback.
-
Thanks Brett,
Loading from Terminal BEFORE Joining a meeting:
rickyrod@Rickys-MacBook-Pro ~ % /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --profile-directory=Default
2021-06-29 06:42:57.580 Google Chrome[4162:61760] Error loading /Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn: dlopen(/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn, 262): no suitable image found. Did find:
/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn: code signature in (/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs
/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn: stat() failed with errno=9
2021-06-29 06:43:00.476 1PasswordNativeMessageHost[4234:62446] 70806001 [EXT_NMH:(Secondary Thread 0x7f9774906990):OPNMXPCConnection.swift] E connect() | Connection Established
Changed waitThread to realtime priority!
Asked for all format descriptions...
AFTER Joining a meeting:
Changed waitThread to realtime priority!
Asked for all format descriptions...
Asked for all format descriptions...
[setting] Setting kCMIODevicePropertyDeviceMaster to 4622
[setting] Setting kCMIOStreamPropertyFormatDescription
Got new format : 1280x720
Asked for all format descriptions...
[setting] Setting kCMIODevicePropertyDeviceMaster to -1
[setting] Setting kCMIODevicePropertyDeviceMaster to 4622
[setting] Setting kCMIODevicePropertyDeviceMaster to -1
Asked for all format descriptions...
[setting] Setting kCMIODevicePropertyDeviceMaster to 4622
[setting] Setting kCMIOStreamPropertyFormatDescription
Got new format : 1280x720
Asked for all format descriptions...
[setting] Setting kCMIODevicePropertyDeviceMaster to -1
[RemoteFrameSource] Releasing RemoteFrameSource
Epocam is software from Elgato that allows me to use my iPad/iPhone as a web cam.
[EpocCam | elgato.com](https://www.elgato.com/en/epoccam)
I connect via USB.
I did a test and uninstalled the Epocam driver and went back to using the built in MacBook Pro web cam. Chrome still crashes when run through the bunch. Here is the STDERR output:
2021-06-29 06:59:11.850 1PasswordNativeMessageHost[6302:91718] 70806001 [EXT_NMH:(Secondary Thread 0x7fc1bf207b70):OPNMXPCConnection.swift] E connect() | Connection Established
[0629/065926.172137:WARNING:process_memory_mac.cc(93)] mach_vm_read(0x7ffee7c43000, 0x2000): (os/kern) invalid address (1)
[0629/065926.512825:WARNING:crash_report_exception_handler.cc(240)] UniversalExceptionRaise: (os/kern) failure (5)
The status line:
Status: Task Completed (error code 6)
Running from the terminal shows:
rickyrod@Rickys-MacBook-Pro ~ % /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --profile-directory=Default
2021-06-29 07:04:32.564 1PasswordNativeMessageHost[6938:98710] 70806001 [EXT_NMH:(Secondary Thread 0x7fb41d904af0):OPNMXPCConnection.swift] E connect() | Connection Established
2021-06-29 07:05:09.552 1PasswordNativeMessageHost[6938:100317] 70806001 [EXT_NMH:(Secondary Thread 0x7fb41d904af0):OPNMHostAppDelegate.swift] E applicationDidFinishLaunching(_:) | 0-length message received, treat as hangup.
rickyrod@Rickys-MacBook-Pro ~ %
Thanks for your time.
I was looking at System Preferences => Security & Privacy => Camera / Microphone to see if I could give Bunch permissions but there is no option to add.
Terminal does have permission for both. Just a thought.
Ricky
…-------------------------------------
Ricky Rodriguez
***@***.***
805-415-6401 cell
On Jun 29, 2021, at 6:29 AM, Brett Terpstra ***@***.***> wrote:
Verify for me that this does not happen when you do the same thing from the command line in Terminal, including joining a meeting
Does this STDOUT output appear immediately, or only after you click to join a meeting? Make sure to have the script monitor open at the time you click the link to see at what point the output is generated
Do you happen to know what EpocCamPlugin might be referring to? Is that a camera brand name?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#86 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ALYR4XKCHZCLRFNNASC6FI3TVHDEBANCNFSM47OQFJPA>.
|
Beta Was this translation helpful? Give feedback.
-
Does it make any difference if you use the `open` command instead of
calling the binary directly?
$ open -a "Google Chrome" --args --profile-directory=Default
…On 29 Jun 2021, at 9:18, rickyrodmac wrote:
Thanks Brett,
Loading from Terminal BEFORE Joining a meeting:
***@***.*** ~ % /Applications/Google\
Chrome.app/Contents/MacOS/Google\ Chrome --profile-directory=Default
2021-06-29 06:42:57.580 Google Chrome[4162:61760] Error loading
/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn:
dlopen(/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn,
262): no suitable image found. Did find:
/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn:
code signature in
(/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn)
not valid for use in process using Library Validation: mapping process
and mapped file (non-platform) have different Team IDs
/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn:
stat() failed with errno=9
2021-06-29 06:43:00.476 1PasswordNativeMessageHost[4234:62446]
70806001 [EXT_NMH:(Secondary Thread
0x7f9774906990):OPNMXPCConnection.swift] E connect() | Connection
Established
Changed waitThread to realtime priority!
Asked for all format descriptions...
AFTER Joining a meeting:
Changed waitThread to realtime priority!
Asked for all format descriptions...
Asked for all format descriptions...
[setting] Setting kCMIODevicePropertyDeviceMaster to 4622
[setting] Setting kCMIOStreamPropertyFormatDescription
Got new format : 1280x720
Asked for all format descriptions...
[setting] Setting kCMIODevicePropertyDeviceMaster to -1
[setting] Setting kCMIODevicePropertyDeviceMaster to 4622
[setting] Setting kCMIODevicePropertyDeviceMaster to -1
Asked for all format descriptions...
[setting] Setting kCMIODevicePropertyDeviceMaster to 4622
[setting] Setting kCMIOStreamPropertyFormatDescription
Got new format : 1280x720
Asked for all format descriptions...
[setting] Setting kCMIODevicePropertyDeviceMaster to -1
[RemoteFrameSource] Releasing RemoteFrameSource
Epocam is software from Elgato that allows me to use my iPad/iPhone as
a web cam.
[EpocCam | elgato.com](https://www.elgato.com/en/epoccam)
I connect via USB.
I did a test and uninstalled the Epocam driver and went back to using
the built in MacBook Pro web cam. Chrome still crashes when run
through the bunch. Here is the STDERR output:
2021-06-29 06:59:11.850 1PasswordNativeMessageHost[6302:91718]
70806001 [EXT_NMH:(Secondary Thread
0x7fc1bf207b70):OPNMXPCConnection.swift] E connect() | Connection
Established
[0629/065926.172137:WARNING:process_memory_mac.cc(93)]
mach_vm_read(0x7ffee7c43000, 0x2000): (os/kern) invalid address (1)
[0629/065926.512825:WARNING:crash_report_exception_handler.cc(240)]
UniversalExceptionRaise: (os/kern) failure (5)
The status line:
Status: Task Completed (error code 6)
Running from the terminal shows:
***@***.*** ~ % /Applications/Google\
Chrome.app/Contents/MacOS/Google\ Chrome --profile-directory=Default
2021-06-29 07:04:32.564 1PasswordNativeMessageHost[6938:98710]
70806001 [EXT_NMH:(Secondary Thread
0x7fb41d904af0):OPNMXPCConnection.swift] E connect() | Connection
Established
2021-06-29 07:05:09.552 1PasswordNativeMessageHost[6938:100317]
70806001 [EXT_NMH:(Secondary Thread
0x7fb41d904af0):OPNMHostAppDelegate.swift] E
applicationDidFinishLaunching(_:) | 0-length message received, treat
as hangup.
***@***.*** ~ %
Thanks for your time.
I was looking at System Preferences => Security & Privacy => Camera /
Microphone to see if I could give Bunch permissions but there is no
option to add.
Terminal does have permission for both. Just a thought.
Ricky
-------------------------------------
Ricky Rodriguez
***@***.***
805-415-6401 cell
> On Jun 29, 2021, at 6:29 AM, Brett Terpstra ***@***.***> wrote:
>
>
> Verify for me that this does not happen when you do the same thing
> from the command line in Terminal, including joining a meeting
> Does this STDOUT output appear immediately, or only after you click
> to join a meeting? Make sure to have the script monitor open at the
> time you click the link to see at what point the output is generated
> Do you happen to know what EpocCamPlugin might be referring to? Is
> that a camera brand name?
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#86 (reply in thread)>
> , or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALYR4XKCHZCLRFNNASC6FI3TVHDEBANCNFSM47OQFJPA>
> .
>
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#86 (comment)
|
Beta Was this translation helpful? Give feedback.
-
That worked.
I had tried something similar before that did not work. I was missing the --args parameter.
Thank You, Thank You, Thank You.
…-------------------------------------
Ricky Rodriguez
***@***.***
805-415-6401 cell
On Jun 29, 2021, at 2:39 PM, Brett Terpstra ***@***.***> wrote:
Does it make any difference if you use the `open` command instead of
calling the binary directly?
$ open -a "Google Chrome" --args --profile-directory=Default
On 29 Jun 2021, at 9:18, rickyrodmac wrote:
> Thanks Brett,
>
> Loading from Terminal BEFORE Joining a meeting:
>
> ***@***.*** ~ % /Applications/Google\
> Chrome.app/Contents/MacOS/Google\ Chrome --profile-directory=Default
> 2021-06-29 06:42:57.580 Google Chrome[4162:61760] Error loading
> /Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn:
> dlopen(/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn,
> 262): no suitable image found. Did find:
> /Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn:
> code signature in
> (/Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn)
> not valid for use in process using Library Validation: mapping process
> and mapped file (non-platform) have different Team IDs
> /Library/CoreMediaIO/Plug-Ins/DAL/EpocCamPlugIn.plugin/Contents/MacOS/EpocCamPlugIn:
> stat() failed with errno=9
> 2021-06-29 06:43:00.476 1PasswordNativeMessageHost[4234:62446]
> 70806001 [EXT_NMH:(Secondary Thread
> 0x7f9774906990):OPNMXPCConnection.swift] E connect() | Connection
> Established
> Changed waitThread to realtime priority!
> Asked for all format descriptions...
>
> AFTER Joining a meeting:
>
> Changed waitThread to realtime priority!
> Asked for all format descriptions...
> Asked for all format descriptions...
> [setting] Setting kCMIODevicePropertyDeviceMaster to 4622
> [setting] Setting kCMIOStreamPropertyFormatDescription
> Got new format : 1280x720
> Asked for all format descriptions...
> [setting] Setting kCMIODevicePropertyDeviceMaster to -1
> [setting] Setting kCMIODevicePropertyDeviceMaster to 4622
> [setting] Setting kCMIODevicePropertyDeviceMaster to -1
> Asked for all format descriptions...
> [setting] Setting kCMIODevicePropertyDeviceMaster to 4622
> [setting] Setting kCMIOStreamPropertyFormatDescription
> Got new format : 1280x720
> Asked for all format descriptions...
> [setting] Setting kCMIODevicePropertyDeviceMaster to -1
> [RemoteFrameSource] Releasing RemoteFrameSource
>
> Epocam is software from Elgato that allows me to use my iPad/iPhone as
> a web cam.
>
> [EpocCam | elgato.com](https://www.elgato.com/en/epoccam)
>
> I connect via USB.
>
> I did a test and uninstalled the Epocam driver and went back to using
> the built in MacBook Pro web cam. Chrome still crashes when run
> through the bunch. Here is the STDERR output:
>
> 2021-06-29 06:59:11.850 1PasswordNativeMessageHost[6302:91718]
> 70806001 [EXT_NMH:(Secondary Thread
> 0x7fc1bf207b70):OPNMXPCConnection.swift] E connect() | Connection
> Established
> [0629/065926.172137:WARNING:process_memory_mac.cc(93)]
> mach_vm_read(0x7ffee7c43000, 0x2000): (os/kern) invalid address (1)
> [0629/065926.512825:WARNING:crash_report_exception_handler.cc(240)]
> UniversalExceptionRaise: (os/kern) failure (5)
>
> The status line:
>
> Status: Task Completed (error code 6)
>
> Running from the terminal shows:
>
> ***@***.*** ~ % /Applications/Google\
> Chrome.app/Contents/MacOS/Google\ Chrome --profile-directory=Default
> 2021-06-29 07:04:32.564 1PasswordNativeMessageHost[6938:98710]
> 70806001 [EXT_NMH:(Secondary Thread
> 0x7fb41d904af0):OPNMXPCConnection.swift] E connect() | Connection
> Established
> 2021-06-29 07:05:09.552 1PasswordNativeMessageHost[6938:100317]
> 70806001 [EXT_NMH:(Secondary Thread
> 0x7fb41d904af0):OPNMHostAppDelegate.swift] E
> applicationDidFinishLaunching(_:) | 0-length message received, treat
> as hangup.
> ***@***.*** ~ %
>
> Thanks for your time.
>
> I was looking at System Preferences => Security & Privacy => Camera /
> Microphone to see if I could give Bunch permissions but there is no
> option to add.
>
> Terminal does have permission for both. Just a thought.
>
> Ricky
>
> -------------------------------------
> Ricky Rodriguez
> ***@***.***
> 805-415-6401 cell
>
>
>
>> On Jun 29, 2021, at 6:29 AM, Brett Terpstra ***@***.***> wrote:
>>
>>
>> Verify for me that this does not happen when you do the same thing
>> from the command line in Terminal, including joining a meeting
>> Does this STDOUT output appear immediately, or only after you click
>> to join a meeting? Make sure to have the script monitor open at the
>> time you click the link to see at what point the output is generated
>> Do you happen to know what EpocCamPlugin might be referring to? Is
>> that a camera brand name?
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#86 (reply in thread)>
>> , or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ALYR4XKCHZCLRFNNASC6FI3TVHDEBANCNFSM47OQFJPA>
>> .
>>
>
>
>
> --
> You are receiving this because you commented.
> Reply to this email directly or view it on GitHub:
> #86 (comment)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#86 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ALYR4XORQRUYYGC3DODHLA3TVI4RRANCNFSM47OQFJPA>.
|
Beta Was this translation helpful? Give feedback.
-
I'm using a set of bunches that will start Google Chrome with a command line argument to select a specific user profile (work / personal / fun).
I've tried:
Google Chrome
-- Starts Chrome brings up the Who's using Chrome? dialog box. Trying to avoid this.
Google Chrome --profile-directory=Default
Google\ Chrome --profile-directory=Default
-- Neither of these start Chrome
$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --profile-directory=Default
-- Starts Chrome with the selected profile but when I try to join a Google Meeting I get this error message:
Bunch / Script error / [menu name] Google Chrome --profile-directory=Defau...
-- If I try the same line in the terminal it works as expected (after granting security permissions).
Is there something else that I should be using?
Beta Was this translation helpful? Give feedback.
All reactions