Doubts about how to debug errors

Hi all,

I am writing here because I try to launch an app with the simulator and the console in eclipse shows the following:

I know there is a debug XML file in the bin directory, so I opened it and translated the hex values into decimal to look for the pc in the debug file, but it results that no match is found. Does any of you have any idea of how to check what may be wrong? I already tried debugging but had no success.

Thanks,

Javier

  • What are you doing at line 50 in your activityView.mc file?  That looks to be where this crash started.  Also, you may want to note the SDK and device you are using. Is this in the sim or on a real device?

  • Is this in the sim or on a real device?
    I try to launch an app with the simulator
  • Line 50 is the following:

    setLayout(Rez.Layouts.MainLayout(dc));

    Regarding the SDK, I am launching the simulator with the target API level 3.2.0 and in the SDK manager the ConnectIQ 4.1.1 is set as the current SDK.

  • 4.1.1 is really old.  Current one is 6.2.0   Whats MainLayout look like?  Is line 50 in onLayout?

  • Line 50 is the following:

    setLayout(Rez.Layouts.MainLayout(dc));

  • Post the xml file where MainLayout is defined

  • Here it is:

    <layout id="MainLayout">
    
    <label x="center" y="5" text="@Strings.sets" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    <label x="120" y="40" id="local_games_set_1" text="@Strings.set_1_local_games" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    <label x="140" y="40" id="local_games_set_2" text="@Strings.set_2_local_games" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    <label x="160" y="40" id="local_games_set_3" text="@Strings.set_3_local_games" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    <label x="120" y="70" id="visitor_games_set_1" text="@Strings.set_1_visitor_games" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    <label x="140" y="70" id="visitor_games_set_2" text="@Strings.set_2_visitor_games" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    <label x="160" y="70" id="visitor_games_set_3" text="@Strings.set_3_visitor_games" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    <label x="center" y="130" id="text_games_tie_break" text="@Strings.games" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    <label x="90" y="40" text="@Strings.local" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    <label x="90" y="70" text="@Strings.visitor" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    <label x="90" y="160" text="@Strings.local" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    <label x="center" y="160" text="@Strings.dash" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    <label x="170" y="160" text="@Strings.visitor" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    <label x="90" y="190" id="local_game_points" text="@Strings.local_game_points" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    <label x="170" y="190" id="visitor_game_points" text="@Strings.visitor_game_points" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
    
    </layout>