[AC-4888] Android is crashing with no acceptable log
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2017-04-04T14:11:09.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Caio Perdona |
Assignee | Shak Hossain |
Created | 2017-03-29T19:26:07.000+0000 |
Updated | 2017-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.
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.@hans I had a couple of
, 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...
Hello, run a log level trace -l trace on your project and attach the log here. Thanks.
@Sharif this is already --log-level trace No additional logs are being shown...
In that case we need a sample project/code for us to test. Please provide that. Thanks.
@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...