Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 122
Registered: ‎11-12-2010
My Device: Dev Alpha
My Carrier: N/A
Accepted Solution

terminated SIGSEGV error

Does anyone know what the following error means when trying to run my project:

 

Process 11514055 (xxxxxxxxxx) terminated SIGSEGV code=1 fltno=11 ip=7843558e(/base/usr/lib/libbbcascades.so.1@_ZN16IQNXWebGLContextD0Ev+0x48e79) mapaddr=0023558e. ref=000000b0

 

This has only started happening since adding a rather large javascript function. There are about 1000 lines of code in my main.qml.

 

Ive tried removing the code but still the same problem. Ive rebooted both the PC and dev alpha as well.

Developer
Posts: 285
Registered: ‎08-06-2010
My Device: Z10

Re: terminated SIGSEGV error

I would check your C++. Usually I see segmentation faults when I refer to a variable that is null.



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Developer
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: terminated SIGSEGV error

That is also possible in qml javascript because in reality its operating on c++ objects underneath the covers. Is your javascript trying to manipulate objects that may have been destroyed?
Like all of my posts
Developer
Posts: 122
Registered: ‎11-12-2010
My Device: Dev Alpha
My Carrier: N/A

Re: terminated SIGSEGV error

Thanks guys.

 

There is no user c++ in this project yet so I checked all of the Javascript and found a place where I was removing all items from a dropdown list and then setting selectedindex to 0.  After fixing this the problem was resolved Smiley Happy

 

Thanks again