Cant Connect to App

Id's Avatar

Id

15 Mar, 2018 03:53 PM

When trying the sample app, I get a timeout error for reveal. I've tried and read the dns-sd related knowledge base article and all of the output was as expected.

Also I see this message in XCode saying that Reveal is started:

Loading Reveal Server from /Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/RevealServer.framework/RevealServer.

  1. 1 Posted by id on 20 Mar, 2018 07:20 PM

    id's Avatar

    bueller? Bueelller?

  2. Support Staff 2 Posted by Tony Arnold on 20 Mar, 2018 10:35 PM

    Tony Arnold's Avatar

    Hi,

    Please accept my apologies for the delay in replying.

    Loading Reveal Server from /Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/RevealServer.framework/RevealServer

    Is there nothing at all printed after that in the console? Normally there'd be some kind of failure/success message.

    thanks,

    Tony

  3. 3 Posted by Id Raja on 23 Mar, 2018 04:58 PM

    Id Raja's Avatar

    I’m loading Reveal through a Symbolic Xcode Breakpoint, and it seems to
    load successfully. What’s the next step to debug this?

    Cheers

    Console Output:

    Loading Reveal Server from
    /Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/RevealServer.framework/RevealServer...
    Reveal Server was loaded successfully

  4. Support Staff 4 Posted by Tony Arnold on 26 Mar, 2018 10:17 PM

    Tony Arnold's Avatar

    It sounds like Reveal Server is loading, but it's not printing the start message. Can you please try updating the breakpoint command to be:

    reveal load --autostart
    

    And see if that helps? Thanks!

  5. 5 Posted by Id Raja on 27 Mar, 2018 02:12 PM

    Id Raja's Avatar

    Hi Tony,

    I tried changing the breakpoint like you suggested, but that did not work.

    I tried some more debugging, with these results that seem to show
    everything is in order. What should I try next?

    Thanks

    ~ ᐅ dns-sd -B _reveal._tcp local

    Browsing for _reveal._tcp.local
    DATE: ---Tue 27 Mar 2018---
     9:06:06.480 ...STARTING...
    Timestamp A/R Flags if Domain Service Type
    Instance Name
     9:06:06.481 Add 2 -1 local. _reveal._tcp.
     Reveal--c465d187
    ^C

    ~ ᐅ export REVEAL=Reveal—c465d187

    ~ ᐅ echo $REVEAL

    Reveal--c465d187

    ~ ᐅ dns-sd -L ${REVEAL} _reveal._tcp.
    Lookup Reveal--c465d187._reveal._tcp..local
    DATE: ---Tue 27 Mar 2018---
     9:07:25.609 ...STARTING...
     9:07:25.610 Reveal--c465d187._reveal._tcp.local. can be reached at
    localhost.:49943 (interface -1)
     isSim=true devSysName=iOS devSysVer=11.2 appExtTypeId= protoVer=42
    appBundleId=com.myApp.myApp appName=myApp appIsExt=false appShortVers=0.9
    devLocalModel=iPad deviceID=iraja-osx-iOS-11.2 devName=iraja-osx
    devModel=iPad appVers=1
    ^C

    ~ ᐅ curl -s -D - http://localhost:49943/application -o /dev/null

    HTTP/1.1 200 OK
    Content-Type: application/json; charset=utf-8
    Reveal-Protocol-Version: 42
    Reveal-Device-Simulator: YES
    Reveal-System-Name: iOS
    Accept-Ranges: bytes
    Date: Tue, 27 Mar 2018 14:08:10 GMT
    Reveal-System-Version: 11.2
    Content-Length: 1271799
    Reveal-Device-Model: iPad

  6. Support Staff 6 Posted by Tony Arnold on 28 Mar, 2018 01:04 AM

    Tony Arnold's Avatar

    Hi Id,

    Sorry about this - let's keep digging:

    In the Bonjour Debugging Article you read earlier, there's a section on checking whether your connection is firewalled by the system firewall, or by a tool like Little Snitch, as well as checking if your /etc/hosts has been modified in any way.

    Could you do that and let me know what you find?

    thanks,

    Tony

  7. 7 Posted by Id Raja on 04 Apr, 2018 02:33 PM

    Id Raja's Avatar

    Hi Tony,

    I’ve checked my `/etc/hosts` file, and it is unaltered.

    I also turned off `iStats Menu`, which could have been interfering. After
    quitting it, the problem persists - I can’t see any apps in Reveal.

    Additionally I have another machine on the same network that works with the
    same test app and the same edition of Reveal.

    What else could it be?

    Thanks,
    Id

  8. Support Staff 8 Posted by Tony Arnold on 08 Apr, 2018 10:58 PM

    Tony Arnold's Avatar

    Hi Id,

    My guess is that it's timing out due to something in your view hierarchy - I really need you to turn on higher levels of logging to see if this is happening. You can do this as shown in our KB article on configuring Reveal Server: http://support.revealapp.com/kb/tips-tricks/revealserver-configurat...

    Unfortunately, I've no experience with Visual Studio for Mac/Xamarin Studio, so I'm really not sure how you pass variables to the iOS app when running it.

    If you can work this out, we'd need something like:

    -IBARevealServerLogLevel DEBUG,INFO,WARN,ERROR
    

    I'll see what I can find out about setting the command line arguments via VS for Mac.

  9. 9 Posted by Id Raja on 09 Apr, 2018 03:36 PM

    Id Raja's Avatar

    Hi Tony,

    I can't get Reveal to work with the sample app "Soundstagram", so that
    eliminates the possibility that my code in a view hierarchy is causing
    Reveal to not work.

    Also, I am not running cross platform code. ie, I'm trying to use Reveal to
    debug native iOS code developed with XCode.

    I have just updated to Reveal 14 and the problem still persists.

    Best,
    Id

  10. Support Staff 10 Posted by Tony Arnold on 16 Apr, 2018 12:24 AM

    Tony Arnold's Avatar

    Could you please try something for me?

    We added this as a debugging override in Reveal 9: IBAHierarchyRequestTimeout

    It allows Reveal to wait longer before timing out:

    1. Quit Reveal if it is running
    2. In your terminal, enter defaults write com.ittybittyapps.Reveal2 IBAHierarchyRequestTimeout 60 (where 60 is the number of seconds you would like Reveal to wait before timing out)
    3. Re-launch Reveal and connect to your app.

    If you ever need to revert the settings, simply execute defaults delete com.ittybittyapps.Reveal2 IBAHierarchyRequestTimeout in your terminal.

    Thanks for being patient.

  11. Support Staff 11 Posted by Oliver Jones on 16 Apr, 2018 12:25 AM

    Oliver Jones's Avatar

    Hi Id,

    Also, can you tell us how long requesting the Reveal data at the command line takes?

    Run time curl -s -D - http://localhost:49943/application -o /dev/null at the command line (updating the port number appropriately).

    Regards

  12. 12 Posted by Id Raja on 17 Apr, 2018 03:52 PM

    Id Raja's Avatar

    ~> time curl -s -D - http://localhost:49943/application -o /dev/null
    curl -s -D - http://localhost:49943/application -o /dev/null 0.01s user
    0.01s system 19% cpu 0.068 total

    Also of interest, the Reveal Python library has bugs as you can see as I
    try to invoke the lldb commands from the Xcode console:

    (lldb) reveal start
    Traceback (most recent call last):
      File
    "/Applications/Reveal.app/Contents/SharedSupport/Scripts/RevealServerCommands.py",
    line 83, in HandleRevealCommand
        args.func(loader, result, args)
      File
    "/Applications/Reveal.app/Contents/SharedSupport/Scripts/RevealServerCommands.py",
    line 106, in HandleRevealStartCommand
        if loader.isRevealServerLoaded():
      File
    "/Applications/Reveal.app/Contents/SharedSupport/Scripts/RevealServerCommands.py",
    line 158, in isRevealServerLoaded
        pointerValue = int(value, 16)
    TypeError: int() can't convert non-string with explicit base
    (lldb) reveal stop
    Traceback (most recent call last):
      File
    "/Applications/Reveal.app/Contents/SharedSupport/Scripts/RevealServerCommands.py",
    line 83, in HandleRevealCommand
        args.func(loader, result, args)
      File
    "/Applications/Reveal.app/Contents/SharedSupport/Scripts/RevealServerCommands.py",
    line 112, in HandleRevealStopCommand
        if loader.isRevealServerLoaded():
      File
    "/Applications/Reveal.app/Contents/SharedSupport/Scripts/RevealServerCommands.py",
    line 158, in isRevealServerLoaded
        pointerValue = int(value, 16)
    TypeError: int() can't convert non-string with explicit base
    (lldb) reveal status
    Traceback (most recent call last):
      File
    "/Applications/Reveal.app/Contents/SharedSupport/Scripts/RevealServerCommands.py",
    line 83, in HandleRevealCommand
        args.func(loader, result, args)
      File
    "/Applications/Reveal.app/Contents/SharedSupport/Scripts/RevealServerCommands.py",
    line 118, in HandleRevealStatusCommand
        if loader.isRevealServerLoaded():
      File
    "/Applications/Reveal.app/Contents/SharedSupport/Scripts/RevealServerCommands.py",
    line 158, in isRevealServerLoaded
        pointerValue = int(value, 16)
    TypeError: int() can't convert non-string with explicit base
    (lldb) reveal load
    Traceback (most recent call last):
      File
    "/Applications/Reveal.app/Contents/SharedSupport/Scripts/RevealServerCommands.py",
    line 83, in HandleRevealCommand
        args.func(loader, result, args)
      File
    "/Applications/Reveal.app/Contents/SharedSupport/Scripts/RevealServerCommands.py",
    line 89, in HandleRevealLoadCommand
        loader.injectServer(binaryPath, result)
      File
    "/Applications/Reveal.app/Contents/SharedSupport/Scripts/RevealServerCommands.py",
    line 167, in injectServer
        if self.isRevealServerLoaded():
      File
    "/Applications/Reveal.app/Contents/SharedSupport/Scripts/RevealServerCommands.py",
    line 158, in isRevealServerLoaded
        pointerValue = int(value, 16)
    TypeError: int() can't convert non-string with explicit base

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac