debugDisposed and debugDuringDeviceUpdate errors during debug

I've got a flutter web app with many different widgets.

Basically there's a sfDatagrid on the left and an hidden sfPdfViewer on the right.

When the user make a double tap on a sfDatagrid's row, if the sfPdfViewer on the right is not yet visible, the main widgets is rebuild and the sfPdfViewer is shown.

Everything works fine into the builded app, but when I test in debug mode, I've got an error as following, the app still hang and I have to stop the app.

════════ Exception caught by scheduler library ═════════════════════════════════
The following assertion was thrown during a scheduler callback:
Assertion failed:
!_debugDisposed
is not true




When the exception was thrown, this was the stack
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 251:49 throw_
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3 assertFailed
packages/flutter/src/rendering/object.dart 2221:13 markNeedsPaint
packages/syncfusion_flutter_datagrid/src/datagrid_widget/widgets/rendering_widget.dart 1324:7 [_onPointerExit]
packages/flutter/src/rendering/mouse_tracker.dart 398:21
dart-sdk/lib/_internal/js_dev_runtime/private/linked_hash_map.dart 21:13 forEach
packages/flutter/src/rendering/mouse_tracker.dart 395:20 _handleDeviceUpdateMouseEvents
packages/flutter/src/rendering/mouse_tracker.dart 278:5 [_handleDeviceUpdate]
packages/flutter/src/rendering/mouse_tracker.dart 359:9
packages/flutter/src/rendering/mouse_tracker.dart 206:9 [_deviceUpdatePhase]
packages/flutter/src/rendering/mouse_tracker.dart 353:5 updateAllDevices
packages/flutter/src/rendering/binding.dart 336:7
packages/flutter/src/scheduler/binding.dart 1143:15 [_invokeFrameCallback]
packages/flutter/src/scheduler/binding.dart 1088:9 handleDrawFrame
packages/flutter/src/scheduler/binding.dart 996:5 [_handleDrawFrame]
lib/_engine/engine/platform_dispatcher.dart 1003:13 invoke
lib/_engine/engine/platform_dispatcher.dart 157:5 invokeOnDrawFrame
lib/_engine/engine.dart 440:45
════════════════════════════════════════════════════════════════════════════════


════════ Exception caught by scheduler library ═════════════════════════════════
Assertion failed:
!_debugDuringDeviceUpdate
is not true


════════════════════════════════════════════════════════════════════════════════


════════ Exception caught by scheduler library ═════════════════════════════════
Assertion failed:
!_debugDuringDeviceUpdate
is not true

I tried in different ways to edit my code, but I can't solve the problem. I also try to make a sample app to reproduce the error to send to you, but I can't reproduce the error in other app.

The error is fired by code at line 959.

I attach to this post my dart code and a screenshot of my app, hoping can help you to suggest me something to check.

This issue make me crazy in the last 4 days, so each help will be appreciated.


Attachment: files_2f5e5d35.zip


6 Replies

SR Sangeetha Raju Syncfusion Team October 19, 2021 01:39 PM UTC

Hi Pietro Beccegato, 
 
Thank you for contacting Syncfusion support. 
  
We have checked the reported issue and considered this as a bug. We will include the changes in our upcoming weekly release which is scheduled to be rolled out on 26th October 2021. Please refer to the following feedback for further follow up 
 
 
We appreciate your patience until then. Please get in touch with us if you would require any further assistance.  
 
Regards, 
Sangeetha Raju. 



RS Renugadevi Sadagoban Syncfusion Team October 28, 2021 05:05 AM UTC

Hi Pietro Beccegato,  
 
Thank you for your patience.  
 
We have resolved the “DebugDisposed and debugDuringDeviceUpdate errors during debug” issue and included the fix in our weekly pub release. Please update datagrid package to 19.3.47 version. You can also refer the following pub link.  
 
 
Please let us know if you require any further assistance.  
 
Regards, 
Sangeetha Raju. 
 



PB Pietro Beccegato replied to Renugadevi Sadagoban October 28, 2021 07:31 AM UTC

Many thanks.

I tested it and it works fine.

Regards

Peter



SR Sangeetha Raju Syncfusion Team October 29, 2021 01:59 PM UTC

Hi Pietro Beccegato,  
 
 
Thank you for your patience.  
 
We have resolved the “DebugDisposed and debugDuringDeviceUpdate errors during debug” issue and included the fix in our weekly pub release. Please update datagrid package to 19.3.47 version. You can also refer the following pub link.  
 
 
Please let us know if you require any further assistance.  
  
Regards, 
Sangeetha Raju. 
 



DO David OGUNDEPO January 17, 2023 10:19 AM UTC

Hello Sangeetha, can I use your assistance with the Datagrid widget?



SP Sangavi Periyannan Syncfusion Team January 17, 2023 12:49 PM UTC

David,

Please include more details about your query.  This would be helpful for us to serve you.


Loader.
Up arrow icon