Recent

Author Topic: LAMW : App Crash on device when use jImageView & jImageList  (Read 3032 times)

Takeda

  • Full Member
  • ***
  • Posts: 157
LAMW : App Crash on device when use jImageView & jImageList
« on: October 02, 2018, 01:01:52 pm »
Hello... Today I test jImageView.. Everything is OK.. Build APK it's successful. Unfortunately when deploy on emulator and also real device it was crash.

I attach the test project which crash on runtime (deployed on real device).

How to produce the bug :
1. Drop jImageList,  jImageView
2. Add any picture into jImageList
3. Link jImageList to  jImageView, choose any image in jImageList
4. Build the apk (successful)
5. Run the app then you’ll get crash when it run on device.
 
Test project attached

I tested on :
1. Android 6.0 and 7.12
2. Without jImageView and jImageList everything is running as expected.
 
Best regards,
Takeda
Call me Takeda coz that's my true name.
Pascal coding using Lazarus => "Be native in any where.."

ƪ(˘⌣˘)┐ ƪ(˘⌣˘)ʃ ┌(˘⌣˘)ʃ

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: LAMW : App Crash on device when use jImageView & jImageList
« Reply #1 on: October 02, 2018, 02:39:20 pm »
I have no problem running it on my Redmi 4X Android 7.1.2 compiled using Lazarus 1.8.4 LAMW 0.8 revision 754.

My first attempt building the apk was failed, I got this error:
Unable to resolve project target 'android-28'

I remember I only have SDK API25 installed. So after I changed the setting to API25, now I can build it without any issue and it seems to run properly on my phone.

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: LAMW : App Crash on device when use jImageView & jImageList
« Reply #2 on: October 02, 2018, 02:41:29 pm »
If anyone want to try the apk I built, here is the file:

Takeda

  • Full Member
  • ***
  • Posts: 157
Re: LAMW : App Crash on device when use jImageView & jImageList
« Reply #3 on: October 02, 2018, 02:58:38 pm »
I have no problem running it on my Redmi 4X Android 7.1.2 compiled using Lazarus 1.8.4 LAMW 0.8 revision 754.

My first attempt building the apk was failed, I got this error:
Unable to resolve project target 'android-28'

I remember I only have SDK API25 installed. So after I changed the setting to API25, now I can build it without any issue and it seems to run properly on my phone.

I used Lazarus 2.x fixes Branch + FPC 3.2 Fixes Branch was failed when I run the apk. Even when I downgrade into  Android API 25.
Strange..
Call me Takeda coz that's my true name.
Pascal coding using Lazarus => "Be native in any where.."

ƪ(˘⌣˘)┐ ƪ(˘⌣˘)ʃ ┌(˘⌣˘)ʃ

Takeda

  • Full Member
  • ***
  • Posts: 157
Re: LAMW : App Crash on device when use jImageView & jImageList
« Reply #4 on: October 02, 2018, 03:13:45 pm »
If anyone want to try the apk I built, here is the file:

Here my apk
Call me Takeda coz that's my true name.
Pascal coding using Lazarus => "Be native in any where.."

ƪ(˘⌣˘)┐ ƪ(˘⌣˘)ʃ ┌(˘⌣˘)ʃ

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: LAMW : App Crash on device when use jImageView & jImageList
« Reply #5 on: October 03, 2018, 01:53:31 am »
I tested your apk. The app crashed and existed immediately.

How did you compile/build the apk? Did you use laztoapk and Gradle? I do not use laztoapk, I install the LAMW manually. To build apk, I use Ant by running the debug/release script.

Takeda

  • Full Member
  • ***
  • Posts: 157
Re: LAMW : App Crash on device when use jImageView & jImageList
« Reply #6 on: October 06, 2018, 11:12:26 am »
I tested your apk. The app crashed and existed immediately.

How did you compile/build the apk? Did you use laztoapk and Gradle? I do not use laztoapk, I install the LAMW manually. To build apk, I use Ant by running the debug/release script.

Hi, Handoko

I used :
1. Android NDK v11c
2. Using latest LAMW (Updated today)
3. Build using like what you did
4. Using JDK 1.8.0_181
5. Apache ANT 1.9.6

I'm not using LazToApk. Install LAMW Manually.
Call me Takeda coz that's my true name.
Pascal coding using Lazarus => "Be native in any where.."

ƪ(˘⌣˘)┐ ƪ(˘⌣˘)ʃ ┌(˘⌣˘)ʃ

 

TinyPortal © 2005-2018