ho-dev / HattrickOrganizer

Assistant for Hattrick online football manager
https://ho-dev.github.io/HattrickOrganizer/
GNU Lesser General Public License v3.0
194 stars 79 forks source link

[BUG] - OutOfMemoryError #1395

Closed padr19 closed 2 years ago

padr19 commented 2 years ago

Describe the bug HO doesnt start, ends up with this error.

To Reproduce Steps to reproduce the behavior:

  1. Pure install
  2. Import a lot of hrf files

Screenshots java.lang.OutOfMemoryError: Java heap space at java.base/java.lang.StringUTF16.newBytesFor(StringUTF16.java:53) at java.base/java.lang.AbstractStringBuilder.inflate(AbstractStringBuilder.java:272) at java.base/java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:802) at java.base/java.lang.StringBuilder.append(StringBuilder.java:240) at core.db.DBManager.deleteEscapeSequences(DBManager.java:2583) at core.db.StaffTable.getStaffByHrfId(StaffTable.java:52) at core.db.DBManager.getStaffByHrfId(DBManager.java:1447) at core.model.HOModel.(HOModel.java:98) at core.model.HOVerwaltung.loadModel(HOVerwaltung.java:206) at core.model.HOVerwaltung.loadLatestHoModel(HOVerwaltung.java:122) at core.HO.main(HO.java:183) at core.HOLauncher.main(HOLauncher.java:75) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84) at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94) at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:25)

Platform information:

github-actions[bot] commented 2 years ago

Hey, thanks for opening your first issue! 🙂 Be sure to check out the wiki and the HT forum for support.

masterpatje commented 2 years ago

I downloaded a lot of files in v6.0.261 and previous versions of 6.0. A lot of .hrf files even up to 2012 (!) and all worked fine. So I would advise to use the new 6.0 version and close this issue.

The issue is related to v5.2 so not relevant to the v6.0 versions.

padr19 commented 2 years ago

You are right, version 6 works very well. Thank you.