msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Memory issue when running in Docker Desktop

Open kissferenc opened this issue 2 years ago • 0 comments

Describe the bug

I try to run the latest image on mac os and after the container started and send the Connect-Graph command the console write this error: "Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

To Reproduce Steps to reproduce the behavior:

  1. Run with interactive: docker run -it mcr.microsoft.com/microsoftgraph/powershell
  2. And send the following command: Connect-Graph

Expected behavior

I can login to Microsoft Grap.

Debug Output

PS /> Connect-Graph -Debug Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other > memory is corrupt. at System.String.IsNullOrEmpty(System.String) at System.Management.Automation.ParameterAttribute.set_ParameterSetName(System.String) at DynamicClass.CallSite.Target(System.Runtime.CompilerServices.Closure, System.Runtime.CompilerServices.CallSite, > > System.String, System.Management.Automation.ExecutionContext) qemu: uncaught target signal 6 (Aborted) - core dumped

Module Version

PS /> Get-Module Microsoft.Graph PS /> Get-Module

ModuleType Version PreRelease Name ExportedCommands


Script 2.2.6 PSReadLine {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove-> PSReadLineKeyHandler, Set-PSReadLineKeyHandler…}

The Get-Module Microsoft.Graph* or Get-Module Microsoft.Graph command has no output at all.

Environment Data

PS /> $PSVersionTable

Name Value


PSVersion 7.3.4 PSEdition Core GitCommitId 7.3.4 OS Linux 5.15.49-linuxkit-pr #1 SMP PREEMPT Thu May 25 07:27:39 UTC 2023 Platform Unix PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0

Additional context

My Environment: Macbook Pro M1 (Apple Silicon) Mac OS 13.4.1 (c) Docker Desktop 4.21.1 (114176)

In the Docker Desktop has 4CPU, 4GB RAM, 20 GB Storage. After the container started, the allocated memory is 1.8GB.

kissferenc avatar Aug 15 '23 06:08 kissferenc