Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3032] Debugger crashes if you call Ti.API.info(anyObjectHere); trying to log out an object will cause debugger to crash

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2011-08-04T10:10:43.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
Labelsdebugger, ios, simulator, studio
ReporterMark Henderson
AssigneeTony Guntharp
Created2011-07-29T10:07:25.000+0000
Updated2016-03-08T07:48:04.000+0000

Description

Debugger crashes if you call Ti.API.info(anyObjectHere); trying to log out an object will cause debugger to crash Crash report from Studio:
2011-07-29 18:05:48.970 SnagR[40386:1aa03] -[NSNull characterAtIndex:]: unrecognized selector sent to instance 0x261b5e8

2011-07-29 18:05:48.975 SnagR[40386:1aa03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull characterAtIndex:]: unrecognized selector sent to instance 0x261b5e8'

*** Call stack at first throw:

(

	0   CoreFoundation                      0x025ae5a9 __exceptionPreprocess + 185

	1   libobjc.A.dylib                     0x02702313 objc_exception_throw + 44

	2   CoreFoundation                      0x025b00bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187

	3   CoreFoundation                      0x0251f966 ___forwarding___ + 966

	4   CoreFoundation                      0x0251f522 _CF_forwarding_prep_0 + 50

	5   SnagR                               0x00332eb3 -[TiDebugger log:level:] + 134

	6   SnagR                               0x00334938 TiDebuggerLogMessage + 69

	7   SnagR                               0x001436a6 -[APIModule logMessage:severity:] + 486

	8   SnagR                               0x00143893 -[APIModule info:] + 147

	9   CoreFoundation                      0x0251ec7d __invoking___ + 29

	10  CoreFoundation                      0x0251eb51 -[NSInvocation invoke] + 145

	11  SnagR                               0x0004dfd9 -[KrollMethod call:] + 3081

	12  SnagR                               0x0004ca7e KrollCallAsFunction + 542

	13  SnagR                               0x002dad39 _ZN2TI16TiCallbackObjectINS_8TiObjectEE4callEPNS_10TiExcStateEPS1_NS_7TiValueERKNS_7ArgListE + 391

	14  SnagR                               0x002b7ffb cti_op_call_NotTiFunction + 299

	15  ???                                 0x10e1db49 0x0 + 283237193

	16  SnagR                               0x00274336 _ZN2TI11Interpreter7executeEPNS_14EvalExecutableEPNS_10TiExcStateEPNS_8TiObjectEiPNS_14ScopeChainNodeEPNS_7TiValueE + 1038

	17  SnagR                               0x00276015 _ZN2TI11Interpreter8callEvalEPNS_10TiExcStateEPNS_12RegisterFileEPNS_8RegisterEiiRNS_7TiValueE + 693

	18  SnagR                               0x002b4233 cti_op_call_eval + 195

	19  ???                                 0x0fd22969 0x0 + 265431401

	20  SnagR                               0x00274c55 _ZN2TI11Interpreter7executeEPNS_18FunctionExecutableEPNS_10TiExcStateEPNS_10TiFunctionEPNS_8TiObjectERKNS_7ArgListEPNS_14ScopeChainNodeEPNS_7TiValueE + 975

	21  SnagR                               0x002c642d _ZN2TI10TiFunction4callEPNS_10TiExcStateENS_7TiValueERKNS_7ArgListE + 129

	22  SnagR                               0x0023db4b _ZN2TI4callEPNS_10TiExcStateENS_7TiValueENS_8CallTypeERKNS_8CallDataES2_RKNS_7ArgListE + 91

	23  SnagR                               0x002d9056 TiObjectCallAsFunction + 454

	24  SnagR                               0x00056ba3 -[KrollObject triggerEvent:withObject:thisObject:] + 739

	25  SnagR                               0x000490f1 -[KrollEvent invoke:] + 145

	26  SnagR                               0x00047e5d -[KrollContext invoke:] + 189

	27  SnagR                               0x00046a3e -[KrollContext main] + 4478

	28  Foundation                          0x0089dcf4 -[NSThread main] + 81

	29  Foundation                          0x0089dc80 __NSThread__main__ + 1387

	30  libsystem_c.dylib                   0x95475ed9 _pthread_start + 335

	31  libsystem_c.dylib                   0x954796de thread_start + 34

)

terminate called throwing an exception

Comments

  1. Mark Henderson 2011-07-29

    To be more accurate, it causes the Simulator to crash with the pastie code as the crash info. Simulator doesn't crash if you aren't debugging.
  2. Paul Dowsett 2011-08-02

    Thank you for raising this ticket. In order to progress it, please add the missing information in the format and places requested in the guidelines at [Jira Ticket Checklist](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist). Also, code and logs should be in the ticket, properly formatted using wiki markup, rather than in a link. Many thanks in advance
  3. Paul Dowsett 2011-08-04

    Mark I'm afraid I will need to close this ticket as "incomplete", without the requested information. I have added your log to the body of the ticket as required, but you still need to provide the missing information (particularly, usecase and environment). Once this is done, I can move the ticket to the relevant project. Thank you
  4. Mark Henderson 2011-08-04

    You'll have to give me until the end of the week at least to do this.. I'm just a paying customer trying to flag a bug in studio I suggest you add more fields to the form if you need more information to proceed.. I haven't got time to study a style guide i'm afraid..
  5. Paul Dowsett 2011-08-04

  6. Paul Dowsett 2011-10-07

    Closing due to inactivity.

JSON Source