Blend error: The device is not ready RRS feed

  • Question

  • What does it mean if blend prints this error message into the errors tab when opening my app? It does not say where in the specified default.html the error occurred or which device it is that caused the error. I am not even using a device in my js code.
    Thursday, March 1, 2012 3:48 PM

All replies

  • Hi,

    Thanks for reporting this issue. We would like to look into this issue with additional information from you.

    1. Can you confirm that if you close default.html, the error message is gone?
    2. Can you press F5 and run your app without any error?
    3. If you create a new project based on Grid application tempalte, do you still see "the device is not ready" error when default.html is opened?

    Thanks again,


    This posting is provided "AS IS" with no warranties, and confers no rights.

    • Edited by Zhanbo Thursday, March 1, 2012 6:42 PM formatting clean up
    Thursday, March 1, 2012 6:40 PM
  • Thank you Zhanbo for your reply.

    to 1: yes, the error message disappears if I close the default.html

    to 2: yes, the app runs @F5 from blend as well as from VS11 without any problems

    to 3: The Grid application does not seem to have this problem, there are no errors displayed and I can run it in interactive mode.

    Since the Grid app runs without the error, I assume its a problem in our startup code. I will try to "divide & conquer" the problem.

    further info:

    I could get rid of the error message by wrapping this call that was causing it:

      resourceMap = ResourceManager.current.mainResourceMap.getSubtree 'application'
    catch e
      console.log.error "i18n: Could not load application subtree from resource map", e

    Still, the app does not show up in blend like it is when I run it with F5.

    Thanks for your help!

    • Edited by phil_ke Friday, March 2, 2012 9:34 AM
    Friday, March 2, 2012 8:40 AM
  • Please create a bug for us to investigate this. Please provide the steps to create the problem, or attach a sample project that demonstrates the error.

    Bug filing form is here.



    Tuesday, March 6, 2012 6:25 PM
  • The steps to reproduce this is to cause an unhandled exception during app initialization.

    As I wrote, running the app inside Blend does not create the proper resource manager, which caused the line

    ResourceManager.current.mainResourceMap.getSubtree 'application'

    to throw and blend displayed the "device not ready error". Now, since I wrapped this into an exception handler, the error is gone but of course the ResourceMap is not loaded and there are no texts whatsoever on our UI.

    Where do I file bugs, David?

    • Edited by phil_ke Wednesday, March 7, 2012 9:40 AM
    Wednesday, March 7, 2012 9:40 AM