Crash Win32 Chibios1760 + ugfx

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

Crash Win32 Chibios1760 + ugfx

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

Hi

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

      mousemove:
         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

   
   #if GFX_USE_GINPUT && GINPUT_NEED_MOUSE
      priv->mouseenabled = hWndParent ? FALSE : TRUE;
      priv->mouse = (GMouse *)gdriverRegister((const GDriverVMT const *)GMOUSE_DRIVER_VMT, g);
   #endif


Any advise?

Thank you!
Attachments
BugReport.zip
(17.9 KiB) Downloaded 6 times

User avatar
Tectu
Posts: 1224
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Crash Win32 Chibios1760 + ugfx

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

Hi,

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.
https://ugfx.io - 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