* * *

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

c4p

  • Jr. Member
  • **
  • Posts: 68
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.

jmpessoa

  • Hero Member
  • *****
  • Posts: 957
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

  • Jr. Member
  • **
  • Posts: 68
Re: LAMW: jSpinner on Android 4.4.2
« Reply #2 on: June 19, 2017, 10:35:01 pm »
Hmm still the same  :'(

jmpessoa

  • Hero Member
  • *****
  • Posts: 957
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

  • Jr. Member
  • **
  • Posts: 68
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&)]

jmpessoa

  • Hero Member
  • *****
  • Posts: 957
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

  • Jr. Member
  • **
  • Posts: 68
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

c4p

  • Jr. Member
  • **
  • Posts: 68
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?

carl_caulkett

  • Full Member
  • ***
  • Posts: 243
Re: LAMW: jSpinner on Android 4.4.2
« Reply #8 on: July 15, 2017, 12:53:06 pm »
That was a long sleep ;-)
macOS 10.12.6
Lazarus 1.8.0 RC4
FPC 3.0.2

c4p

  • Jr. Member
  • **
  • Posts: 68
Re: LAMW: jSpinner on Android 4.4.2
« Reply #9 on: July 15, 2017, 01:04:46 pm »
Yup.  :)

jmpessoa

  • Hero Member
  • *****
  • Posts: 957
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

  • Jr. Member
  • **
  • Posts: 68
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

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus