-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Alex Peck edited this page May 11, 2024
·
1 revision
Fails at runtime with the error message Bad CPU type in executable
.
Solution: install rosetta. Run at the command line:
softwareupdate --install-rosetta
Sample error message:
Unhandled exception. System.AggregateException: One or more errors occurred. (An error occurred trying to start process '/Users/foo/Documents/repo/bar/Tools/BenchPlot/bin/Release/net6.0/.local-chromium/MacOS-1069273/chrome-mac/Chromium.app/Contents/MacOS/Chromium' with working directory '/Users/foo/Documents/repo/bar'. Bad CPU type in executable)`
`---> System.ComponentModel.Win32Exception (86): An error occurred trying to start process '/Users/foo/Documents/repo/bar/Tools/BenchPlot/bin/Release/net6.0/.local-chromium/MacOS-1069273/chrome-mac/Chromium.app/Contents/MacOS/Chromium' with working directory '/Users/foo/Documents/repo/bar'. Bad CPU type in executable`
`at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)`
`at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)`
`at System.Diagnostics.Process.Start()`
`at PuppeteerSharp.States.ChromiumStartingState.StartCoreAsync(LauncherBase p) in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/States/ChromiumStartingState.cs:line 68`
`at PuppeteerSharp.Launcher.LaunchAsync(LaunchOptions options) in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Launcher.cs:line 62`
`at PuppeteerSharp.Launcher.LaunchAsync(LaunchOptions options) in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Launcher.cs:line 95`
`at <StartupCode$Plotly-NET-ImageExport>.$PuppeteerSharpRenderer.clo@81-4.MoveNext()`
`at <StartupCode$Plotly-NET-ImageExport>.$PuppeteerSharpRenderer.Plotly-NET-ImageExport-IGenericChartRenderer-RenderSVGAsync@169.MoveNext()`
`at <StartupCode$Plotly-NET-ImageExport>.$PuppeteerSharpRenderer.Plotly-NET-ImageExport-IGenericChartRenderer-SaveSVGAsync@184.MoveNext()`
`--- End of inner exception stack trace ---`
`at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)`
`at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)`
`at System.Threading.Tasks.Task`1.get_Result()`
`at Plotly.NET.ImageExport.AsyncHelper.taskSync@76.Invoke(Task`1 t)`
`at Plotly.NET.ImageExport.AsyncHelper.runSync[a,b](FSharpFunc`2 job, a input)`
`at Plotly.NET.ImageExport.AsyncHelper.taskSync[a](Task`1 task)`
`at Plotly.NET.ImageExport.ChartExtensions.SaveSVG@251.Invoke(GenericChart gChart)`
`at Program.<Main>$(String[] args) in /Users/foo/Documents/repo/bar/Tools/BenchPlot/Program.cs:line 59