{"id":25621706,"url":"https://github.com/thecodetraveler/invokeonmainthreadasync_repro","last_synced_at":"2025-08-07T17:57:00.103Z","repository":{"id":68231090,"uuid":"194332558","full_name":"TheCodeTraveler/InvokeOnMainThreadAsync_Repro","owner":"TheCodeTraveler","description":"Reproduction sample for Xamarin.Forms.InvokeOnMainThreadAsync","archived":false,"fork":false,"pushed_at":"2019-07-16T17:06:40.000Z","size":322,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T05:31:21.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheCodeTraveler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-28T20:51:25.000Z","updated_at":"2021-02-01T20:26:02.000Z","dependencies_parsed_at":"2023-03-11T02:56:56.656Z","dependency_job_id":null,"html_url":"https://github.com/TheCodeTraveler/InvokeOnMainThreadAsync_Repro","commit_stats":null,"previous_names":["thecodetraveler/invokeonmainthreadasync_repro"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTraveler%2FInvokeOnMainThreadAsync_Repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTraveler%2FInvokeOnMainThreadAsync_Repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTraveler%2FInvokeOnMainThreadAsync_Repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTraveler%2FInvokeOnMainThreadAsync_Repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheCodeTraveler","download_url":"https://codeload.github.com/TheCodeTraveler/InvokeOnMainThreadAsync_Repro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240155294,"owners_count":19756617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-22T09:44:11.958Z","updated_at":"2025-02-22T09:44:12.548Z","avatar_url":"https://github.com/TheCodeTraveler.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InvokeOnMainThreadAsync_Repro\nReproduction sample for Xamarin.Forms.InvokeOnMainThreadAsync\n\n**Update**\n\n[This issue](https://github.com/xamarin/Xamarin.Forms/issues/6705) has been fixed in Xamarin.Forms v4.2.0.608146-pre1.\n\n## Reproduction Steps, iOS\n\n1. Open `InvokeOnMainThreadAsync_Repro.sln` in Visual Studio or Visual Studio for Mac\n2. Build/Deploy `InvokeOnMainThreadAsync_Repro.iOS` to an iOS Device or Simulator\n3. Tap the Button titled `No Crash`\n4. Confirm the animation completes successfully\n5. Tap the Button titled `Crash1`\n6. Confirm the app crashes with `NullReferenceException`\n7. Build/Deploy `InvokeOnMainThreadAsync_Repro.iOS` to an iOS Device or Simulator\n8. Tap the Button titled `Crash2`\n9. Confirm the app crashes with `NullReferenceException`\n\n## Reproduction Steps, Android\n\n1. Open `InvokeOnMainThreadAsync_Repro.sln` in Visual Studio or Visual Studio for Mac\n2. Build/Deploy `InvokeOnMainThreadAsync_Repro.Android` to an iOS Device or Simulator\n3. Tap the Button titled `No Crash`\n4. Confirm the animation completes successfully\n5. Tap the Button titled `Crash1`\n6. Confirm the app crashes with `NullReferenceException`\n7. Build/Deploy `InvokeOnMainThreadAsync_Repro.Android` to an iOS Device or Simulator\n8. Tap the Button titled `Crash2`\n9. Confirm the app crashes with `NullReferenceException`\n\n\n![](https://user-images.githubusercontent.com/13558917/60371567-7488ea80-99ae-11e9-8228-a1d8dcee6bc9.gif)\n\n## Environment\n\n=== Visual Studio Enterprise 2019 for Mac (Preview) ===\n\nVersion 8.2 Preview (8.2 build 874)\nInstallation UUID: cc9e7f9a-b3f2-4071-84c4-dd78154d98de\n\tGTK+ 2.24.23 (Raleigh theme)\n\tXamarin.Mac 5.14.0.83 (d16-2 / f08d4e3e)\n\n\tPackage version: 600000296\n\n=== Mono Framework MDK ===\n\nRuntime:\n\tMono 6.0.0.296 (2019-02/1e9f3bfbc5a) (64-bit)\n\tPackage version: 600000296\n\n=== NuGet ===\n\nVersion: 5.1.0.6013\n\n=== .NET Core ===\n\nRuntime: /usr/local/share/dotnet/dotnet\nRuntime Versions:\n\t3.0.0-preview6-27804-01\n\t3.0.0-preview5-27626-15\n\t3.0.0-preview3-27503-5\n\t3.0.0-preview-27324-5\n\t3.0.0-preview-27122-01\n\t2.2.4\n\t2.2.0\n\t2.2.0-preview3-27014-02\n\t2.1.9\n\t2.1.8\n\t2.1.6\n\t2.1.2\n\t2.1.1\n\t2.0.6\n\t2.0.5\n\t1.1.10\n\t1.0.13\nSDK: /usr/local/share/dotnet/sdk/3.0.100-preview6-012264/Sdks\nSDK Versions:\n\t3.0.100-preview6-012264\n\t3.0.100-preview5-011568\n\t2.2.203\n\t2.1.505\nMSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.0.0/lib/mono/msbuild/Current/bin/Sdks\n\n=== Xamarin.Profiler ===\n\nVersion: 1.6.10\nLocation: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler\n\n=== Updater ===\n\nVersion: 11\n\n=== Apple Developer Tools ===\n\nXcode 10.2.1 (14490.122)\nBuild 10E1001\n\n=== Xamarin Designer ===\n\nVersion: 16.2.0.325\nHash: f10cfbf83\nBranch: remotes/origin/d16-2\nBuild date: 2019-06-19 19:00:46 UTC\n\n=== Xamarin.Android ===\n\nVersion: 9.4.0.34 (Visual Studio Enterprise)\nCommit: xamarin-android/d16-2/7cce305\nAndroid SDK: /Users/bramin/Library/Android/sdk\n\tSupported Android versions:\n\t\t6.0 (API level 23)\n\t\t7.0 (API level 24)\n\t\t7.1 (API level 25)\n\t\t8.0 (API level 26)\n\t\t8.1 (API level 27)\n\nSDK Tools Version: 26.1.1\nSDK Platform Tools Version: 28.0.2\nSDK Build Tools Version: 28.0.3\n\nBuild Information: \nMono: mono/mono/2019-02@c6edaa62f94\nJava.Interop: xamarin/java.interop/d16-2@b2b2610\nLibZipSharp: grendello/LibZipSharp/d16-2@caa0c74\nLibZip: nih-at/libzip/rel-1-5-1@b95cf3f\nProGuard: xamarin/proguard/master@905836d\nSQLite: xamarin/sqlite/3.27.1@8212a2d\nXamarin.Android Tools: xamarin/xamarin-android-tools/master@4f717b6\n\n=== Microsoft Mobile OpenJDK ===\n\nJava SDK: /Users/bramin/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_8.0.25\n1.8.0-25\nAndroid Designer EPL code available here:\nhttps://github.com/xamarin/AndroidDesigner.EPL\n\n=== Android Device Manager ===\n\nVersion: 1.2.0.58\nHash: d03e3ea\nBranch: remotes/origin/d16-2\nBuild date: 2019-06-19 16:30:22 UTC\n\n=== Xamarin.Mac ===\n\nVersion: 5.14.0.91 (Visual Studio Enterprise)\nHash: 2f1cc7bb\nBranch: d16-2\nBuild date: 2019-06-07 02:49:23-0400\n\n=== Xamarin.iOS ===\n\nVersion: 12.14.0.91 (Visual Studio Enterprise)\nHash: 2f1cc7bb\nBranch: d16-2\nBuild date: 2019-06-07 02:49:22-0400\n\n=== Xamarin Inspector ===\n\nVersion: 1.4.3\nHash: db27525\nBranch: 1.4-release\nBuild date: Mon, 09 Jul 2018 21:20:18 GMT\nClient compatibility: 1\n\n=== Build Information ===\n\nRelease ID: 802000874\nGit revision: e57770efe0d2b92ade1e1b75e52731614e5f9487\nBuild date: 2019-06-25 19:43:32+00\nBuild branch: release-8.2-preview2\nXamarin extensions: a74fb3eb8717fbcb82500b3a107694ad5185aa48\n\n=== Operating System ===\n\nMac OS X 10.14.5\nDarwin 18.6.0 Darwin Kernel Version 18.6.0\n    Thu Apr 25 23:16:27 PDT 2019\n    root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64\n\n=== Enabled user installed extensions ===\n\nNuGet Package Management Extensions 0.19\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodetraveler%2Finvokeonmainthreadasync_repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodetraveler%2Finvokeonmainthreadasync_repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodetraveler%2Finvokeonmainthreadasync_repro/lists"}