Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (sigsegv)
Viewing all articles
Browse latest Browse all 4

Fatal signal 11

0
0

Okay so I have known about this error in my app for months, and I am now spending probably way to much time trying to fix it.

Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 24961 (KrollRuntimeThr)
The crash occurs when I am dynamically generating a scrollview, and then adding multiple views vertically (that each contain a button and a label). Before each new scrollview is generated the old one is removed and then null'd out. It doesn't appear as if the memory usage is going bananas?

The crash is intermittent and infrequent. That being said, when it DOES happen it ALWAYS happens during the creation of the following button. (I put a log output before and after, and the when it crashes the output after never shows up)

var button = Ti.UI.createButton({
                    color:Alloy.Globals.fontColor,
                    font:{
                            fontSize: Alloy.Globals.fontSize,
                            fontFamily: Alloy.Globals.fontFace
                         },
                    title: entry.sArray[i].title,
                    top: "5px",
                    height: "45dp",
                    width: "25%",
                    left: "2%",
                    entry: entry.sArray[i],
                    backgroundColor: Alloy.Globals.bgColor,
                    backgroundSelectedColor: Alloy.Globals.bgSelectedColor,
                    callBackFunction : entry.Array[i].callBackFunction
                });
It doesn't seem to be content dependent, as it can occur on a set of data that had generated fine previously. I have never had the crash occur on iOS devices, so it seems like its an android specific issue. I do not use any platform specific code in these sections. The error occurs on both of my android text devices, (N5 OS 4.4.3 & G2X OS 2.3.4)

Is there some known issue in android with pragmatically generating quite a few layout items at once?


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images