vurtun / nuklear

A single-header ANSI C gui library
13.68k stars 1.1k forks source link

nk_tt__rasterize_sorted_edges: Assertion failure z->ey >= scan_y_top #219

Closed ewmailing closed 7 years ago

ewmailing commented 8 years ago

I am trying to port my program to Raspberry Pi 2 (Raspbian Linux which is a hard-float offshoot of Debian). My program works on Mac (x86_64), Windows (x86_64), Linux (x86_64, Ubuntu 12.04, SteamOS), iOS (armv7).

I'm tripping up the assertion failure for z->ey >= scan_y_top on line 8193. This is during my call to nk_sdl_font_stash_end(). I load the Roboto fonts right before this.

Any ideas what I should be looking for to debug this? I'm surprised I'm hitting this since there isn't really any platform specific code in Nuklear and I've already successfully run armv7 through iOS and already successfully run Linux via Ubuntu & SteamOS (both Debian offshoots). Is there a specific value that is depended on from the SDL binding? That's my best guess to where any platform difference may be coming from.

Thanks

mburakov commented 5 years ago

I've just hit the same issue in Android app (arm64 build). The same code works perfectly fine on linux PC.

It breaks for me with the same assert when using Roboto font: Abort message: '.../nuklear.h:11845: void nk_tt__rasterize_sorted_edges(...): assertion "z->ey >= scan_y_top" failed'

But if I bake DroidSans, then everything works flawlessly. Thus I assume this is something specific to Roboto.

Is there anything I can post/attach to help fixing this?