Skip to content

Conversation

@bagusnl
Copy link
Member

@bagusnl bagusnl commented Dec 19, 2025

Main Goal

Tryfix for launcher crash due to ODE during game/region switch.

This is caused by the using clause on the stream causing the resultStream to somehow getting double disposed during the event ImageOnImageOpened and crashes about 95% of the time during game/region change.

PR Status :

  • Overall Status : Done
  • Commits : Done
  • Synced to base (Collapse:main) : Yes
  • Build status : OK
  • Crashing : Yes
  • Bug found caused by PR : 0

Templates

Changelog Prefixes
  **[New]**
  **[Imp]**
  **[Fix]**
  **[Loc]**
  **[Doc]**

This is caused by the `using` clause on the stream causing the resultStream to somehow getting double disposed during the event `ImageOnImageOpened` and crashes about 95% of the time during game/region change.
@bagusnl bagusnl requested a review from a team December 19, 2025 19:17
@bagusnl bagusnl self-assigned this Dec 19, 2025
@bagusnl bagusnl added Bug Something isn't working Area: Runtime Issue labeled for runtime, Hi3Helper.Core and other libraries used by Collapse Priority: High Size: Small labels Dec 19, 2025
@bagusnl
Copy link
Member Author

bagusnl commented Dec 19, 2025

This fix does work atm but causes memory bloating. Trying to find another solution...

@bagusnl
Copy link
Member Author

bagusnl commented Dec 19, 2025

False alarm, memory bloating only occurs when you load plugin subsystem:
image

Only tested for HBR plugin atm, but worth looking at another time

@bagusnl
Copy link
Member Author

bagusnl commented Dec 19, 2025

@sentry review

Copy link
Member

@Cryotechnic Cryotechnic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The memory spike is not an issue and will also get GC'ed, LGTM!

@Cryotechnic Cryotechnic merged commit 258bd46 into main Dec 19, 2025
7 of 8 checks passed
@Cryotechnic Cryotechnic deleted the fix/bitmap-lazyload-doubledispose branch December 19, 2025 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Runtime Issue labeled for runtime, Hi3Helper.Core and other libraries used by Collapse Bug Something isn't working Priority: High Size: Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants