xamarin / urho-samples

Samples for the Urho bindings
MIT License
384 stars 491 forks source link

FormSample Crash/Build Issues #15

Closed v534 closed 7 years ago

v534 commented 8 years ago

I am creating a new ticket since adding a comment to issue #10 doesn't seem to reopen it.

I downloaded the latest FormSample files and updated to the latest UrhoSharp.Forms 1.0.557 and Xamarin.Forms 2.2.0.43, but still have the same issues. Do I need to wait for something further?

ISSUES:

  1. Building in release mode fails.
  2. Pressing the back button does not return to the previous page and instead freezes the animation.
  3. Clicking the restart button after updating it to "restartBtn.Clicked += (sender, e) => Navigation.PushAsync(new UrhoPage());" causes the animation to freeze and eventually the following crash:

System.ArgumentException: 'jobject' must not be IntPtr.Zero. Parameter name: jobject at Android.Runtime.JNIEnv.CallObjectMethod (IntPtr jobject, IntPtr jmethod) [0x00010] in /Users/builder/data/lanes/3236/ee215fc9/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:170 at Android.Views.View.get_Context () [0x0002d] in /Users/builder/data/lanes/3236/ee215fc9/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Views.View.cs:4891 at Urho.Forms.AndroidUrhoSurface+d5.MoveNext () [0x000ad] in :0 at --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3236/ee215fc9/source/mono/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Users/builder/data/lanes/3236/ee215fc9/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:201 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/3236/ee215fc9/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:170 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/3236/ee215fc9/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:142 at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in /Users/builder/data/lanes/3236/ee215fc9/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:372 at Urho.Forms.UrhoSurface+d41[TUrhoApplication].MoveNext () [0x0008d] in <filename unknown>:0 at --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3236/ee215fc9/source/mono/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Users/builder/data/lanes/3236/ee215fc9/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:201 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/3236/ee215fc9/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:170 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/3236/ee215fc9/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:142 at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () [0x00000] in /Users/builder/data/lanes/3236/ee215fc9/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:372 at FormsSample.UrhoPage+casync1.MoveNext () [0x00086] in /urho-samples-master/FormsSample/FormsSample/App.cs:84 at --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3236/ee215fc9/source/mono/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 at System.Runtime.CompilerServices.AsyncMethodBuilderCore.m0 (System.Object state) [0x00000] in /Users/builder/data/lanes/3236/ee215fc9/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:994 at Android.App.SyncContext+cAnonStorey0.<>m__0 () [0x00000] in /Users/builder/data/lanes/3236/ee215fc9/source/monodroid/src/Mono.Android/src/Android.App/SyncContext.cs:18 at Java.Lang.Thread+RunnableImplementor.Run () [0x0000b] in /Users/builder/data/lanes/3236/ee215fc9/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:36 at Java.Lang.IRunnableInvoker.n_Run (IntPtr jnienv, IntPtr nativethis) [0x00009] in /Users/builder/data/lanes/3236/ee215fc9/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Java.Lang.IRunnable.cs:71 at at (wrapper dynamic-method) System.Object:baaf141f-1e29-4543-8d4e-0fd5bbe9d9be (intptr,intptr)

EgorBo commented 8 years ago

@v534 1) Building in release mode fails because of "Linker" issue (set it to None and it will be OK) - it's a knonw issue 2-3) the #10 issue is closed, but the fix for it is not in the 1.0.557 package

v534 commented 8 years ago

Thanks @EgorBo! I'll wait for the next release.

v534 commented 8 years ago

Hi @EgorBo can you please release the fix you have already made?

I downloaded the latest FormSample files again and updated to the latest UrhoSharp.Forms 1.0.557 and Xamarin.Forms 2.3.0.49, but still have the same issues (Navigating to UrhoPage() again freezes the urhosurface and eventually crashes, and also back button doesn't work)

Also for the linker issue, I'm not clear about your suggestion for how to "set it to None and it will be OK"

v534 commented 8 years ago

@EgorBo , @migueldeicaza , @CartBlanche - is there anyone that can help get this fix released?

v534 commented 8 years ago

@EgorBo can you please update UrhoSharp.Forms in FormsSample (as you have done for UrhoSharp in FeatureSamples) to resolve these issues?