"Unable to connect to an ANT device; no devices available" spammed to stdout on Linux

The Linux SDK spams "Unable to connect to an ANT device; no devices available" lines to stdout. This makes it difficult to see my own debug prints. Is there a way to disable this somehow?

Note that these are printed to stdout, not stderr. I.e. the same pipe that `System.println`s are printed to.

  • Been wondering the same thing, the simulator doesn't seem to have switches where you can set options such as `--no-ant`.

  • I encountered the same issue. That's boring. Further more, fenix7 series print more verbose message every seconds and that make the screen not-readable:

  • I encountered the same issue. That's boring. Further more, fenix7 series print more verbose message every second and that make the screen not-readable. Don't know whether it has any performance impact on real device.

    ^--- GFX: Forced Flush to enter software mode ----
    GFX_moveto
    SetForegroundFillColor
    SetForegroundColor
    SetBackgroundColor
    GFX_set_tool
    SetForegroundFillColor
    SetBackgroundFillColor
    GFX_set_ftool
    GFX_set_fimage
    GFX_getgtextextent_ex2
    GFX_getgtextextent_ex2
    GFX_moveto
    GFX_get_pixel_format
    GFX_outgtext_ex2
    GFX_set_no_crd_scl
    SetForegroundFillColor
    GFX_whereat
    GFX_get_orgn
    GFX_bitblt_blend
    GFX_get_orgn
    GFX_bitblt_blend
    GFX_get_orgn
    GFX_moveto
    SetForegroundFillColor
    SetForegroundColor
    SetBackgroundColor
    GFX_set_tool
    SetForegroundFillColor
    SetBackgroundFillColor
    GFX_set_ftool
    GFX_set_fimage
    GFX_getgtextextent_ex2
    GFX_getgtextextent_ex2
    GFX_moveto
    GFX_get_pixel_format
    GFX_outgtext_ex2
    GFX_set_no_crd_scl
    SetForegroundFillColor
    GFX_whereat
    GFX_get_orgn
    GFX_bitblt_blend
    GFX_get_orgn
    GFX_bitblt_blend
    GFX_get_orgn
    GFX_moveto
    SetForegroundFillColor
    SetForegroundColor
    SetBackgroundColor
    GFX_set_tool
    SetForegroundFillColor
    SetBackgroundFillColor
    GFX_set_ftool
    GFX_set_fimage
    GFX_getgtextextent_ex2
    GFX_getgtextextent_ex2
    GFX_moveto
    GFX_get_pixel_format
    GFX_outgtext_ex2
    GFX_set_no_crd_scl
    SetForegroundFillColor
    GFX_whereat
    GFX_get_orgn
    GFX_bitblt_blend
    GFX_get_orgn
    GFX_bitblt_blend
    GFX_get_orgn
    GFX_bitblt_blend
    GFX_get_orgn
    GFX_moveto
    SetForegroundFillColor
    SetForegroundColor
    SetBackgroundColor
    GFX_set_tool
    SetForegroundFillColor
    SetBackgroundFillColor
    GFX_set_ftool
    GFX_set_fimage
    GFX_get_pixel_format
    SetForegroundColor
    SetBackgroundColor
    GFX_set_tool
    SetForegroundFillColor
    SetBackgroundFillColor
    GFX_set_ftool
    SetForegroundColor
    SetBackgroundColor
    GFX_set_tool
    SetForegroundFillColor
    SetBackgroundFillColor
    GFX_set_ftool
    GFX_set_fimage
    SaveCachedResource
    GFX_getgtextextent_ex2
    GFX_getgtextextent_ex2
    GFX_moveto
    GFX_get_pixel_format
    GFX_outgtext_ex2
    GFX_set_no_crd_scl
    SetForegroundFillColor
    GFX_whereat
    GFX_get_orgn
    GFX_bitblt_blend
    GFX_get_orgn
    GFX_whereat
    GFX_bitblt_blend
    GFX_get_orgn
    GFX_bitblt_blend
    GFX_get_orgn
    GFX_bitblt_blend
    GFX_get_orgn
    GFX_bitblt_blend
    GFX_get_orgn
    GFX_moveto
    SetForegroundFillColor
    SetForegroundColor
    SetBackgroundColor
    GFX_set_tool
    SetForegroundFillColor
    SetBackgroundFillColor
    GFX_set_ftool
    GFX_set_fimage
    GFX_get_pixel_format
    SetForegroundColor
    SetBackgroundColor
    GFX_set_tool
    SetForegroundFillColor
    SetBackgroundFillColor
    GFX_set_ftool
    SetForegroundColor
    SetBackgroundColor
    GFX_set_tool
    SetForegroundFillColor
    SetBackgroundFillColor
    GFX_set_ftool
    GFX_set_fimage
    GFX_get_pixel_format
    SetForegroundColor
    SetBackgroundColor
    GFX_set_tool
    SetForegroundFillColor
    SetBackgroundFillColor
    GFX_set_ftool
    SetForegroundColor
    SetBackgroundColor
    GFX_set_tool
    SetForegroundFillColor
    SetBackgroundFillColor
    GFX_set_ftool
    GFX_set_fimage
    SaveCachedResource
    GFX_getgtextextent_ex2
    GFX_getgtextextent_ex2
    GFX_moveto
    GFX_get_pixel_format
    GFX_outgtext_ex2
    GFX_set_no_crd_scl
    SetForegroundFillColor
    GFX_whereat
    GFX_get_orgn
    GFX_bitblt_blend
    GFX_get_orgn
    GFX_moveto
    SetForegroundFillColor
    SetForegroundColor
    SetBackgroundColor
    GFX_set_tool
    SetForegroundFillColor
    SetBackgroundFillColor
    GFX_set_ftool
    GFX_set_fimage
    GFX_getgtextextent_ex2
    GFX_getgtextextent_ex2
    GFX_moveto
    GFX_get_pixel_format
    GFX_outgtext_ex2
    GFX_set_no_crd_scl
    SetForegroundFillColor
    GFX_whereat
    GFX_get_orgn
    GFX_bitblt_blend
    GFX_get_orgn

  • You get that on every button press on the fenix7. Just tested it. That is really not helpful when debugging your app to say the least.

    I would file a bug for that.

  • Thanks. In fact I didn't press any button. It continues printing from the start.

  • Perhaps because pressing a button calls onUpdate()? Or pushes a view in my app. 

  • It would be great if Garmin fixed this...

  • Solved with : 

    make run | sed 's/Unable to connect to an ANT device[\n]+//'

  • grep -v "Unable to connect to an ANT device" does the same trick