4 Replies Latest reply on Apr 19, 2013 4:57 PM by Kutir Mobility

    rhomobile app crashes on Incredible 2, not on Incredible.

      The Incredible 2 is running Android version 2.3.4, HTC sense ver 2.1 Software number 6.01.605.05 710RD PRI version 1.94_002 PRL Version 52826 And ERI version 5.

       

      On startup, the spash-screen is displayed then the main screen appears.  Any other attempts to launch fail quickly unless the cache is emptied. 

        • Re: rhomobile app crashes on Incredible 2, not on Incredible.
          Robert Galvin

          Kind of hard to say what is going on with that description. Have you cranked up logging and compared the two logs? What are you doing in the startup?

            • Re: rhomobile app crashes on Incredible 2, not on Incredible.

              As far as I know, there is no way to log what happens on a device itself.  If this is possible, please give me detailed instructions on how to build it.

                • Re: rhomobile app crashes on Incredible 2, not on Incredible.

                  I am not getting any logs on the device or on the simulator.  I do not get it.

                  I set rhoconfig.txt

                  # Rhodes log properties

                  # log level

                  # 0-trace, 1-info(app level), 3-warnings, 4-errors

                  # for production set to 3

                  MinSeverity  = 0

                   

                  # enable copy log messages to standard output, useful for debugging

                  LogToOutput = 0 #I have also set this to 1

                   

                  # '*' means all categories, otherwise list them : Cat1, Cat2

                  LogCategories = *

                   

                  # what categories to exclude

                  ExcludeLogCategories =

                   

                  # max log file size in Bytes, set 0 to unlimited size; when limit is reached, log wraps to beginning of file

                  MaxLogFileSize=0

                  LogMemPeriod=500

                   

                  # location of log file on SD card

                  LogFilePath = '/mnt/sdcard/download/MyApp.

                  log'

                   

                  # turn on local http server traces, off by default
                  #net_trace = 0

                   

                  # timeout of network requests in seconds (30 by default)
                  #net_timeout = 11

                   

                  # where log will be posted by RhoConf.send_log or from the log menu 
                  # source is also open and up on http://github.com/rhomobile/rhologs, so you can deploy your own logserver
                  #logserver = 'http://rhologs.heroku.com' # I Have also uncommented this

                   

                  # log file prefix - contain human-readable text
                  logname='My.mobileapp'

                   

                  # Keep track of the last visited page
                  KeepTrackOfLastVisitedPage = 0
                  LastVisitedPage = ''

                   

                  # sync server url, typically this will look like 'http://<hostname>:<port>/application'
                  # for example: 'http://localhost:9292/application'
                  syncserver = 'http://192.168.1.10:9292/application'

                   

                  then I have this in MshellController
                  def MshellController.init()
                          Mshell.info "MshellController.init invoked"
                          # set default menu for the application here rather than requiring manual
                          # edits to application.rb
                          application = ::Rho.get_app
                          app_info "MshellController.init invoked"
                          RhoLog.info("RhoLog.info", "MshellController.init invoked")

                   

                  I get this error in the simulator:
                  SERVER ERROR

                   

                  Error: undefined method 'app_info' for MShellController:Class.

                   

                  Even though the documentation says app_info can be used from any controller, I took it out.  Now it is:
                  def MshellController.init()
                          Mshell.info "MshellController.init invoked"
                          # set default menu for the application here rather than requiring manual
                          # edits to application.rb
                          application = ::Rho.get_app

                   

                          RhoLog.info("RhoLog.info", "MshellController.init invoked")

                   

                  and there is NO LOG, and NO OUTPUT.