tag:help.beatunes.com,2009-07-24:/discussions/problems/46182-crashes-while-analyzingbeaTunes: Discussion 2017-05-20T10:31:39Ztag:help.beatunes.com,2009-07-24:Comment/425918322017-05-19T11:46:02Z2017-05-19T11:46:02Zcrashes while analyzing<div><p>Hi,</p>
<p>BT keeps crashing when analyzing (substantial number of) songs.<br>
At first memory related crashes it seemed, with long intervals but now it crashes right away after displaying the splash screen.<br>
There's plenty of mem allocated (8 GB at first, increased to 12 GB) System total 16. Win 10 pro.<br>
Some crashes are accompanied by windows error msg about sys low on memory, but as far as I can see in Task Manager there is still headroom.</p></div>ErikLtag:help.beatunes.com,2009-07-24:Comment/425918322017-05-19T12:04:21Z2017-05-19T12:04:21Zcrashes while analyzing<div><p>Hey Erik,</p>
<p>A couple of questions:</p>
<ol>
<li>How many songs are in your library?<br></li>
<li>Upon restart, has beaTunes ever offered to upload a crashlog?<br></li>
<li>What exactly do you mean with "crash"? Did the application freeze (not react to input) or simply "disappear"?<br></li>
<li>After beaTunes crashed, did you kill it via the Task Manager?</li>
</ol>
<p>Thank you,</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/425918322017-05-19T12:16:58Z2017-05-19T12:16:58Zcrashes while analyzing<div><p>Thanks for the quick reply.</p>
<ol>
<li>
<p>total 200.000+. Yesterday afternoon I started analyzing a batch of appx 15k songs. Went well for a couple of hrs, then had 3 crashes with long intervals and then it chugged along happily all night. This morning more crashes culminating in not getting past the splash screen.</p>
</li>
<li>
<p>nope</p>
</li>
</ol>
<p>3/4. disappear, also from task manager.</p></div>ErikLtag:help.beatunes.com,2009-07-24:Comment/425918322017-05-19T12:42:01Z2017-05-19T12:42:01Zcrashes while analyzing<div><p>Thank you for the info.</p>
<p>In <code>C:\Users\naglag\AppData\Local\Temp</code>, <code>C:\Program Files\beaTunes4\</code> or any of its subdirectories, is there a file starting with the name <code>hs_err_</code>?<br>
Or perhaps in your home directory <code>C:\Users\naglag</code>?</p>
<p>If you can find such a file, can you please send it to me?</p>
<p>Thanks,</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/425918322017-05-19T13:11:54Z2017-05-19T13:11:54Zcrashes while analyzing<div><p>Found some in the temp dir and had a look. Seems to be consistent with the windows error msg I saw, so probably not a Beatunes issue.<br>
As I said in the OP total memory was never maxed out, but I don't claim to understand all the metrics in task manager's memory tab.</p>
<p>It's probably a bit extreme to commit a batch of 15k files for analysis, but who knows it might help with further improving memory mgt :-)</p></div>ErikLtag:help.beatunes.com,2009-07-24:Comment/425918322017-05-19T13:17:44Z2017-05-19T13:17:44Zcrashes while analyzing<div><p>In any case...</p>
<p>I took a look at your logs. From what I can tell, 12GB are overkill and may contribute to the trouble you're having. Please reduce that back to 8GB. If you're unsure about memory, please open the beaTunes <em>About</em> dialog. It lets you monitor beaTunes' memory consumption. (your logs don't really show more than 4GB use).</p>
<p>Also, please shut down beaTunes and download and install the current dev snapshot from <a href="https://www.beatunes.com/download/beaTunes-4-6-16-SNAPSHOT-x64.exe">https://www.beatunes.com/download/beaTunes-4-6-16-SNAPSHOT-x64.exe</a></p>
<p>It contains a code change that may solve the original problem you were experiencing. Please give this a try and let me know how it goes. Should there still be issues, please send fresh logs.</p>
<p>That all aside, here's a little tip for running the analysis with a very large collection:</p>
<p>Whenever you are calculating a value (e.g. BPM), beaTunes will check whether it needs to be displayed in the main table. If the main table it set to show all your 200K songs, this may require reloading the complete 200K index to do proper sorting & ordering.</p>
<p>So to ease the workload, create an empty playlist and make sure it's shown during analysis. Also, and this may not really make a difference, make sure the sort order of the main table is set to something that has nothing to do with the analyzed properties, e.g. <em>grouping</em>.</p>
<p>Thanks,</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/425918322017-05-19T13:20:01Z2017-05-19T13:20:01Zcrashes while analyzing<div><p>Thanks for those logs.</p>
<blockquote>
<p>Found some in the temp dir and had a look.</p>
</blockquote>
<p>Which one? <code>C:\Users\naglag\AppData\Local\Temp</code>?</p>
<p>These logs support the hypothesis that your system does not support granting beaTunes the 12GB you said it should allocate. Reducing to 8GB is probably the best bet.</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/425918322017-05-19T13:30:30Z2017-05-19T13:30:30Zcrashes while analyzing<div><blockquote>
<p>Which one? C:\Users\naglag\AppData\Local\Temp? yep</p>
</blockquote>
<p>Thanks for the tips. it's very helpful to have some insight into the internals.<br>
I'll need some time to go through it.</p></div>ErikLtag:help.beatunes.com,2009-07-24:Comment/425918322017-05-19T16:06:25Z2017-05-19T16:06:25Zcrashes while analyzing<div><blockquote>
<blockquote>
<p>Which one? C:\Users\naglag\AppData\Local\Temp</p>
</blockquote>
<p>yep</p>
</blockquote>
<p>Thanks. I will need to change the the crash log reporting to take that into account.</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/425918322017-05-20T09:37:48Z2017-05-20T10:31:39Zcrashes while analyzing<div><blockquote>
<p>Whenever you are calculating a value (e.g. BPM), beaTunes will check whether it needs to be displayed in the main table. If the main table it set to show all your 200K songs, this may require reloading the complete 200K index to do proper sorting & ordering.</p>
<p>to ease the workload, create an empty playlist and make sure it's shown during analysis</p>
</blockquote>
<p>Is this regardless of whether the main table is visible (library tab in focus)?</p>
<blockquote>
<p>make sure the sort order of the main table is set to something that has nothing to do with the analyzed properties</p>
</blockquote>
<p>It was set to COLOR because that was the only way I know to select unanalyzed songs. So if this makes a difference it will have contributed.</p>
<p>RESULTS<br>
I did a analyze-run with the new snapshot and empty playlist in library view. Analyzing is about 3x as fast as it was before. Now the CPU consistently maxes out and BT remains responsive during analysis.</p>
<p>In the memory tab of task manager the left value in the "Committed" pair is much lower than before. Both values used to be within 1-2 GB, now there's a spread of 8 GB.</p>
<p>So a great improvement, thanks.</p>
<p>There was a file-related issue:<br>
The last msg in the bottom pane of the Analisys tab was<br>
"Failed to decode track 'Our Delight' (java.lang.IllegalArgumentException: Failed to create AudioInputStream with format PCM_SIGNED 88200.0 Hz, 24 bit, 6 channels, 18 bytes/frame, little-endian from com.tagtraum.ffsampledsp.FFAudioInputStream@7b9f97a8)".</p>
<p>I think BT broke off analysis there. It's a 370 MB flac file, so I can't upload it. Foobar and JRiver play it OK, but BT errors with msg "failed to open item. Unrecognized file signature"</p>
<p>EDIT: error while uploading logs (413)</p></div>ErikLtag:help.beatunes.com,2009-07-24:Comment/425918322017-05-20T10:30:56Z2017-05-20T10:30:56Zcrashes while analyzing<div><blockquote>
<blockquote>
<p>to ease the workload, create an empty playlist and make sure it's shown during analysis</p>
</blockquote>
<p>Is this regardless of whether the main table is visible (library tab in focus)?</p>
</blockquote>
<p>Yes.</p>
<blockquote>
<p>So a great improvement, thanks.</p>
</blockquote>
<p>My pleasure.</p>
<blockquote>
<p>There was a file-related issue: The last msg in the bottom pane of the Analisys tab was<br>
"Failed to decode track 'Our Delight' (java.lang.IllegalArgumentException: Failed to create AudioInputStream with format PCM_SIGNED 88200.0 Hz, 24 bit, 6 channels, 18 bytes/frame, little-endian from com.tagtraum.ffsampledsp.FFAudioInputStream@7b9f97a8)".</p>
<p>I think BT broke off analysis there. It's a 370 MB flac file, so I can't upload it. Foobar and JRiver play it OK, but BT errors with msg "failed to open item. Unrecognized file signature"</p>
<p>EDIT: error while uploading logs (413)</p>
</blockquote>
<p>Please start separate discussion for separate topics. I'm going to split this last one of..</p></div>hendrik