Android Question error without sub name

Discussion in 'Android Questions' started by marcick, Jun 9, 2015.

  1. marcick

    marcick Well-Known Member Licensed User

    I have an app installed throught apk and not playstore. The user sees errors sometimes and send me the screenshot but I can't see the sub that generated the error (see picture).
    Which is the exact reason the sub name is not visible ?
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    The error didn't happen inside any sub. It is hard to what is the error without the logs.

    It can happen for example if a service fails to start for some reason.
     
  3. marcick

    marcick Well-Known Member Licensed User

    Understand. Two more questions:

    1) Is there somewhere in the device a log file that I can ask the user to send me ? Or the log is effective only when the device is connected to the pc in debug mde ?
    2) If the app is installed throught the playstore, would the user always see the option to send the report to the developer or does it depends ?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    There is no log file. If he is using Android version less than 4.1 then he can install an app that reads the logs and he will be able to send you the full error message. He needs
     
  5. marcick

    marcick Well-Known Member Licensed User

    No, he is running KitKat, anyway I was able to reproduce here the bug, with my Lollipop device connected to USB.
    The error appear in a sub of the main activity, the last line of this code:

    Code:
    Dim websynctable As Map
    websynctable.Initialize
    If File.Exists(AppPath, "WebSyncRDC.ini"Then
      websynctable = 
    File.ReadMap(AppPath, "WebSyncRDC.ini")
      MySub.RDC_Password1=websynctable.Get(
    "RDC_Password1")       
      MySub.Fwd_Enabled=websynctable.Get(
    "Fwd_Enabled")
    The error is caused by a mismatch between the variable type and the value stored in the map, so I have solved, but why the sub name is not wisible in the error ?
    Also if I run in debug mode, the program end with the error in the log windows (without the sub name where occoured) but the IDE does not halt on the line of the error.
    I had to run it step by step to see wich was the wrong line .
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Are you using the rapid debugger? Are you running B4A v5.00?
     
  7. marcick

    marcick Well-Known Member Licensed User

    Yes, vs 5.00
    Ok, in legacy debugger the program halts on the wrong line (not in rapid).
    But in release-obfuscated the program just stop with that error in the screensshot above, without reporting the generating sub.
    The log also does not contain the sub name, just "java.lang.NumberFormatException: Invalid double: "false""
    May be this is because the sub (in the main activity) is called by a service with a CallSubDelayed ?
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    Are you able to reproduce it in rapid debug mode?
     
  9. marcick

    marcick Well-Known Member Licensed User

    I had different behaviour yesterday in rapid
    Now:

    1) in legacy is perfect, the error is in the log, the wrong line is highlighted in the editor and appears in a progressialog on the device.
    2) in rapid the device just stop the execution (return to home screen) and the log specify the error and the line number in the Main code.
    3) in release I have the error in the picture above but I can't know where it happened.

    In all the above three situations, the sub name does not appear.
     
  10. marcick

    marcick Well-Known Member Licensed User

    here a simple test project. In a sub, I write a boolean in a map and try to read it back as an int
    If you run in release you can't see the sub name where the error is occoured.
    Perhaps i'm a bit confusing (no more free space in my head ...): is this behaviour correct ?
    Wasn't some time ago visible also the sub name ?
     

    Attached Files:

  11. Erel

    Erel Administrator Staff Member Licensed User

    I see it too. It is fixed for the next update.
     
  12. marcick

    marcick Well-Known Member Licensed User

    Good, thanks
     
Loading...