Bug 1497 - :When going from a view with OpenTK to another view while running in simulator, the app crashes.
Summary: :When going from a view with OpenTK to another view while running in simulato...
Status: CLOSED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 5.0
Hardware: Other Mac OS
: Highest blocker
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2011-10-14 10:31 UTC by Danny
Modified: 2012-01-05 12:21 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
updated OpenTK.dll assembly (277.50 KB, application/octet-stream)
2011-10-15 12:12 UTC, Sebastien Pouliot
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
CLOSED FIXED

Comment 1 Sebastien Pouliot 2011-10-15 11:41:00 UTC
This looks like a regression caused by the fix for bnc #686045 / bxc #1366 / assistly #2687. The timesource is nullified (on stop) but can still be accessed (on suspend).

I'll rebuild a newer OpenTK.dll and attach it to the bug report. Hopefully that will fix your issue and I'll then ensure the fix gets into newer MonoTouch releases.
Comment 2 Sebastien Pouliot 2011-10-15 12:12:06 UTC
Created attachment 703 [details]
updated OpenTK.dll assembly

To use the attached assembly (on top of MonoTouch 5.0) do:
1) backup your /Developer/MonoTouch/usr/lib/mono/2.1/OpenTK.dll and /Developer/MonoTouch/usr/lib/mono/2.1/OpenTK.dll.mdb files
2) copy the attached file to /Developer/MonoTouch/usr/lib/mono/2.1/OpenTK.dll
3) remove the /Developer/MonoTouch/usr/lib/mono/2.1/OpenTK.dll.mdb symbols (they won't match anymore)
4) clean, rebuild and test your application
Comment 3 Sebastien Pouliot 2011-10-15 12:12:43 UTC
Please let me know if this fix the issue (without causing others :-). Thanks
Comment 4 Danny 2011-10-16 08:29:07 UTC
Sebastien,

Your fix of OpenTK.dll has corrected this issue. Per you instructions on comment 2, my application no longer crashes.

On a personal note, I want to thank you and the whole xamarin team for a great product and the fast fix to my issue.

Regards,

Danny
Comment 5 Sebastien Pouliot 2011-10-16 13:39:36 UTC
I'm glad this fixed your issue. I'll make sure newer MT releases contain this fix. 
Thanks for the confirmation!
Comment 6 PJ 2012-01-05 12:20:36 UTC
Tested with MonoTouch sample app GLPaint - GameView. Figured transitioning between the one OpenTK view and the menu (non OpenTK) view is sufficient to test the fix. If the views must be in the same application, let me know and I can re-verify.

MAC 10.7.2
MonoDevelop 2.8.5.1
MonoTouch 5.0.4
Mono 2.10.8
Xcode 4.2.1