Page 1 of 1

[REACT] Crash when use listener: eventMouseOver, scheduleMouseMove, scheduleMouseOut

Posted: Thu Sep 29, 2022 10:33 am
by jungo

Hi Bryntum team, I am developing a feature and based on this introduction: https://github.com/bryntum/support/issues/2162
After a few actions like Add event, drag and drop, I get this error.
Can you help me?

crash_mouseover.jpg
crash_mouseover.jpg (92.28 KiB) Viewed 267 times

Re: [REACT] Crash when use listener: eventMouseOver, scheduleMouseMove, scheduleMouseOut

Posted: Thu Sep 29, 2022 11:07 am
by mats

Can you please share your code?


Re: [REACT] Crash when use listener: eventMouseOver, scheduleMouseMove, scheduleMouseOut

Posted: Fri Sep 30, 2022 5:00 am
by jungo

@mats. This is my sample code. Try drag and drop any event a few times (it will be lost when you drag but it's not an error, just my code sample)

bryntum-demo.zip
(2.39 MiB) Downloaded 29 times

Re: [REACT] Crash when use listener: eventMouseOver, scheduleMouseMove, scheduleMouseOut

Posted: Fri Sep 30, 2022 5:00 pm
by mats

Hard to give any general advice, but it should be fairly easy to debug if you set a breakpoint at the crash and try to see what's not working. Looks like your code makes a 'null' entry appear in an internal map we use.