jmpessoa / lazandroidmodulewizard

LAMW: Lazarus Android Module Wizard: Form Designer and Components development model!
251 stars 83 forks source link

app crash on create second form #384

Open mirco975 opened 3 years ago

mirco975 commented 3 years ago

if(AndroidModule2 = nil) then begin gApp.CreateForm(TAndroidModule2, AndroidModule2);

  AndroidModule2.InitShowing(gApp); <-- crash here

end else begin AndroidModule2.Show; end;

logcat device JNI DETECTED ERROR IN APPLICATION: use of invalid jobject 0xffd0302c

gradle 6.8.3 or 6.6.1 android sdk 25 ndk 22

WayneSherman commented 3 years ago

Forum Reference: https://forum.lazarus.freepascal.org/index.php/topic,54916.0.html

LoganTennis commented 3 years ago

I guess, the question is not what is the work around, but why is it crashing now and not before? Does that not mean that a bug has been introduced?

jmpessoa commented 3 years ago

" why is it crashing now and not before?"

Because Android CHANGED (about safety....)!!!

jmpessoa commented 3 years ago

Hi, mirco975

About: "JNI DETECTED ERROR IN APPLICATION: use of invalid jobject 0xffd0302c"

We are investigating this issue...

Thank you!

jmpessoa commented 3 years ago

Hi, LoganTennis

About "Does that not mean that a bug has been introduced?"

We are investigating this issue...

Thank you!

jmpessoa commented 3 years ago

Hi, All

We just apply a patch to try fix the issues pointed here!

Thanks to everyone!

jokokiswan commented 3 years ago

Did he check all assets? Sometimes not taking care assets lead to this error, ex: form2 got declaration need a.png, but in asset folder got no a.png, not catching error on form2 on.show or jni prompt also can lead this error happen.