fu7mu4’s diary

はてなダイアリーから移転しました。

pycharm is suddenly dead

why pycharm is suddenly dead ?

理由はわからないが pycharm が起動しなくなったのでいろいろ試してみた記録

操作

/Application/PyCharm CE.app をダブルクリック

期待した動作

PyCharm CE の起動

実際の動作

メニューに PyCharmと表われるもののすぐに消えてしまう。

ログ

コンソール.app のログ

Process:               python [27743]
Path:                  /Users/USER/*/python
Identifier:            python
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        pycharm [27480]
Responsible:           python [27743]
User ID:               501

Date/Time:             2019-04-27 00:54:07.346 +0900
OS Version:            Mac OS X 10.14.4 (18E226)
Report Version:        12
Anonymous UUID:        E2143080-716A-5603-C197-A0C5A7F6E360

Sleep/Wake UUID:       EF4C14FA-5C00-4EC9-98BF-CB5A3563F682

Time Awake Since Boot: 1800000 seconds
Time Since Wake:       6800 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /opt/local/Library/Frameworks/Python.framework/Versions/3.5/Python
  Referenced from: /Users/USER/*/python
  Reason: image not found

Binary Images:
       0x10f76d000 -        0x10f76efff +python (0) <A5742A7B-580B-3837-A76B-6183B9F1FDE6> /Users/USER/*/python
       0x114528000 -        0x1145926ef  dyld (655.1.1) <F217F7F8-A795-3109-B77F-B1E2277F3E3B> /usr/lib/dyld


System Profile:
Network Service: Apple USB Ethernet Adapter, Ethernet, en3
Network Service: Wi-Fi, AirPort, en0
Boot Volume File System Type: apfs
Memory Module: BANK 0/DIMM0, 4 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C3531324D3332443250462D3039
Memory Module: BANK 1/DIMM0, 4 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C3531324D3332443250462D3039
USB Device: USB 3.0 Bus
USB Device: USB 2.0 Hub
USB Device: Elements 25A2
USB Device: Apple USB Ethernet Adapter
Thunderbolt Bus: MacBook Pro, Apple Inc., 39.2
Model: MacBookPro14,1, BootROM 190.0.0.0.0, 2 processors, Intel Core i5, 2.3 GHz, 8 GB, SMC 2.43f6
Graphics: kHW_IntelIrisGraphics640Item, Intel Iris Plus Graphics 640, spdisplays_builtin
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x170), Broadcom BCM43xx 1.0 (7.77.61.2 AirPortDriverBrcmNIC-1305.8)
Bluetooth: Version 6.0.11f4, 3 services, 18 devices, 1 incoming serial ports

抜粋 Dyld Message

Dyld Error Message:
  Library not loaded: /opt/local/Library/Frameworks/Python.framework/Versions/3.5/Python
  Referenced from: /Users/USER/*/python
  Reason: image not found

/opt/local/Library/Frameworks/Python.framework/Versions/3.5 の下に Python フォルダがない。3.6 にはある。

とりあえず python3.5 をいれるとそのディレクトリが作成できた。

再度実行

メニューに PyCharmと表われるもののすぐに消えてしまう。

ターミナルからの起動

2019-04-27 10:18:35.145 pycharm[1234:40447] allVms required 1.8*,1.8+ 2019-04-27 10:18:35.148 pycharm[1234:40458] Value of PYCHARM_VM_OPTIONS is (null) 2019-04-27 10:18:35.148 pycharm[1234:40458] Processing VMOptions file at /Users/dote/Library/Preferences/PyCharmCE2019.1/pycharm.vmoptions 2019-04-27 10:18:35.148 pycharm[1234:40458] Done OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

Start Failed: Internal error. Please report to http://jb.gg/ide/critical-startup-errors

java.lang.NoSuchMethodError: com.intellij.openapi.util.text.StringUtil$1: method ()V not found at com.intellij.openapi.util.text.StringUtil.(StringUtil.java:104) at com.intellij.openapi.util.SystemInfo.(SystemInfo.java:45) at com.intellij.Patches.(Patches.java:14) at com.intellij.openapi.util.io.FileUtil.(FileUtil.java:40) at com.intellij.openapi.application.PathManager.getAbsolutePath(PathManager.java:557) at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:84) at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:72) at com.intellij.openapi.application.PathManager.loadProperties(PathManager.java:409) at com.intellij.ide.Bootstrap.main(Bootstrap.java:17) at com.intellij.idea.Main.main(Main.java:61)

java.lang.Error: no ComponentUI class for: javax.swing.JTextPane[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=,caretColor=,disabledTextColor=,editable=true,margin=,selectedTextColor=,selectionColor=,kit=,typeHandlers=] at java.desktop/javax.swing.UIDefaults.getUIError(Unknown Source) at java.desktop/javax.swing.MultiUIDefaults.getUIError(Unknown Source) at java.desktop/javax.swing.UIDefaults.getUI(Unknown Source) at java.desktop/javax.swing.UIManager.getUI(Unknown Source) at java.desktop/javax.swing.text.JTextComponent.updateUI(JTextComponent.java:340) at java.desktop/javax.swing.text.JTextComponent.(JTextComponent.java:314) at java.desktop/javax.swing.JEditorPane.(JEditorPane.java:196) at java.desktop/javax.swing.JTextPane.(Unknown Source) at com.intellij.idea.Main.showMessage(Main.java:158) at com.intellij.idea.Main.showMessage(Main.java:134) at com.intellij.idea.Main.main(Main.java:64)

Also, an UI exception occurred on attempt to show above message: java.lang.NoSuchFieldError: AA_TEXT_PROPERTY_KEY at java.desktop/javax.swing.JComponent.setUI(JComponent.java:662) at java.desktop/javax.swing.text.JTextComponent.setUI(JTextComponent.java:330) at java.desktop/javax.swing.text.JTextComponent.updateUI(JTextComponent.java:340) at java.desktop/javax.swing.text.JTextComponent.(JTextComponent.java:314) at java.desktop/javax.swing.JEditorPane.(JEditorPane.java:196) at java.desktop/javax.swing.JTextPane.(Unknown Source) at com.intellij.idea.Main.showMessage(Main.java:158) at com.intellij.idea.Main.showMessage(Main.java:134) at com.intellij.idea.Main.main(Main.java:64)

あ、これは何かやらかしたらしい。

報告しろとあったので、http://jb.gg/ide/critical-startup-errors を開いて報告した。