Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6383] Unable to build - fatal error: error in backend: Unexpected end of file

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2019-09-28T08:30:51.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterJoe
AssigneeShak Hossain
Created2019-09-27T22:39:41.000+0000
Updated2019-09-28T08:30:51.000+0000

Description

Steps to Reproduce

Running a mobile app project on simulator is throwing an error that I cannot resolve.

Actual Result

[TRACE] : fatal error: error in backend: Unexpected end of file [TRACE] : clang: error: clang frontend command failed with exit code 70 (use -v to see invocation) [TRACE] : Apple clang version 11.0.0 (clang-1100.0.33.8) [TRACE] : Target: x86_64-apple-ios9.0-simulator [TRACE] : Thread model: posix [TRACE] : InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin [TRACE] : clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script. [TRACE] : clang: note: diagnostic msg: [TRACE] : ******************** [TRACE] : PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: [TRACE] : Preprocessed source(s) and associated run script(s) are located at: [TRACE] : clang: [TRACE] : note: diagnostic msg: /var/folders/fx/5rryr82x093ckjp13rvds9wm0000gn/T/TiDynamicItemBehavior-5e6397.m [TRACE] : clang: note: diagnostic msg: /var/folders/fx/5rryr82x093ckjp13rvds9wm0000gn/T/TiDynamicItemBehavior-5e6397.cache [TRACE] : clang: note: diagnostic msg: /var/folders/fx/5rryr82x093ckjp13rvds9wm0000gn/T/TiDynamicItemBehavior-5e6397.sh [TRACE] : clang: note: diagnostic msg: Crash backtrace is located in [TRACE] : clang: note [TRACE] : : diagnostic msg: /Users/joe.corriere/Library/Logs/DiagnosticReports/clang__.crash [TRACE] : clang: [TRACE] : note: diagnostic msg: (choose the .crash file that corresponds to your crash) [TRACE] : clang: note: diagnostic msg: [TRACE] : ********************

Expected Result

Project should build without issues

Comments

  1. Joe 2019-09-27

    I was prompted to install 8.2.0GA although I already have it installed. Now Studio is showing this error: -
       -----
       STATUS
       ------
       pluginId            com.appcelerator.titanium.core
       pluginVersion       3.1.2.201909031729
       code                0
       severity            4
       message             (Build 5.1.4.201909061933) [ERROR]  Unable to determine the Titanium SDK content assist metadata path when connecting metadata to project 'Courier'
       fingerprint         91847c9f
       stacktrace          
       
       Exception:org.eclipse.core.runtime.CoreException: Titanium SDK not found
       	 at com.appcelerator.titanium.core.mobile.TitaniumMobileSDKTools.getSDKEntity(TitaniumMobileSDKTools.java:76)
       	 at com.appcelerator.titanium.core.mobile.TitaniumMobileSDKTools.getProjectSDK(TitaniumMobileSDKTools.java:49)
       	 at com.appcelerator.titanium.core.util.ContentAssistMetadataUtils.getProjectMetadataBuildPath(ContentAssistMetadataUtils.java:135)
       	 at com.appcelerator.titanium.core.internal.mobile.SDKBuildPathContributor.getBuildPathEntries(SDKBuildPathContributor.java:93)
       	 at com.aptana.buildpath.core.BuildPathManager.getBuildPaths(BuildPathManager.java:321)
       	 at com.aptana.js.core.index.JSIndexQueryHelper.getIndices(JSIndexQueryHelper.java:123)
       	 at com.aptana.js.core.index.JSIndexQueryHelper.<init>(JSIndexQueryHelper.java:98)
       	 at com.aptana.editor.js.internal.JSModelUtil.createQueryHelper(JSModelUtil.java:90)
       	 at com.aptana.editor.js.internal.JSModelUtil.getProperties(JSModelUtil.java:36)
       	 at com.aptana.editor.js.text.JSTextHover.getHoverInfo2(JSTextHover.java:71)
       	 at com.aptana.editor.common.CommonSourceViewerConfiguration$TextHover.getHoverInfo2(CommonSourceViewerConfiguration.java:687)
       	 at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)
       
       ------
       STATUS
       ------
       pluginId            com.appcelerator.titanium.core
       pluginVersion       3.1.2.201909031729
       code                0
       severity            4
       message             Titanium SDK not found [detached from CoreException of Status '(Build 5.1.4.201909061933) [ERROR]  Unable to determine the Titanium SDK content assist metadata path when connecting metadata to project 'Courier'' by Error Reporting]
       fingerprint         00000000
       stacktrace          
       
       
       ------
       REPORT
       ------
       comment             
       productVersion      5.1.4.201909061933
       productName         Appcelerator Studio
       javaRuntimeVersion  1.8.0_162-b12
       osgiWs              cocoa
       osgiOs              MacOSX
       osgiOsVersion       10.14.6
       osgiArch            x86_64
       
  2. Joe 2019-09-27

    Close this ticket. I restarted Mac. Created and ran a Classic mobile app using SDK 8.2 successfully. Switched over to the classic app that had the error and was able to build and run in the simulator successfully.

JSON Source