Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupted preferences file stops the app from being able to run #62

Open
rsparkyc opened this issue Apr 24, 2023 · 4 comments
Open

Corrupted preferences file stops the app from being able to run #62

rsparkyc opened this issue Apr 24, 2023 · 4 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@rsparkyc
Copy link

Description

Even when trying to right click and open thing, it will no longer open on the latest macos

Version

1.5.0

Steps to Reproduce

Download app
Put in applications folder
attempt to open with right click -> open

Screenshots

No response

Device

MacBook Pro

Operating System

macOS 13.3.1

Additional Context

No response

@rsparkyc rsparkyc added the bug Something isn't working label Apr 24, 2023
@othyn othyn self-assigned this Apr 28, 2023
@othyn
Copy link
Owner

othyn commented Apr 28, 2023

Unfortunately, I can't reproduce this error on my machine to debug it.

I'm running Ventura 13.3.1, tried my existing install and its working okay.

I've also just downloaded a fresh version of 1.5.0 and cleared out all preferences and permissions, its also working okay via the right click open method at first, then just double click from then on.

I can't really do anything more as I can't get it not to work. :/

@othyn othyn closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2023
@othyn othyn added the can't reproduce Cannot reproduce the issue described label Apr 28, 2023
@rsparkyc
Copy link
Author

rsparkyc commented Apr 28, 2023

odd, ok, thanks for looking! Still not sure what's up with mine. I open in with the right click, but it just immediately closes. I even tried opening it from the command line to see if there was an exit code or something, but didn't much of anything, just this:

➜  /Applications/Auto Clicker.app/Contents/MacOS ./Auto\ Clicker                                                                                                                                              [5:11:19 PM]
[1]    48824 trace trap  ./Auto\ Clicker

@rsparkyc
Copy link
Author

I think I had a bad plist file. After deleting it and running killall -u <user-name> cfprefsd, the app comes up just fine.

For reference, this is what my file looked like before:

➜  ~/Library/Preferences cat com.othyn.auto-clicker.plist
bplist00�


_menu_bar_hide_dock_!KeyboardShortcuts_pressStopButton_user_form_state_"KeyboardShortcuts_pressStartButton_appearance_selected_theme_+com_apple_SwiftUI_Settings_selectedTabIndex_0NSWindow Frame com_apple_SwiftUI_Settings_window_eNSWindow Frame SwiftUI.ModifiedContent<Auto_Clicker.ACWindow, SwiftUI._FlexFrameLayout>-1-AppWindow-1	_+{"carbonModifiers":2560,"carbonKeyCode":49}_�{"pressInterval":50,"pressIntervalDuration":"duration_milliseconds","repeatAmount":5000,"pressInput":{"isRepeat":false,"isMouseInput":true,"modifiers":[],"type":1,"keyCode":0,"readable":"Left Click"},"pressAmount":5,"startDelay":0_{"currentColour":{"Indigo":{}}}_1167 733 532 242 0 0 2560 1415 _644 632 715 458 0 0 2560 1415.Rd���no�������%

This is after:

➜  ~/Library/Preferences cat com.othyn.auto-clicker.plist
bplist00_eNSWindow Frame SwiftUI.ModifiedContent<Auto_Clicker.ACWindow, SwiftUI._FlexFrameLayout>-1-AppWindow-1_!KeyboardShortcuts_pressStopButton_"KeyboardShortcuts_pressStartButton_user_form_state_922 516 715 458 0 0 2560 1415 _*{"carbonModifiers":2304,"carbonKeyCode":7}_*{"carbonModifiers":2304,"carbonKeyCode":1}_�{"pressInterval":50,"pressIntervalDuration":"duration_milliseconds","repeatAmount":100,"pressInput":{"isRepeat":false,"isMouseInput":true,"modifiers":[],"type":1,"keyCode":0,"readable":"Left Click"},"pressAmount":1,"startDelay":1y����"O	8%

@othyn
Copy link
Owner

othyn commented Apr 30, 2023

Interesting... thank you for debugging and sharing a working solution. I'm not 100% sure what the issue is based on that snipped due to the encoding, but at a guess the app didn't cleanly write the preferences file.

I should perhaps add in a provision for the preferences file being corrupted during app boot.

I'll re-open this issue and re-title it, although not sure when I'll get around to adding that provision in.

Thanks again!

@othyn othyn reopened this Apr 30, 2023
@othyn othyn added enhancement New feature or request and removed can't reproduce Cannot reproduce the issue described labels Apr 30, 2023
@othyn othyn changed the title Auto Clicker will not open in Ventura 13.3.1 Corrupted plist file stops the app from being able to run Apr 30, 2023
@othyn othyn changed the title Corrupted plist file stops the app from being able to run Corrupted preferences file stops the app from being able to run Apr 30, 2023
@othyn othyn added this to the Next Release milestone Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Status: No status
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants