scrollView BUG!

scrollView widget have  a bug.

if i’m scrolling (touching the scrollview object and dont let it go) and i try to insert a element to the scrollView object, it gives me an error: attempt to call method ‘insert’ (a nil value)

if i don’t scroll and execute the exact same code it will insert fine.

i’m downloading images from the database and inserting them when download is finished. i thought was my code, but i removed all possible parts, and tried with a simples display.newRect. still same error. error only happen if im scrolling when the function that create the image is called.

i can’t send my code right now, and i have a deadline of a project. so i can’t give you more details than this. hope this is enought. my last bug report, never had an answer so hope someone will read this, and do something about it. i’m using last build 2015.2637. tried on windows simulator and android device.

even locking the scroll before creating the images, don’t work. still same bug. the only way is creating the scrollview after i download the images but that is to slow because there are lots of info that the user can read without the images.

regards,

Carlos

Posting to the forums does not file a bug report.  The forums are a place to ask questions and help decide if the bug is in your code or not.  Actual bug reports must be filed using the “Report a Bug” link at the top of the page.  Before you do, you should put together a simple project that demonstrates your bug.  This must be a complete project:  main.lua, config.lua, build.settings and any thing else needed to make it run.  Our engineers can’t make up images and code to make your project work.  This all must be bundled up in a .zip file.  Do not use other things like bz2 files.  Fill out the form, include steps to reproduce the bug, attach the .zip file.   After you submit the bug you will get an e-mail that has a Case Number in the subject.  Please post that # back to this forum thread.

Rob

rob, i know posting in forums does not file a bug report. last time i did file a bug report, with code included, never got an answer. that’s why i choose it to post it here, that and like i said i don’t have time to put a complete simple project so your engineers can confirm the bug. i was hoping if someone see this, would check the scrollview code till i have time to do the correct way.

I tried my code, and scroll it while drawing stuff. I don’t see this issue (simulator 2015.2638).

What i did was :

  1. create a scrollView

  2. create a displayGroup and put items in it

  3. insert this displayGroup into the scrollView (scrollView:insert…)

yosu, thank you for your workaround.

Posting to the forums does not file a bug report.  The forums are a place to ask questions and help decide if the bug is in your code or not.  Actual bug reports must be filed using the “Report a Bug” link at the top of the page.  Before you do, you should put together a simple project that demonstrates your bug.  This must be a complete project:  main.lua, config.lua, build.settings and any thing else needed to make it run.  Our engineers can’t make up images and code to make your project work.  This all must be bundled up in a .zip file.  Do not use other things like bz2 files.  Fill out the form, include steps to reproduce the bug, attach the .zip file.   After you submit the bug you will get an e-mail that has a Case Number in the subject.  Please post that # back to this forum thread.

Rob

rob, i know posting in forums does not file a bug report. last time i did file a bug report, with code included, never got an answer. that’s why i choose it to post it here, that and like i said i don’t have time to put a complete simple project so your engineers can confirm the bug. i was hoping if someone see this, would check the scrollview code till i have time to do the correct way.

I tried my code, and scroll it while drawing stuff. I don’t see this issue (simulator 2015.2638).

What i did was :

  1. create a scrollView

  2. create a displayGroup and put items in it

  3. insert this displayGroup into the scrollView (scrollView:insert…)

yosu, thank you for your workaround.