Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Android GC.WaitForPendingFinalizers() in Debug mode causes freeze

$
0
0

@GarlicDipping wrote:

Hi, during testing my monogame test project, I found out that when I run

GC.Collect();
GC.WaitForPendingFinalizers();

My app freezes.

The strange thing is, if I build & run my app in Debug mode(with Samsung Galaxy S6) it freezes, but if I build & run my app in Release mode, it's OK.

Here's log just before the app freezes :

07-03 05:02:32.123 I/art     (23172): Starting a blocking GC Explicit
07-03 05:02:32.140 I/art     (23172): Explicit concurrent mark sweep GC freed 876(45KB) AllocSpace objects, 4(336KB) LOS objects, 33% free, 32MB/48MB, paused 154us total 16.590ms
07-03 05:02:32.140 D/Mono    (23172): GC_TAR_BRIDGE bridges 19 objects 21 opaque 0 colors 19 colors-bridged 19 colors-visible 19 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.02ms tarjan 0.02ms scc-setup 0.02ms gather-xref 0.00ms xref-setup 0.00ms cleanup 0.02ms
07-03 05:02:32.140 D/Mono    (23172): GC_BRIDGE: Complete, was running for 17.15ms
07-03 05:02:32.140 D/Mono    (23172): GC_MAJOR: (user request) time 3.40ms, stw 3.82ms los size: 2052K in use: 1091K
07-03 05:02:32.140 D/Mono    (23172): GC_MAJOR_SWEEP: major size: 1184K in use: 309K
07-03 05:02:55.239 D/Mono    (23172): [0xbdf8c920] worker finishing
Thread finished: <Thread Pool> #7
InspectorDebugSession(7): HandleTargetEvent: ThreadStopped
The thread 'Unknown' (0x7) has exited with code 0 (0x0).

What am I doing wrong here?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles