We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

iOS Cannot access a disposed object 'TextPreviewDialog' when navigate away then select a different image then add text

This only reproduce on real devices, NOT simulators. Nuget package version 16.3.0.29. The source code is here:
https://github.com/motoko89/sfimageeditortest

Steps:
1. Select an image and navigate to PhotoEditPage which contains SfImageEditor
2. Navigate back from the Page
3. Select another image
4. Add text
5. Click the text to edit

Result: Crash
Cannot access a disposed object.
Object name: 'TextPreviewDialog'.
  at Foundation.NSObject.get_SuperHandle () [0x0004a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.1.0.15/src/Xamarin.iOS/Foundation/NSObject2.cs:456
  at UIKit.UIView.set_Frame (CoreGraphics.CGRect value) [0x00024] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.1.0.15/src/Xamarin.iOS/UIKit/UIView.g.cs:3426
  at Syncfusion.SfImageEditor.iOS.TextPreviewDialog+<>c__DisplayClass3_1.<.ctor>b__0 (System.Object s, UIKit.UIKeyboardEventArgs e) [0x001a5] in <389cd290f367469aaccdfb36d2d56b6a>:0
  at UIKit.UIKeyboard+Notifications+<>c__DisplayClass10_0.b__0 (Foundation.NSNotification notification) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.1.0.15/src/Xamarin.iOS/UIKit/UIKeyboard.g.cs:280
  at Foundation.InternalNSNotificationHandler.Post (Foundation.NSNotification s) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.1.0.15/src/Xamarin.iOS/Foundation/NSNotificationCenter.cs:48
  at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSend_IntPtr(intptr,intptr,intptr)
  at UIKit.UIView.AddSubview (UIKit.UIView view) [0x0001b] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.1.0.15/src/Xamarin.iOS/UIKit/UIView.g.cs:267
  at Syncfusion.SfImageEditor.iOS.TextPreviewDialog.ShowPopUp (System.Boolean animated, System.Action popAnimationFinish) [0x00043] in <389cd290f367469aaccdfb36d2d56b6a>:0
  at Syncfusion.SfImageEditor.iOS.Utils.CreateTextDialog (Syncfusion.SfImageEditor.iOS.Shape SelectedShape, Syncfusion.SfImageEditor.iOS.SfImageEditor imageEditorBase) [0x00032] in <389cd290f367469aaccdfb36d2d56b6a>:0
  at Syncfusion.SfImageEditor.iOS.DrawShapeView.TouchesEnded (Foundation.NSSet touches, UIKit.UIEvent evt) [0x003fa] in <389cd290f367469aaccdfb36d2d56b6a>:0
  at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.1.0.15/src/Xamarin.iOS/UIKit/UIApplication.cs:79
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.1.0.15/src/Xamarin.iOS/UIKit/UIApplication.cs:63
  at RssXamarin.iOS.Application.Main (System.String[] args) [0x00001] in /Users/admin/Documents/RSS-Xamarin/RssXamarin/RssXamarin.iOS/Main.cs:17

5 Replies

JK Jeya Kasipandi Syncfusion Team November 9, 2018 09:20 AM UTC

Hi Hung Ho,

Sorry for the inconvenience,

We are able to reproduce the reported issue at our end. We have updated the patch for this issue which is already reported by you in incident. So, please log on to our support website to check for further updates.

http://www.syncfusion.com/Account/Logon?ReturnUrl=%2fsupport%2fdirecttrac/  

Regards,
Jeya k


RT Roman Tkachev November 11, 2018 01:10 PM UTC

Will it be possible to get the assembly components with the removal of this problem?


JK Jeya Kasipandi Syncfusion Team November 12, 2018 09:04 AM UTC

Hi Roman,

We have created a separate support incident under your account to keep track of this issue and also we have updated the patch for this issue in incident.

Please log on to our support website to check for further updates.

http://www.syncfusion.com/Account/Logon?ReturnUrl=%2fsupport%2fdirecttrac/  

 
Regards,
Jeya k 



DH Derek Hagen November 30, 2018 06:30 AM UTC

I am basically getting the same error.  What is the fix?  We are on 16.3.0.29  Below is the error:

2018-11-29 23:45:16.885 RPTiOS[76624:17028033] System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'TextPreviewDialog'.
  at Foundation.NSObject.get_SuperHandle () [0x0004a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/Foundation/NSObject2.cs:456 
  at UIKit.UIView.set_Frame (CoreGraphics.CGRect value) [0x00024] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/UIKit/UIView.g.cs:3426 
  at Syncfusion.SfImageEditor.iOS.TextPreviewDialog+<>c__DisplayClass3_1.<.ctor>b__0 (System.Object s, UIKit.UIKeyboardEventArgs e) [0x00163] in <389cd290f367469aaccdfb36d2d56b6a>:0 
  at UIKit.UIKeyboard+Notifications+<>c__DisplayClass10_0.b__0 (Foundation.NSNotification notification) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/UIKit/UIKeyboard.g.cs:280 
  at Foundation.InternalNSNotificationHandler.Post (Foundation.NSNotification s) [0x00000] in /Library/Frameworks/Xamarin.iO
S.framework/Versions/12.0.0.15/src/Xamarin.iOS/Foundation/NSNotificationCenter.cs:48 
  at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/UIKit/UIApplication.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/UIKit/UIApplication.cs:63 
  at RPT.iOS.Application.Main (System.String[] args) [0x00002] in D:\src\CC\Source\Dev\Head\RPT\RPT.iOS\Main.cs:19 
The app has been terminated.
Failed to Stop app:  An error occured on client IDB4110776 while executing a reply for topic xvs/idb/4.11.0.776/stop-app
The app has been terminated.


MP Michael Prabhu M Syncfusion Team November 30, 2018 07:04 AM UTC

Hi Derek, 
  
Sorry for the inconvenience, 
  
We can able to reproduce the reported issue at our end and we have fixed the same issue in our updated version 16.3.0.36. Could you please upgrade your product version to 16.3.0.36. 
  
Please get back us, if you have any concern. 
  
Regards, 
Michael 


Loader.
Up arrow icon