Wish Error report when app end because of an error

Discussion in 'Bugs & wishlist' started by kohle, Apr 24, 2015.

  1. kohle

    kohle Active Member Licensed User

    Hi,

    there is a mixed situation. When an installed app (RELEASE MODE) on a smartphone crash,
    there are 2 types of an error message :

    1)
    An java error message, nearly same like in the debug modus (Thats fine)

    2)
    Messagebox : Program has stopped.


    My problem is point 2.
    When an app crashes, and it´s installed from playstore I can see an error report
    in the developer console.

    When its´not installed via google, for test reason ....how I get the infos, without debugging.
    I dont want logging, I want only the last error message.

    The app runs on several phones of my family at several places for testing.

    Is it possible to show an error, like google or the debugger does ?


    rgs
    Kohle
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    If you check the logs then you will see the full error message in both cases.
     
  3. kohle

    kohle Active Member Licensed User

    Yes. I know about usb debugging.

    But there is time after testing :
    I am talking about the time when the app runs on the phones of users.
    Maybe an new update of the app was installed.

    The b4a message : Programm has stopped
    Without error code , nothing more ?
    At this time it´s not possible to show the last error code, or something ?


    rgs
    Kohle
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    This is not a b4a message. This is an OS message. A crash report should be created if the user chooses to send one (for store apps).
     
  5. kohle

    kohle Active Member Licensed User

    Hi,

    The first screenshot shows an error message of my app. In this time the phone was connected via usb debugging.
    The error appears after some hours when the phone is not in use. I cant reproduce it constantly. Sometimes
    the app runs a day without error.

    The second screenshot shows how it should be.
    I am using the ultimate listviewer. When the error occurs, it looks on the first screenshot, that the ulv view is not shown.

    I have a service running what check incoming sms. (SI_MessageReceived)
    If a message receive, I call StartActivity(Main)

    In the Main resume event I check
    If ULV2.IsInitialized = False Then
    ULV2.Initialize(0, 0, "", "ulv2")
    ....

    I have the feeling that my main activity is some how killed from the system and my service is still running, because of Startforeground.
    When an sms comes in and my service runs StartActivity(Main) than something goes wrong.


    Here the log :

    ** Service (sv_control) Destroy **
    ** Activity (main) Pause, UserClosed = false **
    ** Activity (setup) Create, isFirst = true **
    ** Activity (setup) Resume **
    ** Activity (setup) Pause, UserClosed = true **
    ** Activity (main) Resume **
    ** Service (sv_control) Create **
    ** Service (sv_control) Start **
    ** Activity (main) Pause, UserClosed = true **
    InsertMaps (first query out of 1): INSERT INTO [t_log] ([status], [lati], [longi], [day], [time], [switches], [counter], [carcode]) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
    ** Activity (main) Create, isFirst = false **
    ** Activity (main) Resume **
    ** Service (sv_control) Destroy **
    ** Service (sv_control) Create **
    ** Service (sv_control) Start **
    ** Activity (main) Pause, UserClosed = false **
     

    Attached Files:

  6. Erel

    Erel Administrator Staff Member Licensed User

    The logs don't include the error message which is quite strange.

    You should expect the activity to be killed and later recreated. Make sure that you are not loading the layout only when FirstTime is true.
     
  7. kohle

    kohle Active Member Licensed User

    The layout is loaded everytime when create, but I stop and start the service before loading the layout.

    I will try this:
    - I will change my app that the service will be started when firsttime is true and check if the service is paused in the resume.

    Thanks
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice