Under Review
over 1 year ago

Simulator: assertion failed in menucmn.cpp(308) for some devices

Hello,

Trying to run any app in the simulator (so far tried with:

  • an empty app that is created with a new project in VS Code,
  • samples/Input,
  • samples/MenuTest)

for some devices results in an error window from program "simulator", titled "An assertion failed!" saying:

../src/common/menucmn.cpp(308): assert "wxIsStockID(GetId())" failed in SetItemLabel(): A non-stock menu item with an empty label?

clicking Backtrace shows nothing, and buttons "Stop" and "Continue" are shown. If "Continue" is clicked, we get another similar "assertion failed" window, this time saying:

../src/common/stockitem.cpp(219): assert ""Assert failure"" failed in wxGetStockLabel(): invalid stock item ID.

Clicking "Continue" again results in a simulator only showing the Garmin blue triangle icon. Clicking "Stop" obviously stops the simulation.

I tried this on Ubuntu 20.04.6 LTS using SDK versions 6.2.2 and 4.2.4.

I tried the following devices and it only happens on some of them (indicated with "BUG"):

  • epix2pro51mm BUG
  • fenix7 OK
  • fenix7pro BUG
  • fenix7x BUG
  • fr965 OK
  • venusq2m OK

The devices marked "OK" work fine.

Parents
  • I have the same error message, on my 3 different up-to-date Windows 10 machines. (I am using VS Code as IDE)

    Tried removing Fenix 7 from SDK manager then reinstalled Fenix 7, but didn't work.

    It is strange that I can 100% reproduce this error but on other post Brandon said unable to reproduce. Does Windows language matter? I am using Traditional Chinese Windows 10, but neither path of my project nor ConnectIQ\Devices folder contain any Chinese characters, they are all in English.

    Hopefully this error can be reproduced by Garmin soon because I've seen like more than 3 posts about wxWidgets menucmn.cpp error.

Comment
  • I have the same error message, on my 3 different up-to-date Windows 10 machines. (I am using VS Code as IDE)

    Tried removing Fenix 7 from SDK manager then reinstalled Fenix 7, but didn't work.

    It is strange that I can 100% reproduce this error but on other post Brandon said unable to reproduce. Does Windows language matter? I am using Traditional Chinese Windows 10, but neither path of my project nor ConnectIQ\Devices folder contain any Chinese characters, they are all in English.

    Hopefully this error can be reproduced by Garmin soon because I've seen like more than 3 posts about wxWidgets menucmn.cpp error.

Children
No Data