Pre loader

java.lang.VerifyError: Expecting a stackmap frame

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

hello all,

when i import a scichart into android studio layout editor , i got these exception, have you ever seen it ?

java.lang.VerifyError: Expecting a stackmap frame at branch target 111
Exception Details:
  Location:
    com/scichart/charting/visuals/layout/LayoutableViewGroup.onLayout_Original(ZIIII)V @25: if_icmpge
  Reason:
    Expected stackmap frame at this location.
  Bytecode:
    0x0000000: 2ab6 004a 3606 1504 1c64 3607 1505 1d64
    0x0000010: 3608 0336 0915 0915 06a2 0056 2a15 09b6
    0x0000020: 004e 3a0a 190a b600 5310 089f 003e 190a
    0x0000030: c100 5599 002b 190a c000 55b9 0059 0100
    0x0000040: 3a0b 190a 190b b400 5e19 0bb4 0061 190b
    0x0000050: b400 6419 0bb4 0067 b600 6ba7 000e 190a
    0x0000060: 0303 1507 1508 b600 6b84 0901 a7ff a9b1
    0x0000070:                                        

    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
    at java.lang.Class.getConstructor0(Class.java:3075)
    at java.lang.Class.getConstructor(Class.java:1825)
    at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:396)
    at org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:172)
    at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:105)
    at com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:186)
    at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:334)
    at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:345)
    at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:245)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
    at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:858)
    at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:834)
    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
    at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:324)
    at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)
    at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:389)
    at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:548)
    at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:533)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966)
    at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:533)
    at com.android.tools.idea.rendering.RenderTask.lambda$inflate$72(RenderTask.java:659)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

(I use the new constraintlayout from android)

Version
all
  • Andrew Burnett-Thompson
    Hi Davy! Official response from the Android team is > “usually this means that there is something wrong with code because of obfuscation + something related to java version – I’ve seen similar messages when I was working with Xamarin binding. never seen such exceptions within Android Studio. ” … We need to know a bit more information from you such as what Java SDK version and whether you are using any special toolsets such as Android Toolchain Jack https://source.android.com/source/jack.html. Anything like that about project configuration that can help us identify the problem. Best regards, Andrew
  • You must to post comments
1
0

Hello andrew thanks for your answer ,

The SDK version for the compilation is 24 and I don’t use special toochain,
the program launch successful, the bug is when I use the layout editor , in android studio with constraintLayout.

  • You must to post comments
1
0

Hello,
We are evaluating the SciChart Android v1.2.0 with SDK version 25.

We get the same compilation error as above (java.lang.VerifyError: Expecting a stackmap frame at branch target 111).

Do you have any revision that supports SDK version 25 or an alternative solution to solve this compilation error ?

Thank you.

  • You must to post comments
0
0

Update: SciChart Android v1.2.0 was released yesterday which includes Android Nougat (SDK 24) support.

SciChart Android v1.2.0 Released

If you have any questions or still experience issues, please let us know!

Best regards,
Andrew

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies