google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 604 forks source link

Android Studio 3.5 not lauching after installing Sceneform Plugin #867

Open anesask opened 5 years ago

anesask commented 5 years ago
Android Studio 3.5
Build #AI-191.8026.42.35.5791312, built on August 9, 2019
JRE: 1.8.0_202-release-1483-b03 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

I have problem when I try to install any version of Sceneform plugin in Android Studio, it just crash without any log or message... https://plugins.jetbrains.com/plugin/10698-google-sceneform-tools-beta-/versions

ntmontijo commented 5 years ago

Same issue for me. I wonder why this happened? was it because the plugin was a beta?

tpsiaki commented 5 years ago

Thanks for the report. We are investigating this issue.

ntmontijo commented 5 years ago

If it helps you @tpsiaki , mine goes down right after I see the "Scanning to Index" show at the bottom of the window

anesask commented 5 years ago

Here is my log file from a previous session, hope it helps.

tellypresence commented 5 years ago

Does the sceneform dependency version in build.gradle match plugin version? (if android studio won't launch would obviously need to open build.gradle in standalone text editor to modify)

anesask commented 5 years ago

Still not lauching.

sandip-singh commented 5 years ago

Same issue for me. Android Studio not launching after installing Sceneform Plugin

dilberdillu commented 5 years ago

For me, Android studio closes suddenly while converting 3d objects into sceneform assets. AS 3.4.2, sceneform plugin 1.12.0

anesask commented 5 years ago

No way to figure out what really causes the problem, but this one is repeating: 2019-09-16 23:22:18,262 [entQueue-0] WARN - com.intellij.util.xmlb.Binding - no accessors for interface com.intellij.openapi.extensions.PluginDescriptor `

dilberdillu commented 5 years ago

Does anyone why I am getting error: Fail to load plugin descriptor from file sceneform-android-sdk-1.11.0.zip while trying to downgrade to plugin 1.11.0 through install plugin from disk??

sandip-singh commented 5 years ago

@tpsiaki Any update for this issue?

tpsiaki commented 5 years ago

@sandip-singh We've been having trouble reproing the issue thus far. We have a theory about what the issue is and a potential fix, but have not been able to validate because we haven't reproed.

If you (or anyone experiencing this crash) would like to try a version with a proposed fix, I would be happy to share a new prerelease version of the plugin for you to try. Please email me if you'd like to try this.

GLiccardo commented 5 years ago

@tpsiaki Here i am. I can try for you

sandip-singh commented 5 years ago

@tpsiaki I can try. Please provide me the per-release version.

tpsiaki commented 5 years ago

Thanks! Here's the pre-release plugin that has what I believe is the fix for the reported issue:

google-sceneform-tools-1.12.1.zip

Install with File > Settings > Plugins > Gear Icon > Install Plugin from Disk... > Select the downloaded zip file (don't unzip it)

Restart Android Studio, then try loading an SFB.

Please let me know if this fixes the crash you've been seeing. Thanks!

GLiccardo commented 5 years ago

I m still having issue opening Android Studio. Now i'm using: AS 3.5 Gradle 3.4.1 Sceneform 1.11.0 Sceneform plugin 1.12.1

If I try to update to Gradle 3.5.0 and Sceneform 1.12.0, my app crashes when I open AR fragment.

Attached there is the Android Studio log for crashes. log.txt

tpsiaki commented 5 years ago

@eldivino87 - a couple of things: it looks like you're using Sceneform 1.11.0 with Sceneform 1.12.0 which isn't supported, although it doesn't look like that's what's causing the crash so I don't expect that to fix it.

It looks like Filament is failing to initialize on your machine. Have you been able to run previous versions of the Sceneform plugin on the same machine you're running on?

Also thanks for sharing the log - that's super helpful :)

GLiccardo commented 5 years ago

@ElDivino - a couple of things: it looks like you're using Sceneform 1.11.0 with Sceneform 1.12.0 which isn't supported, although it doesn't look like that's what's causing the crash so I don't expect that to fix it.

what do you suggest me to do? Downgrade to 1.11.0?

It looks like Filament is failing to initialize on your machine. Have you been able to run previous versions of the Sceneform plugin on the same machine you're running on?

Android Studio has been crashing since I installed the plugin (v1.10.0)

Also thanks for sharing the log - that's super helpful :)

Welcome :-)

bobekos commented 5 years ago

I had also the crashes when the sfb files were created under 1.11 and should get open with the new 1.12.

After upgrading everything to 1.12 (as plugin and all ar dependencies) and recreating the sfb files with 1.12 everything seems to be ok.

I am using as 3.5

Ps. I hope that google will reject the idea with the sfb format and will focus on the runtime creation of 3d models. The biggest benefit is the version incompatibility. I am sure that most of the 3d objects outthere are not storage in the project itself but are downloading from somewhere else. Good luck to make sure all versions are displayed correctly. With the functionality of create the gltf files at runtime you don't have such problems. Now fbx and obj should be supported as well.

artemisia commented 5 years ago

google sceneform Tools (beta) v1.12.0 bug feedback

android studio crashed when clicked sfb file in demo project chromakeyvideo

android studio version 3.5 mac os version: 10.14.6

this is the part of crash dump caught by Apple system:

Process: studio [692] Path: /Applications/Android Studio.app/Contents/MacOS/studio Identifier: com.google.android.studio Version: 3.5 (AI-191.8026.42.35.5791312) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: studio [692] User ID: 501

Date/Time: 2019-09-30 12:35:11.158 +0800 OS Version: Mac OS X 10.14.6 (18G87) Report Version: 12 Bridge OS Version: 3.6 (16P6568) Anonymous UUID: FF950B86-3D0E-797B-46E5-46F4157F165B

Sleep/Wake UUID: 6B1A688F-84CD-4E4B-AC90-4283947B126F

Time Awake Since Boot: 230000 seconds Time Since Wake: 9900 seconds

System Integrity Protection: enabled

Crashed Thread: 47 Java: Filament-Thread

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information: terminating with uncaught exception of type utils::PreconditionPanic abort() called

Thread 0:: AppKit Thread Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff5911522a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff5911576c mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff2d08e1ee CFRunLoopServiceMachPort + 328 3 com.apple.CoreFoundation 0x00007fff2d08d75c CFRunLoopRun + 1612 4 com.apple.CoreFoundation 0x00007fff2d08cebe CFRunLoopRunSpecific + 455 5 com.apple.HIToolbox 0x00007fff2c2ec1ab RunCurrentEventLoopInMode + 292 6 com.apple.HIToolbox 0x00007fff2c2ebee5 ReceiveNextEventCommon + 603 7 com.apple.HIToolbox 0x00007fff2c2ebc76 _BlockUntilNextEventMatchingListInModeWithFilter + 64 8 com.apple.AppKit 0x00007fff2a68479d _DPSNextEvent + 1135 9 com.apple.AppKit 0x00007fff2a68348b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361 10 libosxapp.dylib 0x0000000130401e3a -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 121 11 com.apple.AppKit 0x00007fff2a67d5a8 -[NSApplication run] + 699 12 libosxapp.dylib 0x0000000130401c7f +[NSApplicationAWT runAWTLoopWithApp:] + 222 13 libawt_lwawt.dylib 0x000000013072e443 -[AWTStarter starter:] + 869 14 com.apple.Foundation 0x00007fff2f385742 NSThreadPerformPerform + 328 15 com.apple.CoreFoundation 0x00007fff2d0aa683 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 16 com.apple.CoreFoundation 0x00007fff2d0aa629 CFRunLoopDoSource0 + 108 17 com.apple.CoreFoundation 0x00007fff2d08dfeb CFRunLoopDoSources0 + 195 18 com.apple.CoreFoundation 0x00007fff2d08d5b5 CFRunLoopRun + 1189 19 com.apple.CoreFoundation 0x00007fff2d08cebe CFRunLoopRunSpecific + 455 20 com.google.android.studio 0x000000010d45ad79 main + 336 21 libdyld.dylib 0x00007fff58fe03d5 start + 1

Thread 47 Crashed:: Java: Filament-Thread 0 libsystem_kernel.dylib 0x00007fff5911b2c6 pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fff591d6bf1 pthread_kill + 284 2 libsystem_c.dylib 0x00007fff590856a6 abort + 127 3 libc++abi.dylib 0x00007fff56261641 abort_message + 231 4 libc++abi.dylib 0x00007fff562617df default_terminate_handler() + 267 5 libobjc.A.dylib 0x00007fff57814eeb _objc_terminate() + 105 6 libc++abi.dylib 0x00007fff5626d19e std::terminate(void (*)()) + 8 7 libc++abi.dylib 0x00007fff5626cf86 cxxabiv1::failed_throw(cxxabiv1::__cxa_exception) + 27 8 libc++abi.dylib 0x00007fff5625ff99 __cxa_throw + 113 9 libfilament-jni.dylib 0x00000001a79765e1 utils::TPanic::panic(char const, char const, int, char const, ...) + 657

artemisia commented 5 years ago

I encountered this exception

java.lang.AbstractMethodError: com.google.ar.sceneform.plugin.actions.ui.ImportWizard$$Lambda$4253/524841274.onInvalidated()V at com.android.tools.idea.observable.AbstractObservableValue.notifyInvalidated(AbstractObservableValue.java:64) at com.android.tools.idea.observable.AbstractProperty.set(AbstractProperty.java:82) at com.google.ar.sceneform.plugin.actions.ui.GenerateSfbModel.checkModelPathExistent(GenerateSfbModel.java:119) at com.google.ar.sceneform.plugin.actions.ui.GenerateSfbModel.setModelPath(GenerateSfbModel.java:125) at com.google.ar.sceneform.plugin.actions.ui.ImportWizard.(ImportWizard.java:71) at com.google.ar.sceneform.plugin.actions.NewRenderableAction.actionPerformed(NewRenderableAction.java:44) at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:261) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:278) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.lambda$actionPerformed$0(ActionMenuItem.java:292) at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:283) at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:107) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:282) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$fireActionPerformed$0(ActionMenuItem.java:111) at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88) at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:111) at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120) at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:121) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:111) at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:524) at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:35) at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:546) at java.awt.Component.processMouseEvent(Component.java:6550) at javax.swing.JComponent.processMouseEvent(JComponent.java:3325) at java.awt.Component.processEvent(Component.java:6315) at java.awt.Container.processEvent(Container.java:2239) at java.awt.Component.dispatchEventImpl(Component.java:4899) at java.awt.Container.dispatchEventImpl(Container.java:2297) at java.awt.Component.dispatchEvent(Component.java:4721) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) at java.awt.Container.dispatchEventImpl(Container.java:2283) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4721) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:766) at java.awt.EventQueue.access$500(EventQueue.java:98) at java.awt.EventQueue$3.run(EventQueue.java:715) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) at java.awt.EventQueue$4.run(EventQueue.java:739) at java.awt.EventQueue$4.run(EventQueue.java:737) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:736) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:757) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:702) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:375) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

sandip-singh commented 5 years ago

Thanks! Here's the pre-release plugin that has what I believe is the fix for the reported issue:

google-sceneform-tools-1.12.1.zip

Install with File > Settings > Plugins > Gear Icon > Install Plugin from Disk... > Select the downloaded zip file (don't unzip it)

Restart Android Studio, then try loading an SFB.

Please let me know if this fixes the crash you've been seeing. Thanks!

@tpsiaki After installing pre-release plugin, Android Studio stopped working

sandip-singh commented 5 years ago

@tpsiaki Any update?

tpsiaki commented 5 years ago

Hi @sandip-singh - We recently had to update to some newer apis to support Android Studio 3.5 and as a result compatibility with 3.4 and earlier versions is no longer available. Can you update to Android Studio 3.5 and try again? Thanks

sandip-singh commented 5 years ago

Hi @tpsiaki - Its working now. Thanks

artemisia commented 5 years ago

@tpsiaki hello, my android studio version is 3.5.1, and sceneform plugin version is 1.13, crash again..

sandip-singh commented 4 years ago

@tpsiaki I tried 1.15 too, but still Android Studio is crashing.

Here are the logs:

Plugin 'google-sceneform-tools' failed to initialize and will be disabled. Please restart Android Studio.

java.lang.UnsatisfiedLinkError: C:\Users\viral\AppData\Local\Temp\sceneform-filament-jni8503890119140275451\filament-jni.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at com.google.android.filament.Filament.(Filament.java:22) at com.google.ar.sceneform.plugin.viewer.FilamentProvider.startEngine(FilamentProvider.java:92) at com.google.ar.sceneform.plugin.viewer.FilamentProvider.initComponent(FilamentProvider.java:33) at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:482) at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:104) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$createComponents$9(ApplicationImpl.java:450) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151) at com.intellij.openapi.application.impl.ApplicationImpl.createComponents(ApplicationImpl.java:474) at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:88) at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:408) at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:394) at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:217) at com.intellij.idea.IdeaApplication.lambda$initApplication$0(IdeaApplication.java:77) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:349) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)