Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS: PushPopupAsync() crashes in Release mode #9

Closed
iupchris10 opened this issue Mar 24, 2016 · 18 comments
Closed

iOS: PushPopupAsync() crashes in Release mode #9

iupchris10 opened this issue Mar 24, 2016 · 18 comments
Assignees
Labels

Comments

@iupchris10
Copy link

PushPopupAsync() works fine in Debug mode, both in the simulator and on the device.

However, when I change the app to "Release" mode, and deploy to a device, attempting to display a popup crashes the app.

I am including a sample project via Dropbox demonstrating this issue. Open the solution, switch the build to "Release" and deploy to a device, then tap the "Show Popup" button to crash.

Sample project:
https://www.dropbox.com/s/y8mkklmknn89lp9/PopupTest.zip?dl=0

@iupchris10
Copy link
Author

My suspicion is that the Xamarin Linker is stripping some code out at run-time, but I can't be sure.

@rotorgames
Copy link
Owner

@iupchris10 Hey. This is an Android or ios?

@iupchris10
Copy link
Author

Sorry - iOS only.

@iupchris10 iupchris10 changed the title PushPopupAsync() crashes in Release mode iOS: PushPopupAsync() crashes in Release mode Mar 24, 2016
@rotorgames
Copy link
Owner

@iupchris10 Say you use Rg.Plugins.Popup.IOS.Popup.Init (); in AppDelegate?

Write me please this information.
Xamarin.IOS Version
Xamarin Studion or Visual Studion version
IOS SDK version
Device ios version.

@iupchris10
Copy link
Author

Xamarin Forms 2.0.0.6482
Xaramin iOS 9.4.1.25
Xamarin Studio 5.10.2
iOS SDK 9.2
Device iPhone 6 Plus (9.2.1)

@iupchris10
Copy link
Author

Yes I have:
Rg.Plugins.Popup.IOS.Popup.Init(); // Init Popup

@rotorgames
Copy link
Owner

@iupchris10 Try to include Use the LLVM optimizing compiler in release mode.

@iupchris10
Copy link
Author

Okay I will try that.

This is interesting... I'm able to get this error debugging on the device if I change the linker behavior to "Link All". It seems like it's not preserving the default constructor...

screen shot 2016-03-24 at 2 21 55 pm

@iupchris10
Copy link
Author

Enabling LLVM optimizer does not fix the issue, unfortunately.

@rotorgames
Copy link
Owner

This is interesting... I'm able to get this error debugging on the device if I change the linker behavior to "Link All". It seems like it's not preserving the default constructor...

Maybe it's different errors.

I already knew about this error, but could not repeat it.

If I have made changes in a separate branch on github, you can test on your computer?

@rotorgames rotorgames added the bug label Mar 25, 2016
@rotorgames rotorgames self-assigned this Mar 25, 2016
@rotorgames
Copy link
Owner

@iupchris10 Test this pre-release version, and let me know the results. Thank you.

https://www.nuget.org/packages/Rg.Plugins.Popup/0.0.14-pre1

@iupchris10
Copy link
Author

Yes, I will give this a try. Thanks.

@rotorgames
Copy link
Owner

@iupchris10 sorry, I'm not very good in speaking English. The issue is resolved or not ?

@iupchris10
Copy link
Author

No. I have yet to try the download.

@rotorgames
Copy link
Owner

@iupchris10 Good. As soon as you will have the results, write to me. Thank you.

@iupchris10
Copy link
Author

I tested on a device in "Release" mode. It does not crash anymore. The bug appears to be fixed. :) 👍

@rotorgames
Copy link
Owner

Thank you very much for your help. I released the stable release to fix this error. You can be updated to v0.0.15. Thank you.

@kbiasci
Copy link

kbiasci commented Jul 24, 2017

Hi guys, I have the same problem on UWP on Windows 10 desktop and mobile.
It crashes in anything but debug.
Bizarelly it works fine for Windows 8.1 mobile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants