Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2035] errors appearing when building a project

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-02-17T07:41:13.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labels3.2.0GA, android, buildproblem, longjohn.js, mobile, titanium
ReporterDavide
AssigneeRitu Agrawal
Created2014-01-24T10:33:11.000+0000
Updated2016-03-08T07:40:59.000+0000

Description

When build a project (command line or using Titanium Studio) there is an error appearing after the apk has been deployed on the Android emulator: /usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184 throw e; (see attached stacktrace) I am using node 0.10.25. Is there anything that I can check or more info that I require to enter here ?

Attachments

FileDateSize
ti_error.txt2014-01-24T10:33:11.000+00008427
ti_info.txt2014-01-24T10:33:11.000+00003484

Comments

  1. Ritu Agrawal 2014-01-26

    It may be related to TIMOB-15804. Can you please review the description and workaround in this ticket to see if solves your problem?
  2. Ritu Agrawal 2014-01-31

    Resolving this ticket as a duplicate of TIMOB-15804. Please let us know if your environment indicates otherwise and we would be happy to reopen the ticket.
  3. Davide 2014-02-02

    I checked the other ticket, updated both TI and sdk to version 3.2.1 but the problem still persist. I tried also to make a copy of node -> nodejs but this did not change the situation. Is there any info that I can provide to better identify this issue ?
  4. Ritu Agrawal 2014-02-03

    Reopening this ticket based on latest comment from the reporter.
  5. Ritu Agrawal 2014-02-03

    [~dawez] I am curious if you also updated Titanium CLI to the latest 3.2.1 version as per the following command: sudo npm install -g titanium@3.2.1-beta3
  6. Davide 2014-02-04

    Yep I did update to 3.2.1-beta3 $ ti --version 3.2.1-beta3 The funny thing is that sometimes the debugger is logging is working fine [IE the build process does not crash] but this is happening quite randomly [would say like 10% of the times]. Will also try with another machine this week to see if the problem is due the current setup.
  7. Ritu Agrawal 2014-02-09

    "ti build --no-prompt --platform android" command builds the project and then installs and runs the application on an already running emulator. Your error log indicates a problem with the running Android emulator. Android emulator is notorious and more so on Linux systems. Can you please try the following command that eliminates Android emulator from the equation? ti build --platform android --build-only
  8. Davide 2014-02-09

    So using "ti build --no-prompt --platform android" reports no error and everything is compiling fine. I am also able to compile + deploy to a physical android device. But the emulator sometimes is able to stay connected to the process and this is really puzzling me... I can see the log, after the emulator crashing using: adb logcat TiAPI:D *:S and this is correctly displaying the logging commands in the code: Ti.API.error(), warn, log and so on. It seems like that something is causing a crash as soon as the application is deployed. I still have to try with another machine to see if just a machine specific issue.
  9. Ritu Agrawal 2014-02-17

    Resolving this ticket as we cannot reproduce this issue and you have been able to build the project successfully. ADB and Android emulator can be shaky on Linux environments so you may want to kill and restart adb server. We would be happy to reopen the ticket if you run into the same issue on another machine.

JSON Source