Open Grinchii opened 7 months ago
大きい画像ファイルを開いたときにメモリ不足で止まっているようです。メモリ容量の制限があるJavaを利用しているか、Javaのメモリ割り当てが少なくなっているか、または使っているパソコンのメモリが少ないなどが考えられる。
どこのJavaを使っているかメモリ割り当てはいくらか、パソコンのメインメモリ容量などがわからないと何とも言えません。
https://qiita.com/niwasawa/items/a9d0a34183dad738e80b
https://stackoverflow.com/questions/28272923/what-is-the-default-max-heap-size-xmx-in-java-8
Thank you!
It really was the ram. With set to 16gb (VM) even "マギクラフト・マイスター" gets converted just fine. Tried it with 8gb before but it didn't work. So it seems like you really need 16gb+ to convert "マギクラフト・マイスター"without Problems.
Didn't thought that it would need that much ram to convert this.
テキストと画像なので軽い処理と考えてあまりメモリの管理はしっかりしたものになっていない。なのでメモリリークが起こって必要以上にメモリを消費している可能性がある。予想以上に過酷な使われ方をしているのでちゃんとしたメモリの管理が必要なのかもしれない。
Hello,
first, sorry for writing in English! I can read Japanese perfectly fine, but it's still difficult for me to write more complex stuff.
I'm using narou.rb on Ubuntu with 改造版AozoraEpub3 and it works great. But I always get a Java Error if I try to convert 槍使いと、黒猫。 or マギクラフト・マイスター into an epub. Those are both really long books, but other, even longer books like "レジェンド" are converting perfectly fine.
First I thought this could be a problem with narou.rb, but using an older 改造版AozoraEpub3 (From 2022) at least "槍使いと、黒猫。" converts perfectly fine. "マギクラフト・マイスター" still won't work on any Version I tried so.
Using OpenJDK 21. Also tried it with older Java Versions, but it won't change anything.