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

[BUG] Companion 3.99 Experimental doesn't launch on a brand new machine #2557

Closed
2 tasks done
peternewman opened this issue Aug 24, 2023 · 3 comments
Closed
2 tasks done
Labels
BUG Something isn't working
Milestone

Comments

@peternewman
Copy link
Contributor

peternewman commented Aug 24, 2023

Is this a bug in companion itself or a module?

  • I believe this to be a bug in companion

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Companion fails to launch due to errors trying to update its (non-existent) internal database.

Found whilst testing a new release of #2436

Steps To Reproduce

  1. Open Companion on a new computer (or having renamed/deleted C:\Users<username>\AppData\Roaming\companion)
  2. Companion fails to launch

Expected Behavior

Companion launches and generates an empty database.

Environment (please complete the following information)

- OS: Windows 10
- Browser: N/A
- Companion Version: companion-win64-3.99.0+6257-develop-abf9c43e

Additional context

Console log:

Sentry DSN not located
Sentry error reporting is disabled
2023-08-24T22:44:58.152Z Application: Companion process started
2023-08-24T22:45:01.814Z info Log/Controller Application starting
2023-08-24T22:45:01.824Z info Registry Build 3.99.0+6257-develop-abf9c43e
2023-08-24T22:45:01.827Z info Registry configuration directory: C:\Users\user\AppData\Roaming\companion\v3.99
2023-08-24T22:45:01.957Z info Data/Upgrade Upgrading db from version 2 to 4
Startup failed: TypeError: Cannot convert undefined or null to object TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at m (D:\Temp\companion-win64-3.99.0+6257-develop-abf9c43e\$PLUGINSDIR\app-64\resources\main.js:2:2755842)
    at Object.y [as upgradeStartup] (D:\Temp\companion-win64-3.99.0+6257-develop-abf9c43e\$PLUGINSDIR\app-64\resources\main.js:2:2756094)
    at p (D:\Temp\companion-win64-3.99.0+6257-develop-abf9c43e\$PLUGINSDIR\app-64\resources\main.js:2:2749367)
    at new c (D:\Temp\companion-win64-3.99.0+6257-develop-abf9c43e\$PLUGINSDIR\app-64\resources\main.js:2:2728359)
    at k.ready (D:\Temp\companion-win64-3.99.0+6257-develop-abf9c43e\$PLUGINSDIR\app-64\resources\main.js:2:2937781)
    at f.<anonymous> (D:\Temp\companion-win64-3.99.0+6257-develop-abf9c43e\$PLUGINSDIR\app-64\resources\main.js:2:3051988)
    at f._actionHandler (D:\Temp\companion-win64-3.99.0+6257-develop-abf9c43e\$PLUGINSDIR\app-64\resources\main.js:2:2542748)
    at D:\Temp\companion-win64-3.99.0+6257-develop-abf9c43e\$PLUGINSDIR\app-64\resources\main.js:2:2551081
    at f._chainOrCall (D:\Temp\companion-win64-3.99.0+6257-develop-abf9c43e\$PLUGINSDIR\app-64\resources\main.js:2:2549721)
2023-08-24T22:45:02.112Z Application: Restart Count: 1
2023-08-24T22:45:06.368Z info Log/Controller Application starting

C:\Users<username>\AppData\Roaming\companion\v3.99\db.v2 contents
{"page_config_version":3}

@peternewman peternewman added the BUG Something isn't working label Aug 24, 2023
@Julusian Julusian added this to the v3.2 milestone Aug 25, 2023
Julusian added a commit that referenced this issue Aug 25, 2023
@peternewman
Copy link
Contributor Author

Thanks @Julusian .

Would it be worth some basic unit type tests to confirm loading an empty file works (and maybe also upgrading from previous versions)?

@Julusian
Copy link
Member

yeah we should really start adding some more unit tests, so adding one for this specific case would be good

@peternewman
Copy link
Contributor Author

I've made an initial attempt at this in #2588 but as mentioned in there it doesn't currently run via Jest properly, I don't know if you've any ideas...

peternewman pushed a commit to peternewman/companion that referenced this issue Oct 20, 2023
Julusian added a commit that referenced this issue Oct 20, 2023
Co-authored-by: Julian Waller <git@julusian.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants