Illegal Frame Error. Stack Problems. Sim-Crash at DND.

In the Console when I set the running Simulator in the dnd-mode

Error: Illegal Frame Error
Details: Failed invoking <symbol>
Stack:

And in the Error-Log:

!ENTRY org.eclipse.debug.core 4 125 2020-09-10 08:11:07.050
!MESSAGE Error logged from Debug Core:
!STACK 0
java.io.IOException: Pipe broken
    at java.io.PipedInputStream.read(Unknown Source)
    at java.io.PipedInputStream.read(Unknown Source)
    at java.io.BufferedInputStream.read1(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
    at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
    at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
    at sun.nio.cs.StreamDecoder.read(Unknown Source)
    at java.io.InputStreamReader.read(Unknown Source)
    at java.io.Reader.read(Unknown Source)
    at org.eclipse.debug.internal.core.OutputStreamMonitor.internalRead(OutputStreamMonitor.java:159)
    at org.eclipse.debug.internal.core.OutputStreamMonitor.read(OutputStreamMonitor.java:134)
    at java.lang.Thread.run(Unknown Source)

The same with SDK Version 3.1 and 3.2. I often have a TimeOut Message.

Thanks

More Infos

Thats too complicated for me. I can't remember that I changed anything important. But I have a WatchFace in the store and want to support it also in the future...

Thank you

And the Sim crashes when set the running watch to DND...

  • In the Console when I set the running Simulator in the dnd-mode

    Could you provide some additional information? It sounds like you are seeing this error when you toggle the Simulator > Settings > Do Not Disturb menu item. Is that correct? Can you reproduce this with one of the sample apps, or maybe a slightly modified sample app?

    This all seems very strange because the Do Not Disturb menu item doesn't do anything that directly affects the app or the plugin. It just sets a flag internally that indicates the state, and then that information can be queried via the DeviceSettings.doNotDisturb field.

    I wrote up a quick test app and I can verify the value of the field changes based on the menu selection. I do not see an app crash or the unexpected disconnect from the plugin that you show.

  • Hi


    Yes, in the Sim clicking Dnd

    It works with my other smaller wf. And also when disable all the dnd stuff in my actual wf with the problems...

    So its really crazy.

    In the beginning of my code i check if the dnd flag is set . If not, the code for the rest will run. Just a If question. The rest of the code are many lines, because I draw everthing by myself. No PNG or so. Is that probably the problem. Its about 1200 lines of code.

    The size is about 70 KB in the simulator.

    Right now I have published a version without all the dnd stuff, so that I can check that problem.

    Thanks so far.

    Regards

    Michael

  • I'd say it's not just turning on DND, but something in your code where you run different code when it's set.  Try adding some println calls in your "DND is on" code to see if you can narrow down where this is occurring.

  • Hi

    After each line I already made a printline and it works fine. Where does the code jump after the onupdate()?

    if (DevStat.doNotDisturb == true) then

    the 3 lines of code. 3 times drawing a circle.

    } else {

    the rest of the code.

    }

  • you'll be falling through to whatever is outside the else.

    What happens if after your 3 lines of DND code you do a return; ?

  • I will return; you a big Thank You. It works...

    But why??

  • Something outside your else block is thinking something is setup inside the else block is my guess