dapr / quickstarts

Dapr quickstart code samples and tutorials showcasing core Dapr capabilities
Apache License 2.0
1.04k stars 529 forks source link

Running actor service app on a MacOS M1 crashes #1025

Open chrisdrobison opened 6 months ago

chrisdrobison commented 6 months ago

Expected Behavior

The actor service app runs without issue.

Actual Behavior

I'm on a Mac M1. Running:

dapr run --app-id actorservice --app-port 5001 --dapr-http-port 3500 --resources-path ../../../resources -- dotnet run --urls=http://localhost:5001/

from the actor quickstart crashes with an exit code of 137.

Here is my Dapr version info:

CLI version: 1.13.0 
Runtime version: 1.13.2

Steps to Reproduce the Problem

  1. Follow the instructions for the actor quickstart app
  2. Run the line to start the actor service app
joebowbeer commented 4 months ago

Exit code 137 is OOM (out of memory)

paulyuk commented 4 months ago

hi @chrisdrobison - I'm doing the development for these quickstarts pretty exclusively on a Mac m1 so that gets some testing coverage. I cannot reproduce this yet.

Could you please share your memory and CPU before and after the dapr run ... ? I think @joebowbeer might be onto something with memory running out.

also note, you should be able to run this a folder higher /quickstarts/actors/csharp/sdk/ with a dapr run -f . which runs all the services at once.

chrisdrobison commented 4 months ago

Ok, I will take a look and get back to you.