ScrollView causing app to crash on device.

Just updated to build 703, and still having the same problem. As the title states, the scrollView from the new widget library (0.2), is causing my app to crash on the device. It works fine using the Corona Simulator.

Here is my code:
[lua]scrollView = widget.newScrollView{left=244,top=290, height=113, width=530, bgColor={0,0,0,0}, maskFile = “scrollMask.png”}
chatWindow:insert(scrollView.view)[/lua]
This code is causing the following error on the device.

Dec 7 15:11:34 unknown ReportCrash[5090] <notice>: Formulating crash report for process Glint[5086]<br>Dec 7 15:11:34 unknown com.apple.launchd[1] <warning>: (UIKitApplication:Glint[0xa70]) Job appears to have crashed: Segmentation fault: 11<br>Dec 7 15:11:34 unknown SpringBoard[15] <warning>: Application 'Glint' exited abnormally with signal 11: Segmentation fault: 11<br>

Has anyone else run into this issue? Is there another scrollView implementation that I can use as workaround?

Thanks,
Jacob [import]uid: 18601 topic_id: 18772 reply_id: 318772[/import]

I believe this issue has been fixed in one of the daily builds (the widget version you have access to at the moment is very much outdated).

Daily builds are available to subscribers, or you can wait for the next public release in which all daily build features up to that point are released to the public. [import]uid: 52430 topic_id: 18772 reply_id: 72340[/import]

@jonathanbeebe - As stated in my original post, I have upgrade to build 703. My paid subscription is under my company’s email address, and this account is used simply for forum posts. I am still having this issue with the newest available daily build. [import]uid: 18601 topic_id: 18772 reply_id: 72414[/import]

scrollView widget still works for me on build 703. Can you provide more code? [import]uid: 71201 topic_id: 18772 reply_id: 72418[/import]

Yes, could you please fill out a bug report and submit a test-case sample project that shows the problem in isolation? The smaller the project, and the more you can narrow it down the better. It also helps determine if its a problem with your code, or if it is an actual bug.

Thanks. Here’s a link to the bug reporter:
http://developer.anscamobile.com/content/bug-submission [import]uid: 52430 topic_id: 18772 reply_id: 72427[/import]

a bug report, along with steps to reproduce and a test case, have been submitted. Case #10470.

For anyone else that is interested, the crash occurs when you add a scrollView’s view object to a group, and add that group to another group. Below is code that demonstrates the issue.

[lua]local widget = require(“widget”)

local localGroup = display.newGroup()
local chatWindow = display.newGroup()

local scrollView = widget.newScrollView{left=0,top=0, height=113, width=530, bgColor={0,0,0,0}, maskFile = “scrollMask.png”}

chatWindow:insert(scrollView.view)
localGroup:insert(chatWindow)[/lua] [import]uid: 18601 topic_id: 18772 reply_id: 72450[/import]

I’m experiencing this bug as well, and have noticed that it only occurs if I have a maskFile specified. Try out your test case and see if it works when you comment out the line concerning maskFile.

That may help out the engineers that are working on this.

Thanks,

Matt
W2MD [import]uid: 10211 topic_id: 18772 reply_id: 76277[/import]

I’m also having this problem- using the scrollView widget, works fine in the simulator, then crashes on the ipad with a segmentation 11 fault. commenting out the bitmap mask file makes it work just fine- but of course, it looks much better with the mask.
i’ve downloaded the daily builds- i’m on 2012.786, but it still doesn’t seem to be working. is there a workaround yet? Should I submit a formal bug report or are you guys on it?

here is the code that works, but it breaks if i un-comment line #7 --define the list parameters local listOptions = { top = multiListTop,--185, left = 560, height = multiListHeight,--698, width = 226, --maskFile = "images/cat-mask.png", bgColor = { 0, 0, 0, 0 } } [import]uid: 121467 topic_id: 18772 reply_id: 102544[/import]

@corona481

Try replacing bgColor with " background = false "

I haven’t seen any issues with my masked scrollviews since I stopped using bgColor. [import]uid: 44647 topic_id: 18772 reply_id: 102555[/import]

thanks for the reply!
i tried the background=false code and it built and ran on the ipad without issue, but when i un-commented the mask file, it worked fine in the simulator but then crashed again on the ipad- same thing, segmentation 11.
Application ‘MFS8’ exited abnormally with signal 11: Segmentation fault: 11

may i see a snippet of your code to see what i might be doing wrong? are you using a bitmap mask file?

thank you! [import]uid: 121467 topic_id: 18772 reply_id: 102564[/import]

That “background=false” wasn’t syntactically correct. Here’s my scrollView invocation:

[lua] pref_groups = widget.newScrollView{ top=88, hideBackground=true,
bottomPadding=40,
width=640, height=872,
maskFile=“scrollmask.png”,
}[/lua]

That ‘scrollmask.png’ is a 640x872 white rectangle with 2px of black on each edge, final resolution 644x876. [import]uid: 44647 topic_id: 18772 reply_id: 102571[/import]