segfault in mapview

Hey people,

Recently, I noticed that after adding a few things to my application whenever I type now map my program crashes.  It is 10.1 and I ran a diff on an older version there is no change in the card in my code.  Even more bizarre, it of that I can check this older version, build and cards work fine.

No idea how to understand this?  Track of the stack in the IDE has nothing as the sagfault goes with the mapview, not my code.  I disabled all the places and simply create the map, give him lat, lon and alt and view it and still get the crash (in the old version of the application, it still works very well with themselves).

It's probably something I did but I wonder if there is a way to get more information when it segfaults, some newspapers or something (a link to the documentation describing how to get the balls or more information is cool, I have not found a yet, but more than happy to make the R of M F'in)

Thank you

Matt M

Hahaha, that he fixed.

I made a tag in my application after you have added a big news.  In my tests, I noticed that I could build that and the map was very good.  I decided that I wouldn't waste time trying to figure what was breaking and just re - implement everything until it crashed and I would know.

So, I check the label and build and of course the card is fine.  I have check the trunk and take a diff of the source files, so that I can go on it all step by step.

Then, because it's a long weekend, I'm outside and having a beer, I decide to copy the trunk source files in the workspace replace those that checked in the tag.

Build the map and it is very well will all my features, french, etc..

In other words, if you use a plan:

If it's buggy, but you had a version that was not, discover the old one and replace the source files.  Something must have become corrupted in my project, something which is not not being rebuilt, etc.

See you soon,.

Matt M

Tags: BlackBerry Developers

Similar Questions

  • Google Mapview no longer works in Firefox

    Google Maps Satellite view works, but mapview does not work. I don't have this problem with Internet Explorer. If I click on mapview in Firefox, it just says: "loading", but nothing happens. I tried the troubleshooting information in Google, but it does not solve the problem.

    Many issues of the site can be caused by corrupted cookies or cache. To try to solve these problems, the first step is to clear cookies and cache.
    Note: This will be you temporarily disconnect all sites, you're connected to.
    To clear the cache and cookies to do the following:

    1. Go to Firefox > history > clear recent history or (if no Firefox button is displayed) go to tools > clear recent history.
    2. Under "Time range to clear", select "all".
    3. Now, click the arrow next to details to toggle the active details list.
    4. In the list of details, see the Cache and Cookies and uncheck everything.
    5. Now click the clear now button.

    More information can be found in article to clear your cache, history, and other personal information in Firefox .

    This solve your problems? Please report to us!

  • deterministic segfault in DAQmx libs after 49 days of operations with 6110 OR Linux

    I have a program using a 6110 Council OR through 8.04 DAQmx Linux (Suse 11) of 32 bits. After 49 days of operation at 1 MHz (during which the program sometimes stopped and restarted), a segmentation fault occurs inside certain DAQmx libs, as follows:

     kernel: [4286583.578738] nimxs [940]: Segfault at 11 0053af14 sp 017d00a0 error ip 6 to libnidsadd.so [587000 + 37000]

    or

     kernel: [4286589.134512] nimxs [1134]: Segfault at 11 00561f14 sp 015970a 0 error ip 6 to libmxssvr.so [50d000 + 99000]

    It happened 4 times on two different machines, each time with the same availability of machine.

    After the segmentation fault, the cards can no longer be used and are not displayed in nilsdev.

    Is this a known problem of DAQmx on linux and is there a way to recover the other than restart error machine?

    ... and finally:

    before doing what I did in my last post (stopping services and unloading nation, then by restarting the services), restart the nimxs daemon with

    / usr/local/natinst/Max/sbin/nimxs /usr/local/natinst/max/libmxssvr.so

    does everything works again.

    (if the daemon restarts after modules are reloaded, cards OR do not appear with nilsdev but can not be used).

  • Segfault on ~ SceneCover() / ~ AbstractCover()

    I use a custom file of qml Frame active.

    When I go out of my application, it cracks seg:

    The implementation of my class ~ ActiveFrameQML() is empty:

    ActiveFrameQML::~ActiveFrameQML()
    {
    }

    Not surprisingly, I'm baffled why close the application should be at the origin of segfault in this way, and because the segmentation fault that happens on the BB code, I feel a little at a loss for would be how to debug the problem.

    I looked back at:

    https://developer.BlackBerry.com/native/documentation/Cascades/UI/active_frames/index.html

    ... and compared to my implementation, and I noticed that, for some reason, I had Dale away from:

    ActiveFrameQML * activeFrame = new ActiveFrameQML();

    ... and has been rather set:

    ActiveFrameQML activeFrame.

    ... as a member of my class variable.

    And yet once, strangely, my name:

    Application::instance()-> setCover (activeFrame);

    ... from the inside:

    ActiveFrameQML::update()

    Anyway, I tried to make my implementation as close as possible to the reference implementation, and that seems to fix the problem. (and my Active Frame still works as expected, as far as I can tell)

    Not sure why I fired of the reference implementation at the time where I've implemented it.

  • Drop PIN for mapView

    I have this mapview

    my function

    function businessdetail(response){
    
            console.log("Response: "+response)
            var json = JSON.parse(response)
    
            map.longitude = json.longitude
            map.latitude = json.latitude
    
            }
    

    and that's my mapview

    MapView {
                                id: map
                                preferredWidth: Infinity
                                preferredHeight: 600
                                altitude: 1000
    
                            }
    

    I just want to have a PIN which exactly it fell from my latitude longtitude

    and if I click the mapview will be a road marker that leave from my site, like this

    a better way to do this?

    and please share some codes

    Thank you

    Thanks for the reply

    because "I JUST NEED a MARKER IN THE CENTER OF MY map"

    I do this

    Container{
          topPadding : 15
          layout: DockLayout {
                        }
               MapView {
                     id: map
                     preferredWidth: Infinity
                     preferredHeight: 600
                     altitude: 1500
    
                     overlapTouchPolicy: OverlapTouchPolicy.Deny
                     touchPropagationMode: TouchPropagationMode.None
    
                    }
                     ImageView {
                          imageSource: "asset:///images/mapicon.png"
                          verticalAlignment: VerticalAlignment.Center
                          horizontalAlignment: HorizontalAlignment.Center
                          preferredHeight: 100
                          preferredWidth: 100
                           onTouch:{
                                tabPane.direction = true
                                tabPane.button = true
                                }
                            }
    }
    

    hehe...

    peace

  • Add pin in a MapView

    I have a plan and an actonitem let a PIN on the map. If it is possible to put the PIN when the mapview appear in the page without using the actionitem?

    It is of the workaround that I found, I think that this is not the best method, but for my case, it's ok

    MapView {
                    id: mapview
                    altitude: 800
                    latitude: itemLatitude
                    longitude: itemLongitude
                    preferredWidth: 768
                    preferredHeight: 1280
    
                    onLatitudeChanged: {
                        pinContainer.addPin(itemLatitude, itemLongitude);
                    }
                    onLongitudeChanged: {
                        pinContainer.addPin(itemLatitude, itemLongitude);
                    }
                    onRequestRender: {
                        pinContainer.updateMarkers();
                    }
                    touchPropagationMode: TouchPropagationMode.None
                }
    
  • Libcurl/libxml2 segfault

    I have been working on a library for a while now (http://bbing.codeplex.com/) and that you actually want to release (officially). But I hit a few roadblocks. The remaining list of todos I have are:

    1. Make sure that it works
    2. Search for memory leaks
    3. Release

    He has the ability to define customized memory managers. Prior to their introduction, I had random segfaults. After their implementation. I still get random segfaults. I hope it's something that I've done, but whenever I get them, they are located in libcurl and libxml2.

    When I do #1, I get segfaults. When I do #2, I get segfaults.

    The source code is already high it there to see and check.

    Test code:

    bing_request_t request = NULL;
    bing_response_t response;
    bing_result_t* results;
    int c;
    int i;
    enum SOURCE_TYPE t;
    unsigned int bingID;
    
    bingID = create_bing("Bing app ID goes here!!");
    
    if(request_create_request(BING_SOURCETYPE_WEB, &request))
    {
        response = search_sync(bingID, "Bing API", request);
        if(response)
        {
            c = response_get_results(response, NULL);
            results = calloc(c, sizeof(bing_result_t));
            if(results)
            {
                response_get_results(response, results);
                for(i = 0; i < c; i++)
                {
                    t = result_get_source_type(results[i]);
                }
                free(results);
            }
            free_response(response);
        }
        free_request(request);
    }
    
    free_bing(bingID);
    

    Note: If you need an ID application to test Bing, PM me.

    You can run with default handlers (AKA, doing nothing, just compile), or you can try the "follow-up" to the memory managers by adding the "BING_MEM_TRACK" symbol to the project and compilation.

    When I use the memory of follow-up, errors generally occur in 'free_dbg_track' to the free call. The stack trace is usually along the lines of '..., curl_do, curl_http, curl_safefree, xml_curl_free, free_dbg_track, __free.

    As mentioned in the title, I also got when I try to release the context of the (search.c, search_cleanup) XML parser that has seems-like-a-fix, if the statement that can or should not cause a memory leak (do not know because I keep segfault-ing). For this stack trace is usually "..., xmlFreeParserCtxt, xmlFree, xml_curl_free, free_dbg_track, __free.

    Tested only on the device (rebooted a couple of times to free memory).

    This post seems to scatter brained and unorganized, but I can't seem to figure in any other way then put excuses from the outset for this. If you have any ideas, need more details (or Bing ID application, although it is free to do and to register [because you are even ready to approach Bing]), etc. Do not hesitate to ask.

    Yep, analysis of memory did the trick. He kept complaining about what I thought to be code perfectly well, but something must have been going wrong (somewhere) and it caused the random segfaults and strange behavior.

  • How to get the legend of bubble label text in MapView when we type?

    I added pins on MapView. Each pin card have a place name. Only touch the spindle, one sees a bubble. In this bubble, place name is provided. We provide the following C++ code name:

    NewDrop geolocation * = new GeoLocation();

    newDrop-> setName ("India");

    I want this place name, when I click on the legend label.

    Can someone help?

    Thanks corine.

    I tried the method you suggested.

    But I got a simple solution for this case. I added the following code in C++:

    NewDrop geolocation * = new GeoLocation();

    QString pinId = 'India ';

    newDrop-> setId (pinId);

    And in QML, I used 'focusedId', for that the bubble tapped s ID. This works.

  • MapView does not show pines

    I experience MapView and I need help with it. I use 10.3.2 API and testing my application on the Simulator.

    Here is my code:

    MyMapData.h:

    #ifndef MYMAPDATA_H
    #define MYMAPDATA_H
    
    #include 
    
    #include 
    
    using namespace bb::cascades::maps;
    
    // MyMapData
    class MyMapData
        : public MapData
    {
        Q_OBJECT
    
    public:
        explicit MyMapData(QObject *parent = NULL);
        virtual ~MyMapData() {}
    
    public slots:
        void addGeoLocation(const int latitude, const int longitude);
    };
    
    #endif // MYMAPDATA_H
    

    MyMapData.cpp:

    #include 
    #include 
    
    #include 
    
    #include "MyMapData.h"
    
    using namespace bb::platform::geo;
    
    // MyMapData
    
    MyMapData::MyMapData(QObject *parent)
        : MapData(parent)
    {
        add(new GeoDeviceLocation());
    }
    
    void MyMapData::addGeoLocation(const int latitude, const int longitude)
    {
        add(new GeoLocation(latitude, longitude));
    
        qDebug() << "------------>" << count(true);
    }
    

    Inside of main.cpp I register class MyMapData:

    qmlRegisterType("bb.cascades", 1, 4, "MyMapData");
    

    Inside the .pro file, I added libs:

    LIBS += -lbb -lbbplatform -lQtLocationSubset -lbbcascadesmaps -lGLESv1_CM
    

    Inside the .bar file, I added the following permissions:

    access_location_services
    access_internet
    

    hand. QML:

    import bb.cascades 1.4
    import bb.cascades.maps 1.4
    
    Page {
        MapView {
            id: mapView
            latitude: 52.5
            longitude: -98.75
    
            mapData: MyMapData {
                id: mapData
            }
        }
    
        actions: [
            ActionItem {
                title: "Drop Pin"
                ActionBar.placement: ActionBarPlacement.OnBar
    
                onTriggered: {
                    mapData.addGeoLocation(mapView.latitude, mapView.longitude);
                }
            }
        ]
    }
    

    When I click on Add Pin, no pins on MapView are displayed, but debug of MyMapData :: addGetLocation me, shows that the pine has been added.
    What's wrong?

    My code works well, just zoom out

  • MapView problems after 2.0 update Momentics

    Hello, I am working on a prototype for an idea of the app I have and need to plan very much in the way that Foursquare manages the views of map locations. I've been led to believe that the native integration of cards required coding very little and nothing more than a few lines of code. I studied the demo mapview up and down for hours and I can't figure out what I did wrong. Here's the Basic code.

    import bb.cascades 1.2
    import bb.cascades.maps 1.0
    
    Page {
        Container {
            //Todo: fill me with QML
            Label {
                // Localized text with the dynamic translation and locale updates support
                text: qsTr("Hello World") + Retranslate.onLocaleOrLanguageChanged
                textStyle.base: SystemDefaults.TextStyles.BigText
            }
            MapView {
                id: mapview
                objectName: "mapView"
                altitude: 3000
                latitude: 43.449488
                longitude: -80.406777
                horizontalAlignment: HorizontalAlignment.Center
                preferredHeight: Infinity
                preferredWidth: Infinity
    
            }
        }
    }
    

    The problem is on the Viewer to waterfalls, that plan appears in RED saying "Missing: MapView ' when it is deployed on a device (Dev Alpha B), I get a black box, and no card, pinch and panoramic seem something in the console output log, but is also not very useful.

    Qml debugging is enabled. Only use this in a safe environment!
    unknown symbol: _ZN2bb8cascades4maps7MapView7setTiltEi
    unknown symbol: _ZN2bb8cascades4maps7MapView11setAltitudeEd
    unknown symbol: _ZN2bb8cascades4maps7MapView11setLatitudeEd
    unknown symbol: _ZN2bb8cascades4maps7MapViewC1EPNS0_9ContainerE
    unknown symbol: _ZN2bb8cascades4maps7MapView12setLongitudeEd
    unknown symbol: _ZN2bb8cascades4maps7MapView15setRenderEngineEPNS1_12RenderEngineE
    OrientationSupportPrivate::getSupportedDisplayOrientation:  auto
    OrientationSupportPrivate::initDirectionAndOrientation:
       isCardOrViewer:  false
       manifestDisplayOrientation: All
       displayOrientation: All
       uiOrientation: Portrait
       displayDirection: North
       nativeDisplayOrientation: Portrait
    CS Debugging enabled: false
    MapViewPrivate::removeRenderEngine
    using the following render engine:  bb::cascades::maps::BlankRenderEngine
    MapViewPrivate::removeRenderEngine
    removing the old render engine:  bb::cascades::maps::BlankRenderEngine
    RenderEngineManager::RenderEngineManager
    RenderEngineManager::scanForPlugins()
    render engine search: searching   QDir( "/apps/com.example.WoHoMu.testDev_mple_WoHoMued1f8138/native/mapview-renderengine" , nameFilters = { * },  QDir::SortFlags( Name | IgnoreCase ) , QDir::Filters( Dirs|Files|Drives|AllEntries ) )
    render engine search: searching   QDir( "/base/usr/lib/qt4/plugins/mapview-renderengine" , nameFilters = { * },  QDir::SortFlags( Name | IgnoreCase ) , QDir::Filters( Dirs|Files|Drives|AllEntries ) )
    render engine search: attempting to load  "/base/usr/lib/qt4/plugins/mapview-renderengine/libRenderEngine3d.so"
    RenderEngineManager::engine(    )
    using the following render engine:  bb::cascades::maps::BlankRenderEngine
    unknown symbol: _ZTIN2bb8platform3geo11GeoLocationE
    unknown symbol: _ZTIN2bb8platform3geo11GeoLocationE
    unknown symbol: _ZNK2bb8platform3geo11GeoLocation10metaObjectEv
    unknown symbol: _ZN2bb8platform3geo11GeoLocation11qt_metacastEPKc
    unknown symbol: _ZN2bb8platform3geo11GeoLocation11qt_metacallEN11QMetaObject4CallEiPPv
    unknown symbol: _ZNK2bb8platform3geo11GeoLocation11boundingBoxEv
    unknown symbol: _ZTIN2bb8cascades4maps12RenderEngineE
    unknown symbol: _ZN2bb8cascades4maps12RenderEngine16staticMetaObjectE
    unknown symbol: _ZTIN2bb8platform3geo11GeoPolylineE
    unknown symbol: _ZTIN2bb8platform3geo10GeoPolygonE
    unknown symbol: _ZTIN2bb8platform3geo10GeographicE
    unknown symbol: _ZN2bb8platform3geo17GeoDeviceLocation16staticMetaObjectE
    unknown symbol: _ZNK2bb8platform3geo8Polyline5countEv
    unknown symbol: _ZNK2bb8cascades4maps25RenderEngineConfiguration21foreignWindowWindowIdEv
    unknown symbol: _ZN2bb8platform3geo5StyleD1Ev
    

    I added the necessary permissions for the site and the internet in the bar-descriptor but also added the
    LIBS +=-lbbcascadesmaps line in the .pro project file. Can someone help me to know what is happening?

    I use these libs:

    -lQtLocationSubset - lbbcascadesmaps-lGLESv1_CM

  • Draw the circle on MapView

    Hi all.

    I am quite new to the development of the Cascades.

    I would like to know if it is possible to trace a circle on a plan, given a Point and a RADIUS.

    I searched a bit on the doc, but I not only found ways to draw polygons from a set of coordinates.

    IIRC the fact maps app exactly that, show GPS accuracy of the signal (IE put a circle around you on the map to show the accuracy of the coordinates).

    Thank you very much, greetings

    Thanks BBSJdev, but I need an overlay following cards (and with a dynamic dimension) and not static.

    In any case, I found a nice way to draw a circle-layer on the mapview. Here is the code:

    It is an improved version of the solution that someone else posted on this forum some time ago (which did not perfectly, as she draws an elypse and not a circle). I can't find this post now, in any case I would like to thank the user who wrote this snippet.

    Here is the code:

    void ApplicationUI::drawCircle(double lon, double lat, double radius) {    MapView *mv = root->findChild("mapView");    DataProvider *dp = mv->mapData()->defaultProvider();
    
        // convert radius meters to latitude width    double latr = radius / 111412.84; // this is the number of meters per degree
    
        // with longitude it's a bit more complicated, since a degree of longitude 's length    // is not constant (unfortunately the earth is not flat)    int a = 6371000; // earth radius in meters    double rad_lat = 0.0174532925 * lat; // convert latitude from degrees to radiants    double _lr = ((M_PI / 180) * a * cosf(rad_lat)); // length of a degree of longitude in meters    double lonr = radius / _lr;    qDebug() << "lonr = " << lonr << " ; _lr = " << _lr << " ; latr = " << latr << " ; lat = " << lat;
    
        GeoPolygon* result = new GeoPolygon;    Polyline line;    const int numOfSeg = 36;    for ( int i = 0; i < numOfSeg; i++ ) {        double theta = 2.0f * 3.1415926f * float( i ) / float( numOfSeg );        double x = lonr * cosf( theta );        double y = latr * sinf( theta );        line.append( Coordinate( y + lat, x + lon ) );    }
    
        result->setOuterBoundary( line );    result->setId("id-circle");    mv->mapData()->defaultProvider()->add(result);
    
    }
    
  • How to receive events touch of legend in mapview bubble?

    Hello developers,
    I have been woking on a map-based application. I want to see the PIN to some place on click and click a pin it there otherwise pop up on available in OS bb10 and can also add our user interface customized for the legend label. I saw an example of custom mapview http://blackberry.github.io/Cascades-Samples/custommapview.html in which they created a container separated and shown that the container during the click on pin.but that the container is not ' receive events.so touch how should I get the Touch touch events? pls help developer friends...

    Thank you

    I just tested and the onTouch Manager works perfectly.

    I added the following code in the main container of the bubble component to change the color of the label (you will need to add the > string in the Label component to test).

        onTouch: {
            label.textStyle.color = Color.Red;
        }
    
  • MapView does not display the map

    MapView tutorial sample apps does not display the map on my device.

    I tried to get out by creating a sample application with lat coded hard and longi, still nothing.

    In addition, the native application "maps" on the device also fails to show on the map. !

    What I m misssing?

    That you get an event message when you try to drag and zoom control.
    Set the width and height to infinity to try.

  • MapView list empty (black) on OS 10.3

    Hi all

    I use MapView in an app and its works very well on OS 10.2, but after 10.3 updated his does not.

    Its black list without content above.

    There is also the debug output saying:

    rendering engine using the following: bb::cascades:maps:BlankRenderEngine

    I also have this included in the .pro file

    LIBS += - lQtLocationSubset - lbbcascadesmaps-lGLESv1_CM

    Help, please!

    Thank you

    Diagne

    Did you guys added a height and a width to your mapviews?

    try this.  My application revolves around maps and I have problems on 10.3 SDK.

  • Marker icon update mapview

    Hey people.

    I got a plan where I add geolocation with the marker icon.

    I want to update this marker of the icon with another icon, but the accident during the click on the marker popup after update.

    Update: I remove the geolocation of the dataprovider, I change icon, finally I add geolocation to dataprovider.

    If I don't remove/add geolocation of dataprovider, mapview is not update the marker icon.

    Thank you.

    OK, I already solve it.

    I don't have removal/addition of marker for the data provider. Just add for update.

    Thank you.

Maybe you are looking for