BUILD: ERROR: Width (0) and height (40) cannot be <= 0

Any ideas how to fix this?

BUILD: C:\Program Files\Java\jre1.8.0_66\bin\java -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -classpath C:\Program Files\Java\jre1.8.0_66\lib\tools.jar;D:\connectiq\connectiq-sdk-win-1.2.4\bin\monkeybrains.jar; com.garmin.monkeybrains.Monkeybrains -a D:\connectiq\connectiq-sdk-win-1.2.4\bin\api.db -i D:\connectiq\connectiq-sdk-win-1.2.4\bin\api.debug.xml -o D:\RH\REPOS\BigTime\bin\BigTime.prg -z D:\RH\REPOS\BigTime\resources\strings\strings.xml;D:\RH\REPOS\BigTime\resources\settings\settings.xml;D:\RH\REPOS\BigTime\resources\settings\properties.xml;D:\RH\REPOS\BigTime\resources\resources.xml -m D:\RH\REPOS\BigTime\manifest.xml -u D:\connectiq\connectiq-sdk-win-1.2.4\bin\devices.xml -p D:\connectiq\connectiq-sdk-win-1.2.4\bin\projectInfo.xml D:\RH\REPOS\BigTime\source\BigTimeView.mc D:\RH\REPOS\BigTime\source\BigTimeApp.mc -d fenix3_sim

BUILD: ERROR: Width (0) and height (40) cannot be <= 0
BUILD: Complete

Aborting launch due to failed build.
  • I'm guessing it is that you have a layout or drawable definition where a sub-object width is set to zero (possibly implicitly).

    Travis
  • Just remembered I had a similar issue:
    I narrowed it down to the inclusion of a specific character set, eg Cyrillic, in my custom font.
    You can confirm this by excluding character sets one by one until it compiles, then you know which one is the problem.

    I reported this a while ago and submitted the font file for investigation. Haven't heard anything yet, but will try follow up.

    Unfortunately I couldn't solve that one yet.
  • Former Member
    Former Member over 8 years ago
    I have just experienced the same issue and the reason seemed to be related to some fonts charset created by 'Bitmap Font Generator v1.13'. Once removed the font type (SegoeUI Black in my case) the issue is solved.