Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-8948

Error on Android preference page when Genymotion not installed on system

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 5.0.0
    • Component/s: Android
    • Labels:
      None
    • Environment:

      Windows Pro 10
      Appc Studio : 5.0
      Appc CLI: 7.0.0-master.54
      Node.js: 8.9.1

    • Story Points:
      3
    • Sprint:
      2017 Sprint 25 Studio

      Description

      When genymotion is not installed on the system then an error "The currently displayed page contains invalid values." is shown on Android preference screen

      The daemon command "appc appcd exec /genumotion/1.x/info" returns the following

        "home": null,
        "path": null,
        "version": null,
        "virtualbox": null,
        "emulators": [],
        "executables": {}
      

      The following logs are shown in studio logs

      !ENTRY org.eclipse.jface 4 2 2017-12-04 14:47:31.625
      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
      !STACK 0
      java.lang.NullPointerException
      	at com.appcelerator.titanium.android.ui.preferences.AndroidSDKPreferencePage.parseGenymotionPathsUsingDaemon(AndroidSDKPreferencePage.java:814)
      	at com.appcelerator.titanium.android.ui.preferences.AndroidSDKPreferencePage.createGenymotionGroup(AndroidSDKPreferencePage.java:751)
      	at com.appcelerator.titanium.android.ui.preferences.AndroidSDKPreferencePage.createMobileOptions(AndroidSDKPreferencePage.java:730)
      	at com.appcelerator.titanium.ui.preferences.BasePlatformFieldEditorPreferencePage.createFieldEditors(BasePlatformFieldEditorPreferencePage.java:56)
      	at org.eclipse.jface.preference.FieldEditorPreferencePage.createContents(FieldEditorPreferencePage.java:228)
      	at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:233)
      	at org.eclipse.jface.preference.PreferenceDialog.createPageControl(PreferenceDialog.java:1537)
      	at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:1289)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
      	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
      	at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1281)
      	at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:699)
      	at org.eclipse.jface.preference.PreferenceDialog$9$1.run(PreferenceDialog.java:730)
      	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      	at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:725)
      	at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:876)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
      	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
      	at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:873)
      	at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1708)
      	at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1093)
      	at org.eclipse.jface.preference.PreferenceDialog.selectSavedItem(PreferenceDialog.java:1083)
      	at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.selectSavedItem(FilteredPreferenceDialog.java:757)
      	at org.eclipse.jface.preference.PreferenceDialog$4.run(PreferenceDialog.java:390)
      	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      	at org.eclipse.jface.preference.PreferenceDialog.createContents(PreferenceDialog.java:385)
      	at org.eclipse.jface.window.Window.create(Window.java:435)
      	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1101)
      	at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.createDialogOn(WorkbenchPreferenceDialog.java:102)
      	at org.eclipse.ui.dialogs.PreferencesUtil.createPreferenceDialogOn(PreferencesUtil.java:192)
      	at org.eclipse.ui.dialogs.PreferencesUtil.createPreferenceDialogOn(PreferencesUtil.java:116)
      	at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
      	at org.eclipse.jface.action.Action.runWithEvent(Action.java:519)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
      	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
      	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:126)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
      

        Attachments

          Activity

            People

            • Assignee:
              kkolipaka Kondal Kolipaka (Inactive)
              Reporter:
              ssekhri Satyam Sekhri
              Reviewer:
              Prashanth Pedduri (Inactive)
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: