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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

140832 Nov 9,2018 01:19 AM UTC Nov 30,2018 07:04 AM UTC Xamarin.Forms 5
loading
Tags: SfImageEditor
Hung Ho
Asked On November 9, 2018 01:19 AM UTC

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

Jeya Kasipandi [Syncfusion]
Replied On 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

Roman Tkachev
Replied On November 11, 2018 01:10 PM UTC

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

Jeya Kasipandi [Syncfusion]
Replied On 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 


Derek Hagen
Replied On 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.

Michael Prabhu M [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;