Crash Win32 Chibios1760 + ugfx

Discussions and support about ChibiOS/RT, the free embedded RTOS.
Posts: 2
Joined: Thu Jul 20, 2017 4:06 pm
Been thanked: 1 time

Crash Win32 Chibios1760 + ugfx

Postby cryptobeat » Thu Jul 20, 2017 4:22 pm


I'm getting crash running under Simulator Chibios 1760 + ugfx. Works fine under Chibios 1615 + ugfx

Please see attached project.

Crash happens inside this file: gdisp_lld_Win32.c:

Code: Select all

         if (priv->capfn) ///////capfn must be null but under 1760 it 's not
            priv->capfn(hWnd, g, btns, (coord_t)LOWORD(lParam), (coord_t)HIWORD(lParam));

It crashes because it looks like mouse structure initialization overruns the memory in here setting value of the capfn in mouse structure

Code: Select all

      priv->mouseenabled = hWndParent ? FALSE : TRUE;
      priv->mouse = (GMouse *)gdriverRegister((const GDriverVMT const *)GMOUSE_DRIVER_VMT, g);

Any advise?

Thank you!
(17.9 KiB) Downloaded 57 times

User avatar
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland

Re: Crash Win32 Chibios1760 + ugfx

Postby Tectu » Fri Aug 25, 2017 3:26 pm


This looks like a pure µGFX problem - I don't see any relation to ChibiOS here. I'd recommend you to post this on the µGFX forum. - Embedded display and touchscreen library providing a full GUI Toolkit with full ChibiOS integration.

Return to “ChibiOS/RT”

Who is online

Users browsing this forum: No registered users and 1 guest