-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Description
Apple platform
macOS
Framework version
net9.0-*
Affected platform version
.NET 8.0-*, .NET 9.0.203
Description
I maintain the Dapr .NET SDK and have been fielding reports from several different people over the last couple of weeks that out of the blue, they're unable to run one of the Dapr .NET quickstarts, specifically this one.
If you clone the repo and cd into the 'service' directory within this directory and have Dapr installed on your system (instructions), you should just be able to run dapr run --app-id actorservice --app-port 5001 --app-protocol http --dapr-http-port 56001 --resources-path ../../../resources -- dotnet run --urls=http://localhost:5001/
Running this on Windows, I see the following in my console:

On Mac though, I'm getting repeated reports of the following:
ℹ️ Checking if Dapr sidecar is listening on GRPC port 50059
ℹ️ Dapr sidecar is up and running.
ℹ️ Updating metadata for appPID: 6310
ℹ️ Updating metadata for app command: dotnet run --urls=http://localhost:5001/
✅ You're up and running! Both Dapr and your app logs will appear here.
❌ The App process exited with error code: exit status 137
ℹ️
terminated signal received: shutting down
✅ Exited Dapr successfully
❌ Error exiting App: exit status 137
I prompted several users to try inserting a Console.WriteLine at the top of their programs - when they rebuild and run the app, it does not show the log output to the console, suggesting that the app is crashing before it even starts running.
This quickstart has been validated to work as expected on Windows and Linux - it's only having this reproduceable problem on several different Macs.
For what it's worth, we released the latest version of Dapr on September 16 and beforehand, this and other quickstarts were cross-platform validated to work fine at and just before this release, so this is just something that's changed in the last month. I appreciate any guidance you can share on what might be going on.
Steps to Reproduce
- Clone this repo
- Install Dapr CLI to your system - this might not actually be necessary to experience the issue as I think the app is crashing before it tries to communicate with Dapr, but you shouldn't be able to reproduce the "correct" output I shared from Windows above without this installed
cdintoactors/csharp/sdk/servicerelative to where you cloned the repository- Run the Dapr sidecar + launch the dotnet app with
dapr run --app-id actorservice --app-port 5001 --app-protocol http --dapr-http-port 56001 --resources-path ../../../resources -- dotnet run --urls=http://localhost:5001/
Did you find any workaround?
The reporter of this issue suggests that it works if the DLL is directly invoked:
dotnet ./bin/Debug/net8.0/SmartDevice.Service.dllRelevant logs
No response