Android Question Help needed to interpret ANR report

Discussion in 'Android Questions' started by RandomCoder, Jun 4, 2015.

  1. RandomCoder

    RandomCoder Well-Known Member Licensed User

    I've got one review stating that they are unable to start my App on a Note 4 and in my Developer Console I have this report of an ANR which occurred on a "Lenovo X2 Pro (S7)" running Android 4.0.3-4.0.4 and the title of the ANR report is "ANR keyDispatchingTimeOut in b4a.upnpBrowser/.main"

    I have absolutely no idea what this means or where to start looking for the error, searching keydispatching yielded no results, can anyone shed some light on it for me?

    The App can be found here... https://play.google.com/store/apps/details?id=b4a.upnpBrowser&hl=en_GB


    The whole ANR report can be found in the file attached, it was too large to post it all here.
     

    Attached Files:

  2. fixit30

    fixit30 Active Member Licensed User

    Screenshot_2015-06-04-20-02-12.png I have a Note 4. Just tested your app and only saw my UPNP device once. Subsequent runs just showed a blank list view?

    My Device has Lolipop.

    Let me know if I can help you further.
     
  3. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Thank you for the offer of assistance. Does pressing the refresh button in the title bar clear the screen and display a toast message stating "Refreshing device list..."?
     
  4. fixit30

    fixit30 Active Member Licensed User

    Yes it does, but comes back with a blank list again...
     
  5. RandomCoder

    RandomCoder Well-Known Member Licensed User

    This is very strange. I've just run a test by turning off all my media servers but leaving my WiFi on the Tablet turned on so that it can communicate with the router and other non UPNP devices connected to the network and it correctly produces the following message...
    So I'm guessing that your phone is detecting a device on your network but for some reason not retrieving any description or icon file for that device. Does clicking on the blank item do anything?
    If I update the source code in the other forum (it's a project that I originally posted in the share your creations section along with the source) would you be willing to run it in debug mode to determine what is going on?
    What UPNP device do you have on your network? Maybe I could install the same on my network thus enabling me to do my own debugging and not trouble you any more?

    Thanks for the help this far!
     
  6. fixit30

    fixit30 Active Member Licensed User

    I'm more than happy to help you investigate further.

    OK. So I just fired up your app again and had the following displayed. I think I pressed the home button to exit the app. It seems to take a LONG time to populate the info.

    Screenshot_2015-06-04-20-40-57.png

    It is detecting a Thomson TG587n v2 router.

    Clicking on the device does nothing...
     
    Last edited: Jun 4, 2015
  7. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Well this is indeed strange as my App only searches for "urn:schemas-upnp-org:device:MediaServer:1" which are devices that contain and can stream Media. Do you have any media servers on your network e.g. TwonkyMedia, XBMC, OpenELEC, Windows Media Shares etc?
    Would you be willing to run the App through B4A using the Rapid debugger and send me the log either here or via PM?
    The source files can be found here UPNP Browser - Source Files Included
    You'll need B4A Version 4 but if you don't have that I can try converting it to an older version?

    The log provides a wealth of information, and if the Thompson router is broadcasting itself as a MediaServer then I may need to find a way to filter routers out of the list as I'm sure that if this one is doing it then there will be others also doing the same thing. As an example of what information if written to the log (only when running in debug mode), here is the first few lines of my log...
     
  8. fixit30

    fixit30 Active Member Licensed User

    It's getting late. I'll run your code in debug mode in the morning and post the results then.

    I don't run any media servers on my network. However the detected router has a USB port for a HDD. So I guess it can act as a media server?
     
  9. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Thanks, I'm currently working on a few improvements.
    I love a good problem/challenge to get stuck into :)
     
    Peter Simpson and fixit30 like this.
Loading...