facebook

phonegap crash on android

💡
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 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #328042 Reply

    cng_1
    Member

    Return from function navigator.camera.getPicture() with appropriate parms forces app crash. After the picture is taken and accepted the return crashes.

    If I use it with one screen in main.mobi it works but when linking multiple screens to main.mobi that are using multiple graphic icons, popup window, goto more screens etc. the main.mobi page it crashes every time.

    It does not seem to be app size related running test 20 or 30 times did not produce a crash based upon app size in kb. The only consistent element was if there was multiple screens used from main.mobi.

    using Phonegap 1.1.0 I assume in the lastest 2.0.2 mobione. If this is different then what is the version ? Using thrid party frameworks should be shown clearly in the builds. An we should have the ability to upgrade 3rd party .js frameworks anytime.

    Any one else haveing difficulties ?

    Support: Is it possible to upgrade phonegap / cordova myself in the res directory for other .js files ?

    thanks

    #328043

    cng_1
    Member

    I have not tried a testing on iphone.

    #328045

    Hi,

    Could you provide us your device/OS details? Also, if you can share an example app and we will test on our end.

    >Support: Is it possible to upgrade phonegap / cordova myself in the res directory for other .js files ?
    You cannot upgrade PhoneGap directly but we are planning on moving to a newer version in the near future.

    #328048

    cng_1
    Member

    droid razr maxx
    android 4.0.4
    system: 6.16.211.xt912.verizon.en.us
    wt-3.0.0
    kernel 3.0.8-g29cf5e7

    The app prototype as is cannot be shared since I do not have authorization from client to share new logo elements etc. not yet in the public view.

    My original testing was main.bobi and one.mobi, two.mobi. three.mobi, camera.mobi all on text buttons from main screen. Each of the one, two, three screens had goto URL buttons or goto screen and back. the camera.mobi just had a button to do the getpicture() and back;

    This crashed occasionally but could not find any consistent aspect.

    added image buttons and remade all the text buttons to image buttons on all the pages, added images, added the got URL popup settings. After this it failed every time I ran the app.

    So I thought it was a memory issue. But watching the sizes of the various compile apps did not show any consistent size to failure relationship. It seemed to me the main.js “try-catch” moved to different places in the main.js file and that it might be the return from phonegap to mobione stack that is getting corrupted. Just a thought.

    So I tested by reducing the number of goto screens by one by changing action setting to none until it worked again. When I had just the camera.mobi screen link it worked.

    So add the other 1, 2 or 3 screen links back on it fails. Take them off it works.

    Can I update the phonegap version? What version am I using?

    #328049

    cng_1
    Member

    One other question. Does the got URL code protect against the various characters used in web site URLs containing params? Is there any limits on the url that can be used. I am using long ones with many params.

    #328059

    cng_1
    Member

    I just built a test of 3 pages test.mobi, test2,mobi, test3.mobi.

    test is main and has two image buttons one goto screen test2 and one to got screen test3, test2 has an image button for camera getpicture, test3 has a image button with goto URL POPUP window (native only) with long url with params.

    This fails on return from Camera completed action.

    on test3.mobi image button goto URL POPUP window (native only) and set it to just go BACK and app DOES NOT fail.

    It seems there is a conflict using the goto URL POPUP window (native only) and phonegap functions.

    Infact here it is just tested this:

    In the goto URL POPUP window (native only) button.

    not sure why these don’t show but the front part is this forum page.
    This works: http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=3230
    This fails: http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=3230=d=10155&langId=-1&catalogId=10052&partNumber=ABC-2151-12-SS

    I just added the extra to match up the length wit the other urls I am using and it fails!

    #328069

    support-michael
    Keymaster

    @cng_1

    > So add the other 1, 2 or 3 screen links back on it fails. Take them off it works.

    Thanks for helping isolate the problem. We will work to replicate this and compare findings.

    > Can I update the phonegap version? What version am I using?

    Not yet but we are planning an upgrade. The current version is variation of phonegap 1.1. The childbrowser plugins is incorporated along with a modification for a custom webroot, /www named folder is not required.

    Lastly I believe the URL property is url encoded but will confirm that asap.

    #328071

    cng_1
    Member

    Fighting with this problem some more. I have rebuilt my application with all new files and still had the same problem UNTIL I switched from go to URL popup window (native only) to just go to URL new window.

    Everything seems to work much faster, smoother, and https to twitter works now and it did not using go to URL popup window (native only).

    I am using shorter URLs but still had failures when using go to URL popup window (native only) when I enabled all the screens.

    So my conclusion is that the go to URL popup window (native only) is not handling the native stack properly and corrupts the bridge between mobione and phonegap.

    Please hurry on making it easier for phonegap upgrades. You really need to do it like sencha just drop in .js and go no waiting for a new release of mobione to get access to current cordova features. PLEASE!

    #328135

    cng_1
    Member

    Upgrade 2.0.3 did not solve the problem. Still crashing.
    Was cordova upgraded ?

    #328148

    support-michael
    Keymaster

    @cng_1

    >Was cordova upgraded ?

    No updates to cordova in 2.0.3. This problem is in our queue. We will update you as soon as we get into it deeper.

    #328194

    cng_1
    Member

    Please see topic http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=3251&p=8743#p8743

    It seems waiting for the framework to load is critical.

    We could close this thread. I’ll post again if problem returns.

    Thank you.

    #328268

    cng_1
    Member

    This problem unfortunately has not gone away. Still having random crashes.

    Sometimes as soon as phone gap is called other times after calling phonegap functions.

    Do you know of a way to see a log that shows crash dump on the android phone?

    #328302

    Hi cng_1,

    Could you share a build ID and also the design files that you’re using to replicate the issue? To keep the data in privacy send them via support at genuitec dot com. Use title: “mobione data from cng_1”

    #328303

    support-michael
    Keymaster

    @cng_1

    A quick note on this topic.
    We will do our best to investigate this problem but we are not officially supporting general phonegap api usage yet. The type of problem you are encountering is an example. We have not vetted all the apis across iOS and android. Android especially is a pain due to the many diff versions and devices. Our plan is to update cordova, the Test Center emulator with cordova api emulation and perform massive testing across the apis before we green light and begin official support.

    So my point is we definitely want to assist as much as possible but we have to balance research this issue with other officially supported cases.

    #328306

    cng_1
    Member

    I would think if I am building a mobile app generator I would focus on mobile device issues like phonegap and get that bullet proof first. Just my humble opinion.

    In a previous post I mentioned that it seemed to be related to long urls (see note above).

    In this app I have a dozen image buttons that goto url. Using 2, 3,4 or more button taps and going to web sites before doing a camera action seemed to create problems.

    I have removed all long urls and I have used a url shortener to see if the problem goes away. I have been testing occasionally yesterday and today to see if the app fails. Right now it is not failing.

Viewing 15 posts - 1 through 15 (of 15 total)
Reply To: phonegap crash on android

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