facebook

MobiOne Test Center is terribly unstable !!

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #332415 Reply

    alonso100
    Member

    Hello,

    MobiOne is indeed terribly unstable, since the test tool displays something else as the design tool (since today). I am working with the google maps and try to pass data from 1 screen to the next one before navigation. In the screenshots you see an anormal behaviour of the test tool, which destroys the whole thing.

    I tried to solve this problem the following way:
    1) I restarted the test center –> nothing
    2) I restarted Mobione –> nothing
    3) I restarted my computer –> nothing

    Everytime that I execute my application I see different things. Additionally, the code editor is a mess and unreliable (identation, carriage return, spaces, etc.). Sometimes I prefer to work with Notepad instead.

    Attachments:
    You must be logged in to view attached files.
    #332420

    support-michael
    Keymaster

    @alonso100

    Sorry to hear you are having troubles with the Test Center.

    Without seeing your code it is hard to isolate the problem to either the emulator or coding errors. From your description I suspect it is both. Here are some tips:

    1) when you modify javascript reload your project in the Test Center. The integrated editor is configured to auto-reload on save. But I typically manually reload the app (see toolbar reload button) after saving files.

    2) if the UI is acting quirky, use the debugger to confirm that your javascript does not have any syntax errors or runtime errors. Also you can use the debugger to confirm that after making code changes that the correct version of a javascript file is loaded

    3) agree the editor is not great. We have been working on an improvement over the last few weeks. We hope to make it public in the next few weeks. Here is a thumbnail of the editor with codeassist that I’m helping test. See attachment editor-codeassist.png

    Attachments:
    You must be logged in to view attached files.
    #332423

    alonso100
    Member

    Hi,

    1) reloading did not help. I pressed the button several times and nothing.
    2) the debugger is not showing any errors, only 1 warning and that´s because I added this line in the HTML file:

    <script type=”text/javascript” src=”http://maps.googleapis.com/maps/api/js?libraries=geometry&sensor=false”></script&gt;

    If I did so is because it is missing and then my code for calculating the angle between 2 points in Google Maps does not work. In this case I get an error message in the debugger.

    Why is the above line not included in the widget ??

    I am uploading here the files for you to check. Perhaps you find something that must be reported to the development team.

    Additionally, it is normal that the debugger and test tool a short dump cause, so the application closes by itself … and this up to 10 times per day (if not more is only because I give up and switch the computer off).

    Attachments:
    You must be logged in to view attached files.
    #332500

    Hi Alonso,

    Thanks for sharing your project with us to investigate, I’ll review them later today and share findings with you asap.

    #332513

    support-michael
    Keymaster

    @alonso

    So we invested time to debug your app. Please read the 1st section of the Map Developers Guide to understand why no map code was generated. For legal reasons you MUST APPROVE the use of the Google Map API before MobiOne will generate the map code.

    Map Developer Guide

    The issue was reported in every code generation action as shown below. Also included in the screenshot is the settings page where you review and approve once you have rejected use of the map api on 1st use of the map widget.
    See attachment alonso-gmap-approval-reqd.png

    Attachments:
    You must be logged in to view attached files.
    #332516

    alonso100
    Member

    Hello,

    thanks for information but that cannot be the reason that the objects in the test center look very different as in design tool. I double-checked the settings in my MobiOne and the checkbox for “I approve …” is marked; I execute again the application and still in the test center I see something different.

    When generating the code I see another warning message (attached) and that is Ok. I didn´t mark the checkbox in my development. In your case, I didn´t send file “calculations.js” so you get the error message.

    Attachments:
    You must be logged in to view attached files.
    #332649

    alonso100
    Member

    Hi,

    since this problem is still open, I read the tutorial for maps and downloaded your example from this page. If I execute it, it looks great and I can drag the map to another position or zoom in and out. I changed the coordinates and after execution, it displays correctly the new information but as soon as I drag the map to another location or zoom in or out, the map it not reading the new information so I can see only part of the old map (see the screenshots).

    There´s still something wrong with the widget for the google maps. Here are the new coordinates:

        //center the map on downtown Breckenridge, Colorado
        var centerPos = new google.maps.LatLng(52.579978,13.915683);
        gmap.setCenter(centerPos); 
    
        //position at north end of main street
        var pos1 = new google.maps.LatLng(52.579978,13.915683);
    
        //position at south end of main street
        var pos2 = new google.maps.LatLng(52.582000,13.915683);

    I´ve been working with 2 or 3 more examples from the documentation and in all cases it does not work to find my current position or the above describe error shows up again. Nice documentation and examples !!!

    Attachments:
    You must be logged in to view attached files.
    #332658

    support-michael
    Keymaster

    >I´ve been working with 2 or 3 more examples from the documentation and in all cases it does not work to find my current position or the above describe error shows up again.
    Nice documentation and examples !!!
    ^^^^^^^^^^^^^^^^^^

    Is this sarcasm?

    #332679

    support-michael
    Keymaster

    I’m not sure what might cause map panning updates to fail after src code modification. When you save an edited file in the Test Center editor ALWAYS manually reload it from the toolbar action as shown in the following screencast:

    http://screencast.com/t/0DYgWebOZee

    We don’t know the cause yet but sometimes the emulator seems to need a hard reset/reload action in order to properly load modified src files. Part of the issue could be that some clever tricks have to be played to get the Google map api to initialize and simulate a mobile device when run from a desktop context.

    #332697

    alonso100
    Member

    Hi,

    this time it worked but it has happened to me that reload does not help; problem still remains, either with Google Maps or something else … and if I think of the short dump when testing that closes the application …

    What I wrote was not sarcasm !! Documentation for MobiOne is either scarce, non-existant or out-dated.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: MobiOne Test Center is terribly unstable !!

You must be logged in to post in the forum log in