Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25598

Windows: Error logs are not produced on app crash

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.1.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      windows, windows phone, debug issues

    • Story Points:
      5
    • Sprint:
      2017 Sprint 25 SDK, 2017 Sprint 26 SDK, 2018 Sprint 01 SDK

      Description

      Hello,
      We are having issues in being able to debug crashes when trying to access undefined element in an object.

      Test Code:
      index.xml

      <Alloy>
      	<Window class="container">
      		<Label id="label" onClick="doClick">Hello, World</Label>
      	</Window>
      </Alloy>
      

      index.js

      var helper = require('helper.js');
      var testObject = {
        first: {
          name: 'test',
          city: 'PA',
          distance: 2
        }
      };
       
      function doClick(e) {
        helper.getData(function(_data) {
          // console.log('distance:', _data.secondObject.distance);
      		$.label.text = _data.secondObject.distance;
        });
       
      }
       
      $.index.open();

      lib/helper.js

      exports.getData = function(_callback) {
        _callback({
          first: {
            name: 'test',
            city: 'PA',
            distance: 2
          }
        });
      };

      Steps to reproduce.
      1. Run the attached project using above code.
      2. Click on Hello, World.
      3. The error will be displayed in the console.

      The error message just says "[ERROR] In undefined: undefined, undefined" instead of specifying where exactly the error is. In this situation, the error object is showed in the error screen displayed in the app. But, in some scenarios when this happens during a complex operation, app crashes. When that happens, it is really hard to figure out where exactly the issue is.
      That way, even if the app crashes, we can see the error in the console to be able to fix it.

      Thanks

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                mrahman Mostafizur Rahman
                Reviewer:
                Gary Mathews
                Tester:
                Samir Mohammed
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6035
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code