amaxwell / tlutility

TeX Live Utility, a Mac OS GUI for the TeX Live Manager
http://amaxwell.github.io/tlutility/
BSD 3-Clause "New" or "Revised" License
307 stars 17 forks source link

Tex Live Utility Internal Error #144

Open talicaddy opened 1 year ago

talicaddy commented 1 year ago

When opening Tex Live Utility, installed with MacTex through HomeBrew on Macbook Air with Sonoma, it first asks for my password because tlutility wants to make changes. After giving that, the app opens with an internal error with the following details:

Exception Name: NSInternalInconsistencyException Description: Invalid parameter not satisfying: _installedYear != TLMDatabaseUnknownYear User Info: { NSAssertFile = "TLMEnvironment.m"; NSAssertLine = 791; }

0 CoreFoundation 0x000000018bc6e800 exceptionPreprocess + 176 1 libobjc.A.dylib 0x000000018b765eb4 objc_exception_throw + 60 2 Foundation 0x000000018cdb547c -[NSCalendarDate initWithCoder:] + 0 3 TeX Live Utility 0x0000000104321b40 -[TLMEnvironment _getValidServerURL:repositoryYear:fromURL:] + 848 4 TeX Live Utility 0x0000000104321c8c -[TLMEnvironment validServerURLFromURL:] + 100 5 TeX Live Utility 0x00000001042e8d68 -[TLMMainWindowController _goHome] + 308 6 TeX Live Utility 0x00000001042e94e4 -[TLMMainWindowController showWindow:] + 504 7 TeX Live Utility 0x00000001042e7a0c -[TLMAppController _continueApplicationDidFinishLaunching] + 280 8 CoreFoundation 0x000000018bbee820 CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 148 9 CoreFoundation 0x000000018bc828ec _CFXRegistrationPost_block_invoke + 88 10 CoreFoundation 0x000000018bc82834 _CFXRegistrationPost + 440 11 CoreFoundation 0x000000018bbbd48c _CFXNotificationPost + 764 12 Foundation 0x000000018ccaf030 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88 13 Foundation 0x000000018cd1e2d8 NSThreadPerformPerform + 264 14 CoreFoundation 0x000000018bbf9cfc CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 15 CoreFoundation 0x000000018bbf9c90 CFRunLoopDoSource0 + 176 16 CoreFoundation 0x000000018bbf9a00 CFRunLoopDoSources0 + 244 17 CoreFoundation 0x000000018bbf85f0 CFRunLoopRun + 828 18 CoreFoundation 0x000000018bbf7c5c CFRunLoopRunSpecific + 608 19 HIToolbox 0x0000000196177448 RunCurrentEventLoopInMode + 292 20 HIToolbox 0x0000000196177284 ReceiveNextEventCommon + 648 21 HIToolbox 0x0000000196176fdc _BlockUntilNextEventMatchingListInModeWithFilter + 76 22 AppKit 0x000000018f3d2c54 _DPSNextEvent + 660 23 AppKit 0x000000018fba8ebc -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716 24 AppKit 0x000000018f3c6100 -[NSApplication run] + 476 25 AppKit 0x000000018f39d3cc NSApplicationMain + 880 26 TeX Live Utility 0x00000001042e6bac main + 436 27 dyld 0x000000018b7a10e0 start + 2360

I am unsure where the issue lies and what to do, any help is appreciated, thanks!

amaxwell commented 1 year ago

See if you can dismiss the exception dialog and get to the main screen. If so, use the Window->Log menu to show the log, and post the contents of the latest session that showed a crash. If that doesn't work, send me ~/Library/Application Support/TeX Live Utility/Log Messages.plist and I'll figure it out from the raw data.

talicaddy commented 1 year ago

Screenshot 2023-10-19 at 18 57 42

Thanks a lot, this is what i found from your description (I think). If you want anything else, let me know! Thanks in advance

amaxwell commented 1 year ago

Yes, this is what I needed; your installation is incomplete (missing the .tlpdb database). Apparently homebrew has intentionally lobotomized TeX Live so that you can't update it, per https://tex.stackexchange.com/questions/674793/texlive-tlmgr-update-whats-the-best-configuration. If you want updates via the normal TeX Live mechanism, I recommend installing TeX Live via MacTeX or the TeX Live UNIX script.

amaxwell commented 1 year ago

Since homebrew gives users a way to install TeX Live Utility without telling users that it's incompatible with their lobotomized TeX Live, I may add a special alert for users who end up in this situation. Leaving the tlmgr command but removing its support files is a crappy way to handle this, and I am annoyed.

talicaddy commented 1 year ago

Oh God, I'm sorry i annoyed you! I deleted the brew version of mactex and texlive and downloaded mactex from the official website. However, when opening TexLive it says the following: Screenshot 2023-10-20 at 00 11 51

After following the steps the pop-up suggests (i.e. selecting /Library/Tex/texbin in the preferences), I get the following error. It seems that tlmgr isn't installed but I can't find instructions on how to install it... Screenshot 2023-10-20 at 00 13 04

amaxwell commented 1 year ago

Just to be clear, you didn't annoy me at all, and I'm sorry you're going through this hassle. I'm annoyed that Homebrew has perpetrated this, since the TeX Live/MacTeX teams and I go to a lot of trouble to make things work seamlessly for Mac users.

Did you install via MacTeX.pkg, or the TeX Live UNIX script? You can try pointing TLU at /usr/local/texlive/bin/universal-darwin, in case the symlink structure under /Library/TeX/texbin is messed up. Make sure tlmgr and kpsewhich live there.

talicaddy commented 1 year ago

Hi, yeah that sucks that you didn't know that too... I installed with the MacTex.pkg but when i followed your instructions, I notice that tlmgr isn't ni that directory... kpsewhich is though

talicaddy commented 1 year ago

Update, I tried installing tex live with the UNIX script. I installed your tlutility from the github, I selected the directory you mentioned earlier and now everything works. Thanks for your help!!