Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with refresh when host is not found... #3

Open
mjuarez opened this issue Mar 10, 2011 · 7 comments
Open

Bug with refresh when host is not found... #3

mjuarez opened this issue Mar 10, 2011 · 7 comments
Labels

Comments

@mjuarez
Copy link

mjuarez commented Mar 10, 2011

I've discovered a bug where Control is unable to recover from. If an interface I'm working on has an address (let's say http://location1.com) that goes down, when I relaunch the program. Control will display a blank black screen with no ability to popup the toolbar to select a new interface.

An ideal operation would be for Control to throw up an error dialog that says, "Unable to connect to host." Then ignore trying to "reload" the interface from the address when the program is restarted.

So far the only way I can get Control working again, is by deleting the application and reinstalling it from the App Store.

@charlieroberts
Copy link
Owner

Even force quitting and restarting doesn't work? I've never seen a bug like that...

The steps to reproduce this are (tell me if I'm correct):

  1. Load an interface from a URL
  2. "Quit" Control (put it as a background task)
  3. Take the URL that the interface was loaded from offline
  4. "Restart" Control (make it the foreground app)
  5. Attempt to start interface

Let me know if this is what you're talking about and I'll look into it. Thanks! - Charlie

@mjuarez
Copy link
Author

mjuarez commented Mar 11, 2011

These are the steps I did to recreate the problem.

On a laptop with Web Sharing enabled, I point my iPad to the interface
at the address
http://192.168.2.10/~mjuarez/controlosc/testlayout.js

If I either turn off web sharing, my IP changes, I switch to a
different network, and I press a Refresh button on my interface...
Either the screen will go completely black and I'm unable to bring up
a toolbar, or... nothing will happen until I relaunch Control in
which case it will bring up a black screen also.

Yes, I'm able to force quit the application and restart it. Is there
a way Control can throw up an error message or something if it isn't
able to resolve an address?

On Thu, Mar 10, 2011 at 9:40 AM, charlieroberts
[email protected]
wrote:

Even force quitting and restarting doesn't work? I've never seen a bug like that...

The steps to reproduce this are (tell me if I'm correct):

  1. Load an interface from a URL
  2. "Quit" Control (put it as a background task)
  3. Take the URL that the interface was loaded from offline
  4. "Restart" Control (make it the foreground app)
  5. Attempt to start interface

Let me know if this is what you're talking about and I'll look into it. Thanks! - Charlie

#3 (comment)

Michael Juarez
510.394.4684

@charlieroberts
Copy link
Owner

OK, great. Yes, there should be a way to handle unreachable IP addresses.

@billieblaze
Copy link

I can confirm this issue, it looks like we need an error callback on refreshInterface - This is a good place to put some jquery imo, I've toyed with getScript a little in loading interfaces straight into the DOM w/o having to eval.. I'll check this out once I get some of the 1.4 changes over to android

@charlieroberts
Copy link
Owner

How do you do it without eval? I guess you could use DOM methods and add a src tag instead, but I don't see what the benefit of that would be...

@billieblaze
Copy link

In playing with interfaceManager I was able to $.getScript('interface.js', function(data){ Control.interface=data

Then I was able to use jquerys error callbacks

charlieroberts [email protected] wrote:

How do you do it without eval? I guess you could use DOM methods and add a src tag instead, but I don't see what the benefit of that would be...


Reply to this email directly or view it on GitHub:
#3 (comment)

@charlieroberts
Copy link
Owner

OK, thanks, I'll look into that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants