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

Setting breakpoint causing runtime exception #619

Open
patridge opened this issue May 2, 2024 · 0 comments
Open

Setting breakpoint causing runtime exception #619

patridge opened this issue May 2, 2024 · 0 comments
Assignees
Labels

Comments

@patridge
Copy link
Contributor

patridge commented May 2, 2024

Describe the bug
While testing a Meadow.TensorFlow GestureDetector sample, I found that having a breakpoint in my code is causing an exception.

Method idx 0 is greater than number of rows (0) in PPDB MethodDebugInformation table, for method TensorFlow.litemicro.c_api_lite_micro:TfLiteMicroGetModel in '/meadow0/Meadow.TensorFlow.pdb'. Likely a malformed PDB file.
Meadow StdErr: Unrecoverable .NET Runtime error. Meadow will restart in 5 secon
Meadow StdErr: ds

This doesn't appear to happen for me on the same computer and IDE with a new ProjectLab template. So, it may be specific to this Meadow.TensorFlow sample.

If it's helpful, this library includes a .so library file that is referenced via DLLImport calls in C#.

To Reproduce
Steps to reproduce the behavior:

  1. In VS Code, load the GestureDetector sample.
  2. Place a breakpoint in the MeadowApp.cs file, specifically on the first line of Run().
  3. In the Run and Debug activity panel, select a Project Lab board and press the Start Debugging (Play) button.

When the breakpoint would be hit, the Meadow will crash with the above error and never stop in VS Code.

Expected behavior
Breakpoint should be hit and pause execution of the app.

Developer tools (please complete the following information as best as you can):

  • OS and version: macOS Sonoma 14.4.1 on a MacBook Air M2
  • IDE and version: VS Code v1.86.1
  • Meadow extension for IDE version: v1.9.6

Meadow (please complete the following information as best as you can):
Most of these vaues can be found by running meadow device info using the Meadow CLI.

  • Meadow hardware version: Project Lab (v2.?)

Board Information
Model: F7Micro
Hardware version: F7CoreComputeV2
Device name: MeadowF7

Hardware Information
Processor type: STM32F777IIK6
ID: 22-00-32-00-15-50-33-4D-35-34-33-20
Serial number: 206534614D33
Coprocessor type: ESP32
MAC Address -
WiFi: 4C:75:25:D5:2A:90

Firmware Versions
OS: 1.11.0.0
Runtime: 1.11.0.0
Coprocessor: 1.11.0.0
Protocol: 8

@halyssonJr halyssonJr self-assigned this May 7, 2024
@alexischr alexischr self-assigned this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants