Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mono][Android] Unhandled Exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') #54913

Open
Tracked by #44661
fanyang-mono opened this issue Jun 29, 2021 · 3 comments

Comments

@fanyang-mono
Copy link
Member

Failed test:

  • GC/LargeMemory/API/gc/gettotalmemory/gettotalmemory.sh

Full log

      06-21 22:24:56.833 19237 19255 I DOTNET  : MonoRunner initialize,, entryPointLibName=gettotalmemory.dll
      06-21 22:24:56.833 19237 19255 D DOTNET  : file_path: /data/user/0/net.dot.GC_LargeMemory/files/runtimeconfig.bin
      06-21 22:24:56.835 19237 19255 D DOTNET  : assembly_preload_hook: System.Private.CoreLib (null) /data/user/0/net.dot.GC_LargeMemory/files
      06-21 22:24:56.854 19237 19255 D DOTNET  : assembly_preload_hook: gettotalmemory.dll (null) /data/user/0/net.dot.GC_LargeMemory/files
      06-21 22:24:56.854 19237 19255 D DOTNET  : Executable: gettotalmemory.dll
      06-21 22:24:56.854 19237 19255 D DOTNET  : assembly_preload_hook: System.Runtime  /data/user/0/net.dot.GC_LargeMemory/files
      06-21 22:24:56.854 19237 19255 D DOTNET  : assembly_preload_hook: memcheck  /data/user/0/net.dot.GC_LargeMemory/files
      06-21 22:24:56.854 19237 19255 D DOTNET  : assembly_preload_hook: System.Console  /data/user/0/net.dot.GC_LargeMemory/files
      06-21 22:24:56.914 19237 19255 E mono    : 
      06-21 22:24:56.914 19237 19255 E mono    : Unhandled Exception:
      06-21 22:24:56.914 19237 19255 E mono    : System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
      06-21 22:24:56.914 19237 19255 E mono    :    at System.Array.InternalArray__IReadOnlyList_get_Item[String](Int32 index) in System.Private.CoreLib.dll:token 0x600011c+0x9
      06-21 22:24:56.914 19237 19255 E mono    :    at MemCheck.ParseSizeMBArgument(IReadOnlyList`1 args) in memcheck.dll:token 0x6000007+0x33
      06-21 22:24:56.914 19237 19255 E mono    :    at MemCheck.ParseSizeMBAndLimitByAvailableMem(IReadOnlyList`1 args) in memcheck.dll:token 0x6000006+0x0
      06-21 22:24:56.914 19237 19255 E mono    :    at GetTotalMemoryTest.Main(String[] args) in gettotalmemory.dll:token 0x6000003+0x0
      06-21 22:24:56.914 19237 19255 E DOTNET  : UnhandledException: System.ArgumentOutOfRangeException Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')    at System.Array.InternalArray__IReadOnlyList_get_Item[String](Int32 index) in System.Private.CoreLib.dll:token 0x600011c+0x9
      06-21 22:24:56.914 19237 19255 E DOTNET  :    at MemCheck.ParseSizeMBArgument(IReadOnlyList`1 args) in memcheck.dll:token 0x6000007+0x33
      06-21 22:24:56.914 19237 19255 E DOTNET  :    at MemCheck.ParseSizeMBAndLimitByAvailableMem(IReadOnlyList`1 args) in memcheck.dll:token 0x6000006+0x0
      06-21 22:24:56.914 19237 19255 E DOTNET  :    at GetTotalMemoryTest.Main(String[] args) in gettotalmemory.dll:token 0x6000003+0x0
      06-21 22:24:56.970  1792 15506 I ActivityManager: Process net.dot.GC_LargeMemory (pid 19237) has died: fore FGS 
      06-21 22:24:56.971  1792 15506 W ActivityManager: Crash of app net.dot.GC_LargeMemory running instrumentation ComponentInfo{net.dot.GC_LargeMemory/net.dot.MonoRunner}
      06-21 22:24:56.971  1792 15506 I ActivityManager: Force stopping net.dot.GC_LargeMemory appid=10144 user=0: finished inst
      06-21 22:24:56.972  1792 18653 W Binder  : Outgoing transactions from this process must be FLAG_ONEWAY
      06-21 22:24:56.972  1792 18653 W Binder  : java.lang.Throwable
      06-21 22:24:56.972  1792 18653 W Binder  : 	at android.os.BinderProxy.transact(BinderProxy.java:480)
      06-21 22:24:56.972  1792 18653 W Binder  : 	at android.app.IInstrumentationWatcher$Stub$Proxy.instrumentationFinished(IInstrumentationWatcher.java:205)
      06-21 22:24:56.972  1792 18653 W Binder  : 	at com.android.server.am.InstrumentationReporter$MyThread.run(InstrumentationReporter.java:86)
      06-21 22:24:56.974 19227 19227 D AndroidRuntime: Shutting down VM
@fanyang-mono fanyang-mono added this to the 7.0.0 milestone Jun 29, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Jun 29, 2021
@ghost
Copy link

ghost commented Jun 29, 2021

Tagging subscribers to 'arch-android': @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

Issue Details

Failed test:

  • GC/LargeMemory/API/gc/gettotalmemory/gettotalmemory.sh

Full log

      06-21 22:24:56.833 19237 19255 I DOTNET  : MonoRunner initialize,, entryPointLibName=gettotalmemory.dll
      06-21 22:24:56.833 19237 19255 D DOTNET  : file_path: /data/user/0/net.dot.GC_LargeMemory/files/runtimeconfig.bin
      06-21 22:24:56.835 19237 19255 D DOTNET  : assembly_preload_hook: System.Private.CoreLib (null) /data/user/0/net.dot.GC_LargeMemory/files
      06-21 22:24:56.854 19237 19255 D DOTNET  : assembly_preload_hook: gettotalmemory.dll (null) /data/user/0/net.dot.GC_LargeMemory/files
      06-21 22:24:56.854 19237 19255 D DOTNET  : Executable: gettotalmemory.dll
      06-21 22:24:56.854 19237 19255 D DOTNET  : assembly_preload_hook: System.Runtime  /data/user/0/net.dot.GC_LargeMemory/files
      06-21 22:24:56.854 19237 19255 D DOTNET  : assembly_preload_hook: memcheck  /data/user/0/net.dot.GC_LargeMemory/files
      06-21 22:24:56.854 19237 19255 D DOTNET  : assembly_preload_hook: System.Console  /data/user/0/net.dot.GC_LargeMemory/files
      06-21 22:24:56.914 19237 19255 E mono    : 
      06-21 22:24:56.914 19237 19255 E mono    : Unhandled Exception:
      06-21 22:24:56.914 19237 19255 E mono    : System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
      06-21 22:24:56.914 19237 19255 E mono    :    at System.Array.InternalArray__IReadOnlyList_get_Item[String](Int32 index) in System.Private.CoreLib.dll:token 0x600011c+0x9
      06-21 22:24:56.914 19237 19255 E mono    :    at MemCheck.ParseSizeMBArgument(IReadOnlyList`1 args) in memcheck.dll:token 0x6000007+0x33
      06-21 22:24:56.914 19237 19255 E mono    :    at MemCheck.ParseSizeMBAndLimitByAvailableMem(IReadOnlyList`1 args) in memcheck.dll:token 0x6000006+0x0
      06-21 22:24:56.914 19237 19255 E mono    :    at GetTotalMemoryTest.Main(String[] args) in gettotalmemory.dll:token 0x6000003+0x0
      06-21 22:24:56.914 19237 19255 E DOTNET  : UnhandledException: System.ArgumentOutOfRangeException Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')    at System.Array.InternalArray__IReadOnlyList_get_Item[String](Int32 index) in System.Private.CoreLib.dll:token 0x600011c+0x9
      06-21 22:24:56.914 19237 19255 E DOTNET  :    at MemCheck.ParseSizeMBArgument(IReadOnlyList`1 args) in memcheck.dll:token 0x6000007+0x33
      06-21 22:24:56.914 19237 19255 E DOTNET  :    at MemCheck.ParseSizeMBAndLimitByAvailableMem(IReadOnlyList`1 args) in memcheck.dll:token 0x6000006+0x0
      06-21 22:24:56.914 19237 19255 E DOTNET  :    at GetTotalMemoryTest.Main(String[] args) in gettotalmemory.dll:token 0x6000003+0x0
      06-21 22:24:56.970  1792 15506 I ActivityManager: Process net.dot.GC_LargeMemory (pid 19237) has died: fore FGS 
      06-21 22:24:56.971  1792 15506 W ActivityManager: Crash of app net.dot.GC_LargeMemory running instrumentation ComponentInfo{net.dot.GC_LargeMemory/net.dot.MonoRunner}
      06-21 22:24:56.971  1792 15506 I ActivityManager: Force stopping net.dot.GC_LargeMemory appid=10144 user=0: finished inst
      06-21 22:24:56.972  1792 18653 W Binder  : Outgoing transactions from this process must be FLAG_ONEWAY
      06-21 22:24:56.972  1792 18653 W Binder  : java.lang.Throwable
      06-21 22:24:56.972  1792 18653 W Binder  : 	at android.os.BinderProxy.transact(BinderProxy.java:480)
      06-21 22:24:56.972  1792 18653 W Binder  : 	at android.app.IInstrumentationWatcher$Stub$Proxy.instrumentationFinished(IInstrumentationWatcher.java:205)
      06-21 22:24:56.972  1792 18653 W Binder  : 	at com.android.server.am.InstrumentationReporter$MyThread.run(InstrumentationReporter.java:86)
      06-21 22:24:56.974 19227 19227 D AndroidRuntime: Shutting down VM
Author: fanyang-mono
Assignees: -
Labels:

area-GC-mono, os-android

Milestone: 7.0.0

@fanyang-mono
Copy link
Member Author

fanyang-mono commented Jun 29, 2021

This one seems to be an edge case. Thus, assign Milestone to .NET 7.

@fanyang-mono fanyang-mono removed the untriaged New issue has not been triaged by the area owner label Jun 29, 2021
@steveisok
Copy link
Member

@fanyang-mono Do you anticipate being able to fix this for the 7.0 milestone?

@steveisok steveisok modified the milestones: 7.0.0, 8.0.0 Aug 5, 2022
@steveisok steveisok modified the milestones: 8.0.0, Future Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants