RenderFence?

Hi gang,.

While browsing through my app momentics, whenever I left the app, I get the following error:

Process 286040532 (myApp) terminated SIGSEGV code=1 fltno=11 ip=79599bea(/base/usr/lib/libbbcascades.so.1@_ZN2bb8cascades11RenderFence9setRaisedEb+0x3249) mapaddr=00199bea. ref=081039bc bdslot=1

I don't know how to diagnose this or find why it crashes instead of out cleanly.

any suggestions on where to start?

Thank you

J

Discussions need not to be apparent as they will not be connected to any UIObject and your code should ensure that the thread is closed turned off before stopping.
What you have done is correct with the connection of the end signal, you can delay the closure of the application to make sure that the thread has a chance to stop and close...

http://developer.BlackBerry.com/native/documentation/Cascades/dev/fundamentals/

Take a look at the section "Closing your application.

You seem to be a fairly knowledgeable developer for me, so I'm surprised you can't use the debugger to track it down?
Have you not get anything useful from the stack trace, or is that how you know, it's certainly in the app exit/compensation upwards of the QML code?
Do you have knowledge of black box testing, an alternative approach to see if you can instantiate and delete your classes without problem?

But I would first remove the thread code (comment it out) that you obviously feel this may be the culprit and see if the app always crashes.
Knit then from there.

Tags: BlackBerry Developers

Similar Questions

  • Invoking queries

    Hello guyz, how to invoke parameters using qml, I do not understand the source code examples, I want to call my request... button settings but how do objects do I build in CPP index and what things to do in QML,... Please specify...

    Oh, don't put that your Builder, which could be misleading a user open your application and enter the settings instead. Put it inside its own function, quite like the function of invokeSettings() that I use. Be sure to declare this function Q_INVOKABLE in public in PPH section, so that it can be called in QML using
    app.invokeSettings)

    If, for any reason, you want to open when you leave the app, I guess that your application should be initialized before calling this function. To do this, you can use RenderFence in QML (or C++) or differ with this line in C++:
    QMetaObject::invokeMethod (this, "invokeSettings", Qt::QueuedConnection);

    https://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__renderfence.html

  • onCreationCompleted shipped before import JavaScript is over

    Hello

    I have a very small QML that matters a little JavaScript (128 lines) file that matters in turn another small JavaScript file (80 lines). In summary QML--> JS A--> JS B. In the JS files are essentially class definitions, and some small global code running. JS files have zero dependencies of the QML.

    The problem is that when the rootComponent.onCreationCompleted signal is distributed on the QML, JavaScript dependencies are not ready yet.

    I get a lot of erros as:

    asset:///Test.qml:10: TypeError: Result of expression 'ONA.inst' [undefined] is not an object.
    

    I also use the reminder of the Qt.include, Qt.include ("b.js", function() {}), a.js wait b.js be fully charged to a.js.

    I expect the onCreationCompleted signal of the element root to be shipped after all imports of JavaScript and its dependencies, where it is fully charged.

    I use BlackBerry10Simulator-BB10_2_1-3502 with VM Ware Fusion 7, under Mac OS X 10.10.3. Unfortunately I have not access to any real device.

    Please advice.

    You can try RenderFence, add this code to your object of root (TabbedPane, Page or NavigationPane) instead of onCreationCompleted:

       attachedObjects: [
            RenderFence {
                raised: true
                onReached: {
                    \\ your code goes here
                }
            }
        ]
    
  • ListView with TextField inside the component and requestFocus()

    Hello

    I'm trying to implement the logical: when the page with ListView is indicated - start editing (see the keyboard) in the field of specific text that is part of the agenda of the ListView.

    TextField.requestFocus () works very well if it is called some time later, after loading the page (assuming that when ListView load model and created the UI elements).

    How to identify when requestFocus() is success? onCreationCompleted for TextField/ListView does not work.

    It can be done with QTimer but I want to keep it as a backup plan.

    Thank you

    Can you try to add to your Page (or your ListView):
    attachedObjects:]
    {RenderFence}
    raised: true
    onReached: textFieldName.requestFocus)
    }
    ]

Maybe you are looking for