過去のスレッドにて、
MMDのカメラアニメーション(VMD)を読み込んで反映する内容がございましたので、
試してみたところ、MV1LoadModelでVMDファイルを読み込み時にメモリリークのようなログが表示されました。
DXライブラリの初期設定後、MV1LoadModelでVMDファイル(カメラアニメーション)を読み込むだけのプログラムで検証した結果を記載いたします。
-----
DXLIBバージョン : 3.15c
カメラVMDファイルの作成方法:
「MikuMikuDance_v801」を使用し、
付属サンプルの「サンプル(きしめん).pmm」を読み込んで、
「カメラフレームを全て選択」を選択後、「モーションデータ保存」で、VMDファイルを作成
MV1LoadModel実行直後のログ:
3670:
3670:Alloc memory dump
3672: size: 32880( 32.109kb) user size: 32768( 32.000kb) time:10092 file:Main\DxHandle.cpp line:86 ID:1 addr:0c2f00b0 data:[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
3673: size: 1136( 1.109kb) user size: 1024( 1.000kb) time:10092 file:Main\DxHandle.cpp line:86 ID:3 addr:0c2f8120 data:[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
3673: size: 32880( 32.109kb) user size: 32768( 32.000kb) time:10092 file:Main\DxHandle.cpp line:86 ID:5 addr:0c2f8590 data:[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
3674: size: 512( 0.500kb) user size: 400( 0.391kb) time:10092 file:Main\DxHandle.cpp line:86 ID:7 addr:0c300600 data:[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
3674: size: 16496( 16.109kb) user size: 16384( 16.000kb) time:10092 file:Main\DxHandle.cpp line:86 ID:9 addr:0c300800 data:[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
3675: size: 32880( 32.109kb) user size: 32768( 32.000kb) time:10092 file:Main\DxHandle.cpp line:86 ID:11 addr:0c304870 data:[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
3676: size: 65648( 64.109kb) user size: 65536( 64.000kb) time:10092 file:Main\DxHandle.cpp line:86 ID:13 addr:0c30c8e0 data:[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
3676: size: 65648( 64.109kb) user size: 65536( 64.000kb) time:10092 file:Main\DxHandle.cpp line:86 ID:15 addr:0c31c950 data:[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
3677: size: 32880( 32.109kb) user size: 32768( 32.000kb) time:10092 file:Main\DxHandle.cpp line:86 ID:17 addr:0c32c9c0 data:[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
3677: size: 912( 0.891kb) user size: 792( 0.773kb) time:10092 file:GraphicsD3D11.cpp line:9129 ID:19 addr:0c334a30 data:[00 03 00 00 90 05 ee 0e 48 4a 33 0c 01 00 00 00]
3678: size: 400( 0.391kb) user size: 280( 0.273kb) time:10092 file:GraphicsD3D11.cpp line:9129 ID:21 addr:0c334dc0 data:[00 01 00 00 50 20 ee 0e d8 4d 33 0c 01 00 00 00]
3679: size: 432( 0.422kb) user size: 312( 0.305kb) time:10092 file:GraphicsD3D11.cpp line:9129 ID:23 addr:0c334f50 data:[20 01 00 00 90 55 ee 0e 68 4f 33 0c 00 00 00 00]
3679: size: 2736( 2.672kb) user size: 2616( 2.555kb) time:10092 file:GraphicsD3D11.cpp line:9129 ID:25 addr:0c335100 data:[20 0a 00 00 d0 63 ee 0e 18 51 33 0c 00 00 00 00]
3680: size: 192( 0.187kb) user size: 72( 0.070kb) time:10092 file:GraphicsD3D11.cpp line:9129 ID:27 addr:0c335bb0 data:[30 00 00 00 10 72 ee 0e c8 5b 33 0c 00 00 00 00]
3680: size: 240( 0.234kb) user size: 120( 0.117kb) time:10092 file:GraphicsD3D11.cpp line:9129 ID:29 addr:0c335c70 data:[60 00 00 00 50 80 ee 0e 88 5c 33 0c 00 00 00 00]
3681: size: 400( 0.391kb) user size: 280( 0.273kb) time:10092 file:GraphicsD3D11.cpp line:9129 ID:31 addr:0c335d60 data:[00 01 00 00 90 8e ee 0e 78 5d 33 0c 00 00 00 00]
3682: size: 256( 0.250kb) user size: 136( 0.133kb) time:10092 file:in\DxGraphics.cpp line:23891 ID:33 addr:0c335ef0 data:[00 00 00 00 00 00 00 2c 03 00 00 00 00 00 80 3f]
3682: size: 272( 0.266kb) user size: 160( 0.156kb) time:10092 file:Main\DxHandle.cpp line:86 ID:35 addr:0c335ff0 data:[90 f4 20 03 00 00 00 00 00 00 00 00 00 00 00 00]
3684: size: 608( 0.594kb) user size: 496( 0.484kb) time:10092 file:Main\DxHandle.cpp line:196 ID:37 addr:0c336100 data:[01 00 00 00 00 00 01 04 f0 01 00 00 00 00 00 00]
3685: size: 240( 0.234kb) user size: 128( 0.125kb) time:10092 file:in\DxGraphics.cpp line:18346 ID:39 addr:0c336360 data:[01 00 00 00 0a 00 00 00 01 00 00 00 00 00 00 01]
3686: size: 896( 0.875kb) user size: 784( 0.766kb) time:10092 file:y\Main\DxFont.cpp line:4807 ID:41 addr:0c336450 data:[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
3686: size: 2160( 2.109kb) user size: 2048( 2.000kb) time:10092 file:Main\DxHandle.cpp line:86 ID:43 addr:0c3367d0 data:[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
3687: size: 864( 0.844kb) user size: 752( 0.734kb) time:10092 file:Main\DxHandle.cpp line:196 ID:45 addr:0c337040 data:[01 00 00 00 00 00 01 38 f0 02 00 00 00 00 00 00]
3688: size: 144( 0.141kb) user size: 18( 0.018kb) time:10092 file:xModelLoader3.cpp line:3205 ID:69 addr:0c3373a0 data:[74 00 65 00 73 00 74 00 2e 00 76 00 6d 00 64 00]
3689: size: 128( 0.125kb) user size: 10( 0.010kb) time:10092 file:xModelLoader3.cpp line:3206 ID:71 addr:0c337430 data:[74 00 65 00 73 00 74 00 00 00]
3690: size: 144( 0.141kb) user size: 24( 0.023kb) time:10092 file:n\DxModelRead.cpp line:1861 ID:139 addr:0c3374b0 data:[c0 74 33 0c 90 84 34 0c 30 6d 34 0c fa 9d 01 00]
3690: size: 144( 0.141kb) user size: 24( 0.023kb) time:10092 file:n\DxModelRead.cpp line:1861 ID:147 addr:0c337540 data:[50 75 33 0c 50 f8 34 0c f0 e0 34 0c 3a 10 02 00]
3691: size: 144( 0.141kb) user size: 27( 0.026kb) time:10092 file:NoName line:0 ID:151 addr:0c3375d0 data:[e0 75 33 0c 60 76 33 0c 50 f8 34 0c f9 1c 02 00]
3692: size: 144( 0.141kb) user size: 18( 0.018kb) time:10092 file:NoName line:0 ID:153 addr:0c337660 data:[70 76 33 0c 00 00 00 00 d0 75 33 0c fb 1c 02 00]
3692: size: 1264( 1.234kb) user size: 1152( 1.125kb) time:10092 file:Main\DxHandle.cpp line:196 ID:155 addr:0c3376f0 data:[01 00 00 00 00 00 01 34 80 04 00 00 00 00 00 00]
3693: size: 192( 0.187kb) user size: 68( 0.066kb) time:10092 file:NoName line:0 ID:81 addr:0c337f80 data:[90 7f 33 0c 40 80 33 0c 00 00 00 00 34 00 00 00]
3694: size: 144( 0.141kb) user size: 24( 0.023kb) time:10092 file:NoName line:0 ID:83 addr:0c338040 data:[50 80 33 0c 90 86 35 0c 80 7f 33 0c 3c 00 00 00]
3694: size: 1104( 1.078kb) user size: 990( 0.967kb) time:10092 file:\Main\DxModel.cpp line:13412 ID:61 addr:0c338160 data:[56 6f 63 61 6c 6f 69 64 20 4d 6f 74 69 6f 6e 20]
3695: size: 11824( 11.547kb) user size: 11712( 11.437kb) time:10092 file:n\DxModelRead.cpp line:1929 ID:125 addr:0c3385b0 data:[c0 85 33 0c e0 b3 33 0c 70 27 36 0c 5a d0 00 00]
3696: size: 11824( 11.547kb) user size: 11712( 11.437kb) time:10092 file:n\DxModelRead.cpp line:1929 ID:127 addr:0c33b3e0 data:[f0 b3 33 0c 10 e2 33 0c b0 85 33 0c 0a fe 00 00]
3697: size: 5984( 5.844kb) user size: 5864( 5.727kb) time:10092 file:n\DxModelRead.cpp line:1861 ID:129 addr:0c33e210 data:[20 e2 33 0c 70 f9 33 0c e0 b3 33 0c e2 14 01 00]
3698: size: 5984( 5.844kb) user size: 5864( 5.727kb) time:10092 file:n\DxModelRead.cpp line:1861 ID:131 addr:0c33f970 data:[80 f9 33 0c d0 10 34 0c 10 e2 33 0c ba 2b 01 00]
3698: size: 11824( 11.547kb) user size: 11712( 11.437kb) time:10092 file:n\DxModelRead.cpp line:1929 ID:133 addr:0c3410d0 data:[e0 10 34 0c 00 3f 34 0c 70 f9 33 0c 6a 59 01 00]
3699: size: 11824( 11.547kb) user size: 11712( 11.437kb) time:10092 file:n\DxModelRead.cpp line:1929 ID:135 addr:0c343f00 data:[10 3f 34 0c 30 6d 34 0c d0 10 34 0c 1a 87 01 00]
3700: size: 5984( 5.844kb) user size: 5864( 5.727kb) time:10092 file:n\DxModelRead.cpp line:1861 ID:137 addr:0c346d30 data:[40 6d 34 0c b0 74 33 0c 00 3f 34 0c f2 9d 01 00]
3701: size: 11824( 11.547kb) user size: 11712( 11.437kb) time:10092 file:n\DxModelRead.cpp line:1929 ID:141 addr:0c348490 data:[a0 84 34 0c c0 b2 34 0c b0 74 33 0c aa cb 01 00]
3701: size: 11824( 11.547kb) user size: 11712( 11.437kb) time:10092 file:n\DxModelRead.cpp line:1929 ID:143 addr:0c34b2c0 data:[d0 b2 34 0c f0 e0 34 0c 90 84 34 0c 5a f9 01 00]
3702: size: 5984( 5.844kb) user size: 5864( 5.727kb) time:10092 file:n\DxModelRead.cpp line:1861 ID:145 addr:0c34e0f0 data:[00 e1 34 0c 40 75 33 0c c0 b2 34 0c 32 10 02 00]
3703: size: 3392( 3.312kb) user size: 3268( 3.191kb) time:10092 file:NoName line:0 ID:149 addr:0c34f850 data:[60 f8 34 0c d0 75 33 0c 40 75 33 0c ee 1c 02 00]
3704: size: 16032( 15.656kb) user size: 15916( 15.543kb) time:10092 file:n\DxModelRead.cpp line:5011 ID:157 addr:0c350590 data:[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
3706: size: 144( 0.141kb) user size: 18( 0.018kb) time:10092 file:NoName line:0 ID:85 addr:0c358690 data:[a0 86 35 0c 20 87 35 0c 40 80 33 0c 3e 00 00 00]
3707: size: 464( 0.453kb) user size: 348( 0.340kb) time:10092 file:NoName line:0 ID:87 addr:0c358720 data:[30 87 35 0c f0 88 35 0c 90 86 35 0c 8a 01 00 00]
3708: size: 144( 0.141kb) user size: 20( 0.020kb) time:10092 file:NoName line:0 ID:89 addr:0c3588f0 data:[00 89 35 0c 80 89 35 0c 20 87 35 0c 8e 01 00 00]
3710: size: 160( 0.156kb) user size: 36( 0.035kb) time:10092 file:NoName line:0 ID:91 addr:0c358980 data:[90 89 35 0c 20 8a 35 0c f0 88 35 0c a2 01 00 00]
3711: size: 176( 0.172kb) user size: 64( 0.062kb) time:10092 file:NoName line:0 ID:93 addr:0c358a20 data:[30 8a 35 0c d0 8a 35 0c 80 89 35 0c d2 01 00 00]
3712: size: 176( 0.172kb) user size: 64( 0.062kb) time:10092 file:NoName line:0 ID:95 addr:0c358ad0 data:[e0 8a 35 0c 80 8b 35 0c 20 8a 35 0c 02 02 00 00]
3714: size: 176( 0.172kb) user size: 64( 0.062kb) time:10092 file:NoName line:0 ID:97 addr:0c358b80 data:[90 8b 35 0c 30 8c 35 0c d0 8a 35 0c 32 02 00 00]
3715: size: 176( 0.172kb) user size: 64( 0.062kb) time:10092 file:NoName line:0 ID:99 addr:0c358c30 data:[40 8c 35 0c e0 8c 35 0c 80 8b 35 0c 62 02 00 00]
3715: size: 176( 0.172kb) user size: 64( 0.062kb) time:10092 file:NoName line:0 ID:101 addr:0c358ce0 data:[f0 8c 35 0c 90 8d 35 0c 30 8c 35 0c 92 02 00 00]
3716: size: 176( 0.172kb) user size: 64( 0.062kb) time:10092 file:NoName line:0 ID:103 addr:0c358d90 data:[a0 8d 35 0c 40 8e 35 0c e0 8c 35 0c c2 02 00 00]
3716: size: 3056( 2.984kb) user size: 2940( 2.871kb) time:10092 file:odelLoaderVMD.cpp line:767 ID:105 addr:0c358e40 data:[50 8e 35 0c 30 9a 35 0c 90 8d 35 0c 2e 0e 00 00]
3718: size: 8912( 8.703kb) user size: 8788( 8.582kb) time:10092 file:odelLoaderVMD.cpp line:773 ID:107 addr:0c359a30 data:[40 9a 35 0c 00 bd 35 0c 40 8e 35 0c 72 30 00 00]
3719: size: 3056( 2.984kb) user size: 2940( 2.871kb) time:10092 file:odelLoaderVMD.cpp line:780 ID:109 addr:0c35bd00 data:[10 bd 35 0c f0 c8 35 0c 30 9a 35 0c de 3b 00 00]
3720: size: 8912( 8.703kb) user size: 8788( 8.582kb) time:10092 file:odelLoaderVMD.cpp line:786 ID:111 addr:0c35c8f0 data:[00 c9 35 0c c0 eb 35 0c 00 bd 35 0c 22 5e 00 00]
3721: size: 3056( 2.984kb) user size: 2940( 2.871kb) time:10092 file:odelLoaderVMD.cpp line:793 ID:113 addr:0c35ebc0 data:[d0 eb 35 0c b0 f7 35 0c f0 c8 35 0c 8e 69 00 00]
3722: size: 3056( 2.984kb) user size: 2940( 2.871kb) time:10092 file:odelLoaderVMD.cpp line:799 ID:115 addr:0c35f7b0 data:[c0 f7 35 0c a0 03 36 0c c0 eb 35 0c fa 74 00 00]
3723: size: 3056( 2.984kb) user size: 2940( 2.871kb) time:10092 file:odelLoaderVMD.cpp line:806 ID:117 addr:0c3603a0 data:[b0 03 36 0c 90 0f 36 0c b0 f7 35 0c 66 80 00 00]
3724: size: 3056( 2.984kb) user size: 2940( 2.871kb) time:10092 file:odelLoaderVMD.cpp line:812 ID:119 addr:0c360f90 data:[a0 0f 36 0c 80 1b 36 0c a0 03 36 0c d2 8b 00 00]
3725: size: 3056( 2.984kb) user size: 2940( 2.871kb) time:10092 file:odelLoaderVMD.cpp line:819 ID:121 addr:0c361b80 data:[90 1b 36 0c 70 27 36 0c 90 0f 36 0c 3e 97 00 00]
3725: size: 3056( 2.984kb) user size: 2940( 2.871kb) time:10092 file:odelLoaderVMD.cpp line:825 ID:123 addr:0c362770 data:[80 27 36 0c b0 85 33 0c 80 1b 36 0c aa a2 00 00]
3726: size: 131184( 128.109kb) user size: 131072( 128.000kb) time:00000 file:Main\DxHandle.cpp line:86 ID:1 addr:030e00b0 data:[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
3726: size: 131184( 128.109kb) user size: 131072( 128.000kb) time:10092 file:Main\DxHandle.cpp line:86 ID:3 addr:03100120 data:[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
3727: size: 131184( 128.109kb) user size: 131072( 128.000kb) time:10092 file:Main\DxHandle.cpp line:86 ID:5 addr:03120190 data:[00 61 33 0c 00 00 00 00 00 00 00 00 00 00 00 00]
3727: size: 556032( 543.000kb) user size: 555914( 542.885kb) time:10092 file:GraphicsD3D11.cpp line:1424 ID:7 addr:03140200 data:[44 06 94 06 c0 06 80 07 7c 09 60 0a b8 0a 6c 04]
3728: size: 203376( 198.609kb) user size: 203256( 198.492kb) time:10092 file:GraphicsD3D11.cpp line:1466 ID:9 addr:031c7e00 data:[08 03 14 03 14 03 08 03 14 03 14 03 20 03 08 03]
3728: size: 89120( 87.031kb) user size: 89004( 86.918kb) time:10092 file:GraphicsD3D11.cpp line:1490 ID:11 addr:031f9870 data:[11 f2 26 55 99 11 55 aa 65 d5 7c 66 55 aa 20 55]
3729: size: 603072( 588.937kb) user size: 602960( 588.828kb) time:10092 file:Main\DxHandle.cpp line:196 ID:15 addr:0320f490 data:[01 00 00 00 00 00 01 20 50 33 09 00 90 42 d9 00]
3729: size: 2097264( 2048.109kb) user size: 2097152( 2048.000kb) time:10092 file:y\Main\DxFont.cpp line:4708 ID:17 addr:032a2850 data:[ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f]
3730: size: 131184( 128.109kb) user size: 131072( 128.000kb) time:10092 file:Main\DxHandle.cpp line:86 ID:19 addr:034a28c0 data:[f0 76 33 0c 00 00 00 00 00 00 00 00 00 00 00 00]
3730: size: 131184( 128.109kb) user size: 131072( 128.000kb) time:10092 file:Main\DxHandle.cpp line:86 ID:21 addr:034c2930 data:[40 70 33 0c 00 00 00 00 00 00 00 00 00 00 00 00]
3731: size: 17386416( 16978.922kb) user size: 17386296( 16978.805kb) time:10092 file:GraphicsD3D11.cpp line:1727 ID:23 addr:034e29a0 data:[0c 0d a0 0d bc 0d 38 0d 2c 0f c0 0f dc 0f 58 0f]
3732: Total size:22036039(21519.569kb) Alloc num:76
3732:
3733:Read Model Convert Error : モデル基本データ構築に使用するテンポラリバッファの確保に失敗しました
-----
どこかで、認識間違いをしている可能性(良くあるので……)もございますが、
一旦 ご報告させていただきます。