質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

2回答

1502閲覧

【Rails】ローカルホストへアクセスすると「Don't forget to include the Crash Report log file」がターミナルに出力される

Hinoarashi.

総合スコア76

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2021/12/03 05:11

現在以下の通り環境をバージョンUPしています。

旧バージョン新バージョン
Rails 5.12Rails 7.0.0.alpha2
Ruby 2.4.1Ruby 3.0.0

ローカルホストへ入ると以下のログが流れます。

103bfa000-103bfb000 r-x /Users/daimetatsuru/.rbenv/versions/3.0.0/bin/ruby 103bfb000-103c08000 r-- /Users/daimetatsuru/.rbenv/versions/3.0.0/bin/ruby 103c08000-10403f000 r-- /Users/daimetatsuru/.rbenv/versions/3.0.0/lib/libruby.3.0.dylib 10403f000-1040a5000 r-- /usr/lib/system/libsystem_platform.dylib 1040a5000-104728000 r-- /Users/daimetatsuru/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/sassc-2.4.0/lib/sassc/libsass.bundle 10564f000-1056eb000 r-x /usr/lib/dyld 1056eb000-1056f3000 r-- /usr/lib/dyld 1056f3000-1056f7000 rw- /usr/lib/dyld 1056f7000-10572b000 rw- /usr/lib/dyld 10572b000-105763000 r-- /usr/lib/dyld 105763000-105767000 r-- 70000d597000-70000d598000 --- 70000d598000-70000d61a000 rw- 70000d61a000-70000d61b000 --- 70000d61b000-70000d81d000 rw- [IMPORTANT] Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports. [58210] - Worker 1 (PID: 58262) booted in 0.03s, phase: 0 ...

DiagnosticReports directoryには以下のログが残っています。

・postgres-2021-12-03-093855.ips
・postgres_2021-12-03-110116_MacBook-Pro.crash
・watchman-2021-12-03-111228.ips
・watchman_2021-12-03-115053_MacBook-Pro.crash

それぞれのログは以下のような感じです。

{"app_name":"postgres","timestamp":"2021-12-03 09:38:55.00 +0900","app_version":"","slice_uuid":"1399b60f-7cd3-34d2-bb9e-3b386be85e92","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 11.2.3 (20D91)","incident_id":"18A7F087-773B-41D4-AAA8-BE8192E7F8C1","name":"postgres"} { "uptime" : 1900, "procLaunch" : "2021-12-03 09:38:55.5666 +0900", "procRole" : "Unspecified", "exception" : { "type" : "EXC_CRASH", "signal" : "SIGABRT", "codes" : "0x0000000000000000, 0x0000000000000000" }, "userID" : 501, "modelCode" : "MacBookPro16,2", "coalitionID" : 586, "osVersion" : { "train" : "macOS 11.2.3", "build" : "20D91", "releaseType" : "" }, "captureTime" : "2021-12-03 09:38:55.5802 +0900", "incident" : "18A7F087-773B-41D4-AAA8-BE8192E7F8C1", "pid" : 1835, "cpuType" : "X86-64", "procName" : "postgres", "procPath" : "/usr/local/Cellar/postgresql/14.1_1/bin/postgres", "parentProc" : "launchd", "parentPid" : 1, "coalitionName" : "homebrew.mxcl.postgresql", "crashReporterKey" : "AF780386-3FAE-5235-BD69-1AEB1785B14E", "bridgeVersion" : {"build":"18P4347","train":"5.2"}, "sip" : "enabled", "is_corpse" : 1, "termination" : {"flags":518,"code":1,"namespace":"DYLD","description":"DYLD, dyld: Using shared cache: 52762DF1-0E55-3F8B-9588-8169E6D0EB95 | Library not loaded: /usr/local/opt/krb5/lib/libgssapi_krb5.2.2.dylib | Referenced from: /usr/local/opt/postgresql/bin/postgres | Reason: image not found"}, "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":2366},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0}, "threads" : [{"id":46664,"frames":[[0,376698],[0,544576],[0,544626],[0,20810],[0,36070],[0,4651],[0,4133]],"triggered":true}], "threadState" : { "r13" : 140732769334512, "rax" : 33554953, ...
Process: postgres [8722] Path: /usr/local/Cellar/postgresql/14.1_1/bin/postgres Identifier: postgres Version: 0 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: postgres [8722] User ID: 501 Date/Time: 2021-12-03 11:01:16.813 +0900 OS Version: macOS 11.2.3 (20D91) Report Version: 12 Bridge OS Version: 5.2 (18P4347) Anonymous UUID: AF780386-3FAE-5235-BD69-1AEB1785B14E Time Awake Since Boot: 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: dyld: Using shared cache: 52762DF1-0E55-3F8B-9588-8169E6D0EB95 Library not loaded: /usr/local/opt/krb5/lib/libgssapi_krb5.2.2.dylib Referenced from: /usr/local/opt/postgresql/bin/postgres Reason: image not found ...
{"app_name":"watchman","timestamp":"2021-12-03 11:12:28.00 +0900","app_version":"","slice_uuid":"962ae56c-7382-3c9d-8e7d-00bfc0b2d2ea","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 11.2.3 (20D91)","incident_id":"D2DD0F69-2E4D-4F64-AB11-A0C4375D0984","name":"watchman"} { "uptime" : 7500, "procLaunch" : "2021-12-03 11:12:28.2423 +0900", "procRole" : "Unspecified", "exception" : { "type" : "EXC_CRASH", "signal" : "SIGABRT", "codes" : "0x0000000000000000, 0x0000000000000000" }, "userID" : 501, "modelCode" : "MacBookPro16,2", "coalitionID" : 580, "osVersion" : { "train" : "macOS 11.2.3", "build" : "20D91", "releaseType" : "" }, "captureTime" : "2021-12-03 11:12:28.2599 +0900", "incident" : "D2DD0F69-2E4D-4F64-AB11-A0C4375D0984", "pid" : 18819, "cpuType" : "X86-64", "procName" : "watchman", "procPath" : "/usr/local/Cellar/watchman/2021.11.15.00/bin/watchman", "parentProc" : "launchd", "parentPid" : 1, "coalitionName" : "com.github.facebook.watchman", "crashReporterKey" : "AF780386-3FAE-5235-BD69-1AEB1785B14E", "bridgeVersion" : {"build":"18P4347","train":"5.2"}, "sip" : "enabled", "is_corpse" : 1, "termination" : {"flags":518,"code":1,"namespace":"DYLD","description":"DYLD, dyld: Using shared cache: 52762DF1-0E55-3F8B-9588-8169E6D0EB95 | Library not loaded: /usr/local/opt/icu4c/lib/libicudata.69.dylib | Referenced from: /usr/local/opt/boost/lib/libboost_regex-mt.dylib | Reason: image not found"}, "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":6807},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0}, "threads" : [{"id":207669,"frames":[[0,376698],[0,544576],[0,544626],[0,20810],[0,36070],[0,4651],[0,4133]],"triggered":true}], "threadState" : { "r13" : 140732780642704, "rax" : 33554953
Process: watchman [58184] Path: /usr/local/Cellar/watchman/2021.11.15.00/bin/watchman Identifier: watchman Version: 0 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: watchman [58184] User ID: 501 Date/Time: 2021-12-03 11:50:53.312 +0900 OS Version: macOS 11.2.3 (20D91) Report Version: 12 Bridge OS Version: 5.2 (18P4347) Anonymous UUID: AF780386-3FAE-5235-BD69-1AEB1785B14E Time Awake Since Boot: 9800 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: dyld: Using shared cache: 52762DF1-0E55-3F8B-9588-8169E6D0EB95 Library not loaded: /usr/local/opt/icu4c/lib/libicudata.69.dylib Referenced from: /usr/local/opt/boost/lib/libboost_regex-mt.dylib Reason: image not found ...

この現象はしばらく出力されたら、普段通りローカルホストへアクセスができアプリが起動します。
2回目以降はキャッシュが残っているのか、この現象は起きません。
しかし、rake tmp:clearをしたらまた同じ現象が起こります。

不思議なのは僕のアプリにポスグレもウォッチマンも使われてないのにクラッシュのレポートがされる点です。
今のところアプリに悪影響はありませんが、大量のログが吐き出されて気持ち悪いです。

どなたか解決策をご存知の方教えていただけると幸いです。
何卒よろしくお願いいたします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

自己解決

config/initializers/assets.rbに以下のコード追加したら大量のエラーログがなくなりました。

Rails.application.config.assets.configure do |env| env.export_concurrent = false end

投稿2021/12/03 09:19

Hinoarashi.

総合スコア76

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

投稿2021/12/03 06:50

heroyct

総合スコア434

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問