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

Invalid stack map table at instruction index 177: invokespecial Ljava/lang/IllegalArgumentException;<init>(Ljava/lang/String;)V, error: Unexpected attempt to initialize initialized java.lang.IllegalArgumentException. #9504

Open
rupeshhikeup opened this issue Oct 10, 2024 · 7 comments
Assignees
Labels
Area: App Runtime Issues in `libmonodroid.so`. need-info Issues that need more information from the author.

Comments

@rupeshhikeup
Copy link

rupeshhikeup commented Oct 10, 2024

Invalid stack map table at instruction index 177: invokespecial Ljava/lang/IllegalArgumentException;<init>(Ljava/lang/String;)V, error: Unexpected attempt to initialize initialized java.lang.IllegalArgumentException. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 31: invokespecial Lmy/com/softspace/reader/internal/kernel/c;<init>(Z[B)V, error: Unexpected attempt to initialize initialized my.com.softspace.reader.internal.kernel.c. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 497: invokespecial Lcom/discover/mpos/sdk/data/external/ApplicationCandidateData;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZLjava/util/List;)V, error: Unexpected attempt to initialize initialized com.discover.mpos.sdk.data.external.ApplicationCandidateData. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 34: invokespecial Lcom/discover/mpos/sdk/cardreader/config/TerminalConfiguration;<init>(Ljava/lang/String;Lcom/discover/mpos/sdk/cardreader/config/TerminalCapabilitiesQualifiers;Lcom/discover/mpos/sdk/cardreader/config/TerminalType;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V, error: Unexpected attempt to initialize initialized com.discover.mpos.sdk.cardreader.config.TerminalConfiguration. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 176: invokespecial Lcom/mastercard/terminalsdk/utility/ByteArrayWrapper;<init>([B)V, error: Unexpected attempt to initialize initialized com.mastercard.terminalsdk.utility.ByteArrayWrapper. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 1036: invokespecial Ljava/lang/IllegalArgumentException;<init>(Ljava/lang/String;)V, error: Unexpected attempt to initialize initialized java.lang.IllegalArgumentException. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 15: invokespecial Ljava/lang/IllegalArgumentException;<init>(Ljava/lang/String;)V, error: Unexpected attempt to initialize initialized java.lang.IllegalArgumentException. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 109: invokespecial Ljava/lang/IllegalArgumentException;<init>(Ljava/lang/String;)V, error: Unexpected attempt to initialize initialized java.lang.IllegalArgumentException. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 21: invokespecial Ljava/lang/RuntimeException;<init>(Ljava/lang/String;)V, error: Unexpected attempt to initialize initialized java.lang.RuntimeException. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 55: ifne L?, error: Could not assign '[uninitialized new, uninitialized new, int]' to '[Initialized(java.lang.IllegalArgumentException), Initialized(java.lang.IllegalArgumentException), int]'. The stack value at index 0 (from top) with 'uninitialized new' not being assignable to 'Initialized(java.lang.IllegalArgumentException)'. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 52: invokespecial Ljava/lang/IllegalArgumentException;<init>(Ljava/lang/String;)V, error: Unexpected attempt to initialize initialized java.lang.IllegalArgumentException. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 9: invokespecial Ljava/lang/IllegalArgumentException;<init>(Ljava/lang/String;)V, error: Unexpected attempt to initialize initialized java.lang.IllegalArgumentException. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 188: invokespecial Landroid/nfc/TagLostException;<init>(Ljava/lang/String;)V, error: Unexpected attempt to initialize initialized android.nfc.TagLostException. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 175: ifne L?, error: Could not assign '[uninitialized new, uninitialized new, int]' to '[Initialized(com.mastercard.terminalsdk.exception.L1RSPException), Initialized(com.mastercard.terminalsdk.exception.L1RSPException), int]'. The stack value at index 0 (from top) with 'uninitialized new' not being assignable to 'Initialized(com.mastercard.terminalsdk.exception.L1RSPException)'. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 17: invokespecial Lmy/com/softspace/reader/internal/nfc/NfcCommunicatorManager$NfcConnectStatus;<init>(Ljava/lang/String;I)V, error: Unexpected attempt to initialize initialized my.com.softspace.reader.internal.nfc.NfcCommunicatorManager$NfcConnectStatus. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 16: invokespecial Lmy/com/softspace/reader/internal/kernel/PaymentNetwork;<init>(Ljava/lang/String;ILjava/lang/String;)V, error: Unexpected attempt to initialize initialized my.com.softspace.reader.internal.kernel.PaymentNetwork. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 17: invokespecial Lmy/com/softspace/reader/internal/kernel/ConfigurationBaseKernel$Type;<init>(Ljava/lang/String;I)V, error: Unexpected attempt to initialize initialized my.com.softspace.reader.internal.kernel.ConfigurationBaseKernel$Type. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 14: invokespecial Ljava/lang/IllegalArgumentException;<init>(Ljava/lang/String;)V, error: Unexpected attempt to initialize initialized java.lang.IllegalArgumentException. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 42: invokespecial Lmy/com/softspace/reader/internal/kernel/Tags;<init>(Ljava/lang/String;ILjava/lang/String;)V, error: Unexpected attempt to initialize initialized my.com.softspace.reader.internal.kernel.Tags. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 21: invokespecial Lmy/com/softspace/reader/internal/nfc/NfcCommunicator$ConnectStatus;<init>(Ljava/lang/String;I)V, error: Unexpected attempt to initialize initialized my.com.softspace.reader.internal.nfc.NfcCommunicator$ConnectStatus. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 54: ifne L?, error: Could not assign '[Initialized(my.com.softspace.reader.internal.kernel.eftpos.EFTPOSHandler), uninitialized new, uninitialized new, Initialized(java.lang.String[]), Initialized(java.lang.String[]), int]' to '[Initialized(my.com.softspace.reader.internal.kernel.eftpos.EFTPOSHandler), Initialized(java.util.ArrayList), Initialized(java.util.ArrayList), Initialized(java.lang.String[]), Initialized(java.lang.String[]), int]'. The stack value at index 1 (from top) with 'uninitialized new' not being assignable to 'Initialized(java.util.ArrayList)'. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 20: invokespecial Lmy/com/softspace/reader/internal/kernelconfig/Tag$TagType;<init>(Ljava/lang/String;I)V, error: Unexpected attempt to initialize initialized my.com.softspace.reader.internal.kernelconfig.Tag$TagType. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 37: invokespecial Lmy/com/softspace/reader/internal/kernelconfig/Tag$TagClass;<init>(Ljava/lang/String;I)V, error: Unexpected attempt to initialize initialized my.com.softspace.reader.internal.kernelconfig.Tag$TagClass. In later version of R8, the method may be assumed not reachable.
Invalid stack map table at instruction index 17: invokespecial Lmy/com/softspace/reader/internal/nfc/NfcCommunicatorManager$NfcType;<init>(Ljava/lang/String;I)V, error: Unexpected attempt to initialize initialized my.com.softspace.reader.internal.nfc.NfcCommunicatorManager$NfcType. In later version of R8, the method may be assumed not reachable.

Got the above error while running .net android binding project . Please help to solve this issues

@rupeshhikeup
Copy link
Author

Sample_demo.zip

@rupeshhikeup
Copy link
Author

I have attached empty project demo with the issues . Can you please have a look and assist me . Note: the native aar file works fine in native android

@rupeshhikeup
Copy link
Author

Any update on above issues solution

@mattleibow mattleibow transferred this issue from dotnet/maui Nov 11, 2024
@dotnet-policy-service dotnet-policy-service bot added the needs-triage Issues that need to be assigned. label Nov 11, 2024
@jpobst jpobst added Area: App Runtime Issues in `libmonodroid.so`. and removed needs-triage Issues that need to be assigned. labels Nov 15, 2024
@jpobst
Copy link
Contributor

jpobst commented Nov 15, 2024

@jonpryor @jonathanpeppers @grendello
I'm not sure where this error is coming from and who to assign this to. Feel free to assign the right person(s).

@grendello
Copy link
Contributor

This is clearly coming from Java, since invokespecial is a Java instruction, but I can't find the error message in any source I grepped. The error messages suggest R8 is involved, @jonathanpeppers, any idea?

@jonathanpeppers
Copy link
Member

@rupeshhikeup the error above looks like a build error, coming from the <D8/> or <R8/> task.

I tried and got no build errors:

> dotnet build -bl "D:\Downloads\Sample_demo (1)\Sample_demo\Sample\Sample.csproj"
...
Build succeeded with 235 warning(s) in 29.0s

If this command is failing for you, can you add -bl and share the msbuild.binlog file here? https://aka.ms/binlog

@jonathanpeppers jonathanpeppers added the need-info Issues that need more information from the author. label Nov 18, 2024
Copy link

Hi @rupeshhikeup. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@jpobst jpobst added this to the .NET 9 Servicing milestone Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: App Runtime Issues in `libmonodroid.so`. need-info Issues that need more information from the author.
Projects
None yet
Development

No branches or pull requests

5 participants