Widget_momentumScrolling.lua Error with scrollView

Continued from https://forums.coronalabs.com/topic/52564-scrollview-runtime-errors/ because this is not a CoronaCards related problem.

Ok so far I’ve tried:

1) Downloading “widget_theme_ios7.png” from https://github.com/coronalabs/framework-widget , putting it inside my root folder and setting up the theme right after widget library is called like:

local widget = require “widget”

widget.setTheme( “widget_theme_ios7” )

**2) **Downloading widget.lua / widget_scrollView.lua / widget_momentumScroll.lua from framework-widget/widgetLibrary folder and putting them inside my root folder, call widget from my lua file.

3) Using timer.performWithDelay

For 1) it just didn’t do anything.

When I used 2) the folder in the error changed from

Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget_momentumScrolling.lua

to my app’s folder in the phone. I combined 1) and 2) and same error as before.

For 3) … I kinda tested with it for a bit, didn’t work. If i want to fully apply it i’ll need to change my code because I’m removing any scrollView active and right after that creating the new one, so I’d need to performWithDelay everything, not just removing the scrollView.

Is there a real solution for this? First post is almost 1 year old and I know this might not happen all the time, depending on your game and how you use your UI, but it might be limiting to certain points and it’s still a potential runtime error that exits the APP, so it’s a real problem.

Best Regards,

The advice to include the image is for CoronaCards only since CoronaCards doesn’t ship with the widget assets.

It sounds like you’re trying to partially use the open source version along side the included version. It doesn’t sound like the right way to use the open source version. I would use one or the other.

If you’re experiencing this bug on SDK and not CoronaCards, and you can create a reproducable test case, I would invite you to file a bug report on it. Zip up your test case (main.lua, config.lua, build.settings and any other files/resources) and use the Report a bug link at the top. When you get the email confirmation, please post the bug number back here.

Thanks

Rob

I just submitted a sample code with the error screenshot i’m getting on the phone.

Case 43466

Thanks

Hi Rob,

is there any news about this?

Thanks!

No news yet.

Hi @undecode,

In the downloaded widget repo (you reported having downloaded it), in the “widget_momentumScroll.lua” file, please comment out the line around #684 that looks like this:

[lua]

local parentGroup = view.parent.parent

[/lua]

Then, making sure that your require() is pointing to that and not the “core” widget library, see if you can reproduce the error. If you can, please report back your results and the exact error message/line.

Thanks,

Brent

Hi Brent,

I did what you told me and i’m getting an error on line 831:

view.\_fixedGroup:insert( lib.scrollBar )

(…)\widget_momentumScrolling.lua:831: attempt to call method ‘insert’ (a nil value)

Hi, any news about it?

I’m having the same issue.

Thank you in advance,

Best regards.

Any word on when this will be fixed? My current android game Super Bit Adventure is getting this error on phones when people swipe through the shop too quickly and switch menus. Kind of sad i have to say its out of my hands.

Does this cause an issue in how the code operates? I was under the understanding that it was more of a message that shows up in the console log and really was harmless to operations.

Is this not the case?

Rob

Hi Rob.

No, this error crashes the application.

The advice to include the image is for CoronaCards only since CoronaCards doesn’t ship with the widget assets.

It sounds like you’re trying to partially use the open source version along side the included version. It doesn’t sound like the right way to use the open source version. I would use one or the other.

If you’re experiencing this bug on SDK and not CoronaCards, and you can create a reproducable test case, I would invite you to file a bug report on it. Zip up your test case (main.lua, config.lua, build.settings and any other files/resources) and use the Report a bug link at the top. When you get the email confirmation, please post the bug number back here.

Thanks

Rob

I just submitted a sample code with the error screenshot i’m getting on the phone.

Case 43466

Thanks

Hi Rob,

is there any news about this?

Thanks!

No news yet.

Hi @undecode,

In the downloaded widget repo (you reported having downloaded it), in the “widget_momentumScroll.lua” file, please comment out the line around #684 that looks like this:

[lua]

local parentGroup = view.parent.parent

[/lua]

Then, making sure that your require() is pointing to that and not the “core” widget library, see if you can reproduce the error. If you can, please report back your results and the exact error message/line.

Thanks,

Brent

Hi Brent,

I did what you told me and i’m getting an error on line 831:

view.\_fixedGroup:insert( lib.scrollBar )

(…)\widget_momentumScrolling.lua:831: attempt to call method ‘insert’ (a nil value)

Hi! We’re also seeing this runtime error, and crash, in our app, any news on this?

Same here, scrollview crashes app on device randomly.

Hi, any news about it?

I’m having the same issue.

Thank you in advance,

Best regards.