mlopatkin / andlogview

Tool for viewing application logs from Android devices.
https://andlogview.mlopatkin.name/
Apache License 2.0
43 stars 6 forks source link

Cannot start the app if the preference directory is not here #317

Closed mlopatkin closed 1 year ago

mlopatkin commented 1 year ago

Run the app on a clean machine:

2023-11-01 00:09:04,573 [main] INFO  config.Configuration - debug mode on
2023-11-01 00:09:04,739 [main] INFO  andlogview.Main - AndLogView 0.22-SNAPSHOT (rev 2605f99+)
2023-11-01 00:09:04,739 [main] INFO  andlogview.Main - Revision 2605f99+
2023-11-01 00:09:04,865 [AWT-EventQueue-0] FATAL andlogview.GlobalsModule - Cannot start at all
java.io.IOException: No such file or directory
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.createNewFile(File.java:1023)
    at com.google.common.io.Files.touch(Files.java:451)
    at name.mlopatkin.andlogview.config.ConfigStorage$Factory.createForFile(ConfigStorage.java:59)
    at name.mlopatkin.andlogview.GlobalsModule.getConfigStorage(GlobalsModule.java:46)
    at name.mlopatkin.andlogview.GlobalsModule_GetConfigStorageFactory.getConfigStorage(GlobalsModule_GetConfigStorageFactory.java:48)
    at name.mlopatkin.andlogview.GlobalsModule_GetConfigStorageFactory.get(GlobalsModule_GetConfigStorageFactory.java:38)
    at name.mlopatkin.andlogview.GlobalsModule_GetConfigStorageFactory.get(GlobalsModule_GetConfigStorageFactory.java:12)
    at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
    at name.mlopatkin.andlogview.preferences.AdbConfigurationPref_Factory.get(AdbConfigurationPref_Factory.java:38)
    at name.mlopatkin.andlogview.preferences.AdbConfigurationPref_Factory.get(AdbConfigurationPref_Factory.java:12)
    at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
    at name.mlopatkin.andlogview.DaggerAppGlobals$AppGlobalsImpl.getAdbConfiguration(DaggerAppGlobals.java:152)
    at name.mlopatkin.andlogview.ui.mainframe.DaggerMainFrameDependencies$MainFrameDependenciesImpl.injectMainFrame2(DaggerMainFrameDependencies.java:431)
    at name.mlopatkin.andlogview.ui.mainframe.DaggerMainFrameDependencies$MainFrameDependenciesImpl.injectMainFrame(DaggerMainFrameDependencies.java:415)
    at name.mlopatkin.andlogview.MainFrame.<init>(MainFrame.java:218)
    at name.mlopatkin.andlogview.MainFrame.<init>(MainFrame.java:98)
    at name.mlopatkin.andlogview.MainFrame$Factory.get(MainFrame.java:554)
    at name.mlopatkin.andlogview.MainFrame$Factory.get(MainFrame.java:542)
    at name.mlopatkin.andlogview.Main.createAndShowWindow(Main.java:113)
    at name.mlopatkin.andlogview.Main.start(Main.java:120)
    at name.mlopatkin.andlogview.Main.lambda$main$1(Main.java:76)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    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:74)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    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)