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

Simulator freezing when launching an app #20

Open
priand opened this issue Sep 2, 2014 · 0 comments
Open

Simulator freezing when launching an app #20

priand opened this issue Sep 2, 2014 · 0 comments
Labels

Comments

@priand
Copy link

priand commented Sep 2, 2014

I'm getting a weird issue when launching the simulator from Eclipse. I banged my head on the wall until I found some conditions where it does not happen all the times, so I can make progress on my app.
Basically, the simulator freezes right after I launch it from Eclipse. The initial page is displayed, but then clicks are not handled, nor you can scroll if it is a table view. I reproduced it easily with the simple UICatalog from robovm-samples.
I found out that:

  • It doesn't happen systematically
  • It appears way more often when 'Debug' is chosen in Eclipse instead of 'Run'
  • Seems that it appears also more often when the device is scaled to 50%, although I have no proof for this
  • When frozen, you can go to the simulator home page, kill the app, relaunch it from the icon that was installed and it works...
    It is like a race condition. The slower the machine is, the more often it seems to happen. In particular when this is executed within a VM, which is slower by definition.

Here how I can reproduce it almost systematically on my own machines. I don't know why adding a class makes it worse.

  • Import the UICatalog to your Eclipse workspace
  • Launch it in the iPhone simulator, in debug: works
  • Copy/paste ButtonViewController in the same package and name the copy ButtonViewController2
  • Open MainViewController and create an instance of this new button view after the existing one
    // for showing various UIButtons:
    ButtonsViewController buttonsViewController = new ButtonsViewController();
    ButtonsViewController2 buttonsViewController2 = new ButtonsViewController2();
  • Stop the previous process and launch UICatalog again
    -> the main UI view displays the list, but it seems frozen. It doesn't handle clicks, nor it enables scrolling. As soon as you remove the creation of new ButtonViewController2 (comment it out) then it works again. The view doesn't have to be even added to the menuList collection.

Let me know if you want more details. I can send whatever you want/need to better understand the issue. I can also offer a remote session in case you need it to investigate the issue.

@ntherning ntherning added the bug label Aug 13, 2015
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

2 participants