1. dpgo's Avatar
    I would like to know what is the cause for which some android apps are failing on the android runtime,

    Using a debug logger i extracted errors from output logs for Waterfox v56 and Firefox Fennec v60 but i am not sure what is the exact problem.
    Note: From below log lines i removed some common errors and warnings that appears in waterfox v55 (which works fine) but if somene wants the complete log files I will send.

    logs from fennec v60

    .....
    E/GeckoApp(65589503): An error occurred during restore, switching to backup file
    E/GeckoApp(65589503): org.mozilla.gecko.GeckoApp$SessionRestoreException : Could not read from session file
    E/GeckoApp(65589503): at org.mozilla.gecko.GeckoApp.restoreSessionTabs(Geck oApp.java:1558)
    E/GeckoApp(65589503): at org.mozilla.gecko.GeckoApp.access$200(GeckoApp.jav a:106)
    E/GeckoApp(65589503): at org.mozilla.gecko.GeckoApp$9.run(GeckoApp.java:113 8)
    E/GeckoApp(65589503): at android.os.Handler.handleCallback(Handler.java:730 )
    E/GeckoApp(65589503): at android.os.Handler.dispatchMessage(Handler.java:92 )
    E/GeckoApp(65589503): at android.os.Looper.loop(Looper.java:137)
    E/GeckoApp(65589503): at org.mozilla.gecko.util.GeckoBackgroundThread.run(G eckoBackgroundThread.java:43)
    E/GeckoApp(65589503): An error occurred during restore
    E/GeckoApp(65589503): org.mozilla.gecko.GeckoApp$SessionRestoreException : Could not read from session file
    E/GeckoApp(65589503): at org.mozilla.gecko.GeckoApp.restoreSessionTabs(Geck oApp.java:1558)
    E/GeckoApp(65589503): at org.mozilla.gecko.GeckoApp.access$200(GeckoApp.jav a:106)
    E/GeckoApp(65589503): at org.mozilla.gecko.GeckoApp$9.run(GeckoApp.java:115 6)
    E/GeckoApp(65589503): at android.os.Handler.handleCallback(Handler.java:730 )
    E/GeckoApp(65589503): at android.os.Handler.dispatchMessage(Handler.java:92 )
    E/GeckoApp(65589503): at android.os.Looper.loop(Looper.java:137)
    E/GeckoApp(65589503): at org.mozilla.gecko.util.GeckoBackgroundThread.run(G eckoBackgroundThread.java:43)
    .....
    I/dalvikvm(65589503): Could not find method android.content.Context.getSystemService, referenced from method org.mozilla.gecko.util.ShortcutUtils.createHomescr eenIcon26
    W/dalvikvm(65589503): VFY: unable to resolve virtual method 471: Landroid/content/Context;.getSystemService (Ljava/lang/ClassLjava/lang/Object;
    I/dalvikvm(65589503): Could not find method android.content.Context.getSystemService, referenced from method org.mozilla.gecko.util.ShortcutUtils.isPinShortcut Supported26
    W/dalvikvm(65589503): VFY: unable to resolve virtual method 471: Landroid/content/Context;.getSystemService (Ljava/lang/ClassLjava/lang/Object;
    ....
    ....
    ....
    E/GeckoLinker(65589503): /data/app/org.mozilla.fennec_fdroid-1.apk!/assets/armeabi-v7a/libxul.so: Relocation to NULL @0x0382a774 for symbol "isnanf"
    E/GeckoLibLoad(65589503): Couldn't get a handle to libxul!
    E/GeckoLibLoad(65589503): Throw
    W/GeckoThread(65589503): Clearing cache after load libs exception
    W/GeckoThread(65589503): java.lang.Exception: Error loading gecko libraries
    W/GeckoThread(65589503): at org.mozilla.gecko.mozglue.GeckoLoader.loadGeckoLib sNative(Native Method)
    W/GeckoThread(65589503): at org.mozilla.gecko.mozglue.GeckoLoader.loadGeckoLib s(GeckoLoader.java:441)
    W/GeckoThread(65589503): at org.mozilla.gecko.GeckoThread.loadGeckoLibs(GeckoT hread.java:266)
    W/GeckoThread(65589503): at org.mozilla.gecko.GeckoThread.initGeckoEnvironment (GeckoThread.java:288)
    W/GeckoThread(65589503): at org.mozilla.gecko.GeckoThread.run(GeckoThread.java :403)
    I/Choreographer(65589503): Skipped 38 frames! The application may be doing too much work on its main thread.
    I/ActivityManager(12136472): Displayed org.mozilla.fennec_fdroid/org.mozilla.gecko.BrowserApp: +1s870ms (total +2s788ms)
    ....
    ....
    W/ActivityManager(12136472): Activity pause timeout for ActivityRecord{35872ad0 u0 org.mozilla.fennec_fdroid/org.mozilla.gecko.BrowserApp}
    I/QNXNavigatorClient(12136472): PackagesOpenedRunnable: [com.qnx.android.app.launcher]
    I/QNXNavigatorClient(12136472): canJoinGroup: null shell
    ...
    ....
    I/QNXNavigatorClient(12136472): onWindowCover: cid=759363168424189 enter=false
    I/QNXNavigatorClient(12136472): onDisconnected: 759363168424189
    I/ActivityManager(12136472): remove task 69
    I/ActivityManager(12136472): Killing 65589503rg.mozilla.fennec_fdroid/u0a10221: remove task
    I/ActivityManager(12136472): Force stopping package org.mozilla.fennec_fdroid appid=10221 user=-1
    I/ActivityManager(12136472): Killing proc 65589503rg.mozilla.fennec_fdroid/u0a10221: force stop org.mozilla.fennec_fdroid
    I/WindowState(12136472): WIN DEATH: Window{357596f8 u0 org.mozilla.fennec_fdroid/org.mozilla.gecko.BrowserApp}
    W/WindowManager(12136472): Force-removing child win Window{358af4a8 u0 SurfaceView} from container Window{357596f8 u0 org.mozilla.fennec_fdroid/org.mozilla.gecko.BrowserApp}
    W/WindowManager(12136472): Failed looking up window
    W/WindowManager(12136472): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@35801e10 does not exist
    W/WindowManager(12136472): at com.android.server.wm.WindowManagerService.windowF orClientLocked(WindowManagerService.java:8010)
    W/WindowManager(12136472): at com.android.server.wm.WindowManagerService.windowF orClientLocked(WindowManagerService.java:8001)
    W/WindowManager(12136472): at com.android.server.wm.WindowState$DeathRecipient.b inderDied(WindowState.java:1018)
    W/WindowManager(12136472): at android.os.BinderProxy.sendDeathNotice(Binder.java :470)
    W/WindowManager(12136472): at dalvik.system.NativeStart.run(Native Method)
    I/WindowState(12136472): WIN DEATH: null
    I/QNXNavigatorClient(12136472): onWindowState: cid=737025023131888 state=invisible
    I/QNXNavigatorClient(12136472): onWindowState: cid=642162069164275 state=invisible
    I/QNXNavigatorClient(12136472): onWindowState: cid=642162069164275 state=thumbnail
    I/QNXNavigatorClient(12136472): onWindowState: cid=737025023131888 state=thumbnail
    I/QNXNavigatorClient(12136472): onWindowState: cid=642162069164275 state=invisible
    I/QNXNavigatorClient(12136472): onWindowState: cid=737025023131888 state=invisible
    I/navigatorshell(65601789): [sys.android.shell.gYABgCWpLq.7ipa6NFYT0JaLpt8]
    I/navigatorshell(65601789): using URI from env
    I/QNXNavigatorClient(12136472): onConnected: 759590801703165
    I/PPSNavigatorControl(12136472): Received launch with android_uri: android://org.mozilla.fennec_fdroid?activity-name=org.mozilla.fennec_fdroid.App%26dname%3Dorg.m ozilla.fennec_fdroid.andrB0O96mBCvIPezlPT5J7cjsA%2 6perimeter%3D
    I/QNXNavigatorClient(12136472): onInvoke: param invokeData={"action":"bb.action.android.LAUNCH","a ndroid_uri":"android:\/\/org.mozilla.fennec_fdroid?activity-name=org.mozilla.fennec_fdroid.App%26dname%3Dorg.m ozilla.fennec_fdroid.andrB0O96mBCvIPezlPT5J7cjsA%2 6perimeter%3D"}
    I/QNXNavigatorClient(12136472): onInvoke: angle=0, URL=android://org.mozilla.fennec_fdroid/?activity-name=org.mozilla.fennec_fdroid.App&dname=org.mozil la.fennec_fdroid.andrB0O96mBCvIPezlPT5J7cjsA&perim eter=, pid=65601789
    I/QNXNavigatorClient(12136472): Package installed
    I/ActivityManager(12136472): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10214000 cmp=org.mozilla.fennec_fdroid/.App} from pid 12136472
    I/QNXNavigatorClient(12136472): Already active: org.mozilla.fennec_fdroid
    I/QNXNavigatorClient(12136472): onWindowState: cid=759590801703165 state=fullscreen
    I/QNXNavigatorClient(12136472): canJoinGroup: cid=759590801703165 (org.mozilla.fennec_fdroid) shell has no package
    I/QNXNavigatorClient(12136472): onActive: cid=759590801703165 true
    Last edited by dpgo; 05-21-18 at 09:05 AM. Reason: code was missing
    05-18-18 09:37 AM
  2. Dunt Dunt Dunt's Avatar
    Sorry but you using an OS that is using a part of an Android Runtime based on a 2013 version of Android, and it's now 2018.

    FireFox is known to have problems with BB10...

    I'd focus more on what does work, rather than trying to figure out why something won't work... With BB10, I'd search first to see how other are fairing with an particular app... then see if it works.
    05-18-18 01:16 PM
  3. dpgo's Avatar
    Firefox is mean to work on Android v4.x, and in fact it works (at least for some seconds).
    Being FF opensource i think it is extremely useful to detect the problem because maybe there is an easy solution, maybe not. Why not try?
    Btw recently I find out apps which were not working or working bad, and now they work fine in these old devices


    Posted via CB10
    05-18-18 01:42 PM
  4. Dunt Dunt Dunt's Avatar
    Firefox is mean to work on Android v4.x, and in fact it works (at least for some seconds).
    Being FF opensource i think it is extremely useful to detect the problem because maybe there is an easy solution, maybe not. Why not try?
    Btw recently I find out apps which were not working or working bad, and now they work fine in these old devices


    Posted via CB10
    Because it's not an Android 4.3 phone... not all Android components are included in the Runtime, so some apps don't work well with it.

    If you have the time and interest to fix it.. go for it. But if you search CrackBerry you'll see the FireFox was buggy long ago, back when there were a lot more users and more of an interest in making things work.

    If you have fixed other apps or found certain older ones that do work well... you might want to share that with others. And keep it updated. And I'm sure that many would love to know if you get Fire Fox to work, with the condition of the native browser...
    05-18-18 01:52 PM
  5. Ment's Avatar
    maybe the runtime limits resources that a browser needs like memory so even though the API level is compatible , the app won't run well or crashes. Firefox on Android is undergoing alot of development to catch up to features on the desktop so perhaps optimization is coming later.
    05-18-18 01:53 PM
  6. Dunt Dunt Dunt's Avatar
    maybe the runtime limits resources that a browser needs like memory so even though the API level is compatible , the app won't run well or crashes. Firefox on Android is undergoing alot of development to catch up to features on the desktop so perhaps optimization is coming later.
    I suspect it will... but also suspect they'll limit their compatiblity with older API levels, to help with the optimization.

    Don't think future development is going to help BB10 be more compatible.
    05-18-18 02:10 PM
  7. doberchester's Avatar
    I would like to know what is the cause for which some android apps are failing on the android runtime,

    Using a debug logger i extracted errors from output logs for Waterfox v56 and Firefox Fennec v60 but i am not sure what is the exact problem.
    Note: From below log lines i removed some common errors and warnings that appears in waterfox v55 (which works fine) but if somene wants the complete log files I will send.

    logs from fennec v60

    .....
    Hey dpgo, thanks for looking into this! We do need a working latest Fx, and to be honest v57.0.1 doesn't look too different so the breakage must be something very minimal. Hopefully. Have you shown this to the upstream developers? Please do!
    05-21-18 07:44 AM
  8. dpgo's Avatar
    I just realized that the error log was incomplete, I pasted the complete code but it is seems that crackberry page removed a big part of code.

    Now the1st post includes much more info

    Posted via CB10
    05-21-18 09:09 AM
  9. doberchester's Avatar
    I just realized that the error log was incomplete, I pasted the complete code but it is seems that crackberry page removed a big part of code.

    Now the1st post includes much more info

    Posted via CB10
    E/GeckoLinker(65589503): /data/app/org.mozilla.fennec_fdroid-1.apk!/assets/armeabi-v7a/libxul.so: Relocation to NULL @0x0382a774 for symbol "isnanf"
    E/GeckoLibLoad(65589503): Couldn't get a handle to libxul!

    is where it loads the UI, XUL is the UI layout specification. Wonder if we could just swap libxul.so with the one from v57.0.1.
    05-21-18 06:44 PM
  10. dpgo's Avatar
    thanx @doberchester
    for comparation see the error log for libxul.so on Waterfox55(which works fine)

    W/GeckoLinker(65683721): /data/app/org.waterfoxproject.waterfox-1.apk!/assets/armeabi-v7a/libxul.so: unhandled flags #8 not handled
    W/GeckoLinker(65683721): /data/app/org.waterfoxproject.waterfox-1.apk!/assets/armeabi-v7a/liblgpllibs.so: unhandled flags #8 not handled
    W/ActivityThread(65683721): ClassLoader.loadClass: The class loader returned by Thread.getContextClassLoader() may fail for processes that host multiple applications. You should explicitly specify a context class loader. For example: Thread.setContextClassLoader(getClass().getClassLo ader());


    E/GeckoLinker(65589503): /data/app/org.mozilla.fennec_fdroid-1.apk!/assets/armeabi-v7a/libxul.so: Relocation to NULL @0x0382a774 for symbol "isnanf"
    E/GeckoLibLoad(65589503): Couldn't get a handle to libxul!

    is where it loads the UI, XUL is the UI layout specification. Wonder if we could just swap libxul.so with the one from v57.0.1.
    05-22-18 02:50 AM
  11. doberchester's Avatar
    W/ActivityThread(65683721): ClassLoader.loadClass: The class loader returned by Thread.getContextClassLoader() may fail for processes that host multiple applications. You should explicitly specify a context class loader. For example: Thread.setContextClassLoader(getClass().getClassLo ader());
    At this point I suggest you try posting the logs on Bugzilla (https://bugzilla.mozilla.org/) or try to reach the devs on IRC.

    I've had a look through the v58 changelog and there are a few potential causes - https://www.ghacks.net/2018/01/22/firefox-58-0/. Could be the Off main thread painting but it's hard to guess.

    I'm getting even more surprised that v57 works on BB10 given how much of a rework it was.
    05-22-18 07:32 AM
  12. Krasimir Todorov's Avatar
    DOWNLOAD FILES FROM Google Play, HAVE ALL CERTIFICATES FROM OTHER SHOPS WILL VISIT VERSIA ANDROID MINIMUM ON YOUR DEVICE ,,, AMAZONE app ,,, YOU ARE NOT ALL CERTIFICATES AND ONLY OLD PROGRAM VERSIONS
    05-22-18 01:15 PM

Similar Threads

  1. Why we still love BlackBerry devices?
    By SubrataCB in forum General BlackBerry Discussion
    Replies: 11
    Last Post: Yesterday, 11:03 AM
  2. Why is my battery draining so quickly ?
    By varun116 in forum BlackBerry DTEK60
    Replies: 6
    Last Post: 05-21-18, 08:23 PM
  3. I dont have music/gallery default app
    By sherry qazi in forum BlackBerry Q5
    Replies: 1
    Last Post: 05-18-18, 09:17 AM
  4. Fruux calender app
    By Mister Perfect in forum BlackBerry PlayBook
    Replies: 1
    Last Post: 05-18-18, 09:09 AM
  5. Fruux calender app
    By Mister Perfect in forum BlackBerry Passport
    Replies: 0
    Last Post: 05-18-18, 06:13 AM
LINK TO POST COPIED TO CLIPBOARD