Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4888] Android is crashing with no acceptable log

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2017-04-04T14:11:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterCaio Perdona
AssigneeShak Hossain
Created2017-03-29T19:26:07.000+0000
Updated2017-04-04T18:02:40.000+0000

Description

When trying to open a window (that was working before, on SDK 5.5.1.GA), app crashes with the log below: {noformat} [ERROR] TiExceptionHandler: (main) [2686,6392] ----- Titanium Javascript Runtime Error ----- [ERROR] TiExceptionHandler: (main) [0,6392] - In ti:/events.js:137,4 [ERROR] TiExceptionHandler: (main) [0,6392] - Message: Uncaught Error: addListener only takes instances of Function. The listener for event "undefined" is "undefined" [ERROR] TiExceptionHandler: (main) [0,6392] - Source: throw new Error('addListener only takes instances of Function. The listener for event "' + type + '" is "' + (typeof listener) + '"'); [DEBUG] ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{7357db V.E...... R.....I. 0,0-0,0} [ERROR] V8Exception: Exception occurred at ti:/events.js:137: Uncaught Error: addListener only takes instances of Function. The listener for event "undefined" is "undefined" [INFO] I/System.out: (HTTPLog)-Static: isSBSettingEnabled false [INFO] I/System.out: (HTTPLog)-Static: isSBSettingEnabled false [DEBUG] AbsListView: viewType is heaer or footer [DEBUG] HTTPClient: The persistent handle is disposed. [DEBUG] ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1 [DEBUG] AbsListView: viewType is heaer or footer [ERROR] File: fail readDirectory() errno=2 {noformat} It seems to be an issue within titanium's core. PS: Project is classic, not Alloy.

Comments

  1. Hans Knöchel 2017-03-29

    Sounds like something related to the hide(), check that you only perform that method on valid views and provide a test-case if it still happens.
  2. Caio Perdona 2017-03-29

    @hans I had a couple of
    hide()
    , but I commented all and the bug is still happening. This window of my app is really big, with loads of proprietary code, so I will keep trying to work this around before providing you a test-case... I just need some hints about what could this be, since the log doesn't show much...
  3. Sharif AbuDarda 2017-03-30

    Hello, run a log level trace -l trace on your project and attach the log here. Thanks.
  4. Caio Perdona 2017-03-30

    @Sharif this is already --log-level trace No additional logs are being shown...
  5. Sharif AbuDarda 2017-03-30

    In that case we need a sample project/code for us to test. Please provide that. Thanks.
  6. Caio Perdona 2017-04-04

    @Sharif since the window that has this code has around 2,5k lines, providing a test case isn't a trivial task. I will try to provide you this, but it can take some time. That doesn't mean that the issue is resolved...

JSON Source