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

Windowsでカメラ撮影を行うと、PDUサイズが不足するケースがあり、そのサイズを増やすとUnityエディタが落ちる #39

Open
tmori opened this issue Aug 31, 2024 · 3 comments

Comments

@tmori
Copy link
Contributor

tmori commented Aug 31, 2024

原因

まず、対象となるPDUサイズはこちら。

public static readonly int CompressedImage_pdu_size = 102664 + PduMetaDataSize;

そして、落ちる原因は、RAMディスク(Zドライブ)のサイズが小さいことが原因。

デフォルトでは、64MBですが、これを大きくするとハングしなくなりました。
以下、修正手順。

①Unityエディタを落とします。
②ImDiskを起動し、Sizeを2GBにします。
③Exitボタンをクリックします。
④Zドライブのプラパティを参照しサイズが2GBになっていることを確認します。
⑤Unityエディタを起動します。

なお、この手順はPDUサイズを1MBに増やしたケースです。

@tmori
Copy link
Contributor Author

tmori commented Aug 31, 2024

ちなみに、この方法の欠点は、メモリ使用量が大きくなりそうという点です。
もし、メモリ負荷高まりすぎてマシンが不安定になる場合は、別の方法もあります。

  1. ZドライブのRAMDISKのサイズを元に戻して、別の既存ドライブ(例:Eドライブ)を使います。
  2. Eドライブ直下にmmapフォルダを作成します。
  3. hakoniwa-px4-win/hakoniwa/config/cpp_core_config.json の”Z:\mmap" を、”E:\mmap"に変更します。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@tmori and others