Recent

Author Topic: LAMW: jSpinner on Android 4.4.2  (Read 4736 times)

c4p

  • Full Member
  • ***
  • Posts: 158
LAMW: jSpinner on Android 4.4.2
« on: June 18, 2017, 10:47:59 pm »
Can someone try the jSpinner component on Android 4.4.2 as it crashes whenever you click it, either it is my install or the recent svn upgrade breaks it on 4.4.2? Works fine on Android 5.0.1.
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle v8.5

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: LAMW: jSpinner on Android 4.4.2
« Reply #1 on: June 18, 2017, 11:13:56 pm »
Hello c4p!

I dont have a 4.4.2 here... just 5.0.1, too...

But I will try some solution!

Thank you!

[EDITED]

OK. I fixed some check index range  in "Spinner.java" template
« Last Edit: June 19, 2017, 12:51:29 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

c4p

  • Full Member
  • ***
  • Posts: 158
Re: LAMW: jSpinner on Android 4.4.2
« Reply #2 on: June 19, 2017, 10:35:01 pm »
Hmm still the same  :'(
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle v8.5

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: LAMW: jSpinner on Android 4.4.2
« Reply #3 on: June 19, 2017, 10:44:55 pm »
Can you get some logcat?

There is a  logcat entry in menu "Tools" --> "[Lamw] Android Module Wizard" --> "ADB Logcat" --> "Logcat -d"

Run it after a App "crash" ....
« Last Edit: June 20, 2017, 12:03:02 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

c4p

  • Full Member
  • ***
  • Posts: 158
Re: LAMW: jSpinner on Android 4.4.2
« Reply #4 on: June 20, 2017, 12:21:46 am »
This looks like the error:

I/BufferQueue(  134): [Application Error: myapp.project.app](this:0xb734afe8,id:357,api:2,p:686,c:134) new GraphicBuffer needed
I/GLConsumer(  134): [Application Error: myapp.project.app](this:0xb73856f0,api:2) [void* android::GLConsumer::createImage(EGLDisplay, const android::sp<android::GraphicBuffer>&, const android::Rect&)]
I/BufferQueue(  134): [Application Error: myapp.project.app](this:0xb734afe8,id:357,api:2,p:686,c:134) new GraphicBuffer needed
I/BufferQueue(  134): [Application Error: myapp.project.app](this:0xb734afe8,id:357,api:2,p:686,c:134) [queue] fps:1.67, dur:1195.17, max:972.59, min:222.58
I/GLConsumer(  134): [Application Error: myapp.project.app](this:0xb73856f0,api:2) [void* android::GLConsumer::createImage(EGLDisplay, const android::sp<android::GraphicBuffer>&, const android::Rect&)]
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle v8.5

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: LAMW: jSpinner on Android 4.4.2
« Reply #5 on: June 20, 2017, 12:28:05 am »
Quote
I/GLConsumer(  134): [Application Error: myapp.project.app](this:0xb73856f0,api:2) [void* android::GLConsumer::createImage(EGLDisplay, const android::sp<android::GraphicBuffer>&, const android::Rect&)]

Are you using some jImageView?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

c4p

  • Full Member
  • ***
  • Posts: 158
Re: LAMW: jSpinner on Android 4.4.2
« Reply #6 on: June 20, 2017, 12:44:28 am »
Don't think so, I may have dropped the component on at some point and removed it, but not using it. I will check tomorrow, got my dev box off now and heading to bed. zzzzzzzz
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle v8.5

c4p

  • Full Member
  • ***
  • Posts: 158
Re: LAMW: jSpinner on Android 4.4.2
« Reply #7 on: July 15, 2017, 12:34:30 pm »
Only a month later!
I tried this with a fresh project with only the jSpinner on and it still crashes on 4.4.2, fine on 5.0.1.
Maybe someone else can confirm?
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle v8.5

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 306
Re: LAMW: jSpinner on Android 4.4.2
« Reply #8 on: July 15, 2017, 12:53:06 pm »
That was a long sleep ;-)
"It builds... ship it!"

Mac Mini M1
macOS 13.6 Ventura
Lazarus 2.2.6 (release version)
FPC 3.2.2 (release version)

c4p

  • Full Member
  • ***
  • Posts: 158
Re: LAMW: jSpinner on Android 4.4.2
« Reply #9 on: July 15, 2017, 01:04:46 pm »
Yup.  :)
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle v8.5

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: LAMW: jSpinner on Android 4.4.2
« Reply #10 on: July 15, 2017, 11:20:39 pm »
Hi c4p!

You woke up!  :D

We have a good news! The bug was fixed!
[just get the fixed "jSpinner.java" template from github..]

Thank you!

PS. I have done some test with android 4.3 [S3] and 5.01 [S4]
« Last Edit: July 16, 2017, 04:38:56 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

c4p

  • Full Member
  • ***
  • Posts: 158
Re: LAMW: jSpinner on Android 4.4.2
« Reply #11 on: July 16, 2017, 06:40:58 pm »
Excellent stuff, many thanks!
Been working and holiday....not sleeping    :D
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle v8.5

 

TinyPortal © 2005-2018