Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Garbage Collector Is Broken #71

Closed
Andy-Python-Programmer opened this issue Oct 11, 2020 · 3 comments
Closed

[BUG] Garbage Collector Is Broken #71

Andy-Python-Programmer opened this issue Oct 11, 2020 · 3 comments
Assignees
Labels
bug Something isn't working runtime severe

Comments

@Andy-Python-Programmer
Copy link
Contributor

Andy-Python-Programmer commented Oct 11, 2020

Describe the bug
In birb:ui when I move the mouse a bit fast or is off the screen and comes back again then I get this exception:

Unhandled exception:
Concurrent modification during iteration: Instance of 'ListQueue<ASTNode>'.
#0      ListQueue._checkModification (dart:collection/queue.dart:800:7)
#1      _ListQueueIterator.moveNext (dart:collection/queue.dart:910:12)
#2      collectAndSweepGarbage (package:Birb/runtime/runtime.dart:109:38)
#3      visitCompound (package:Birb/runtime/runtime.dart:948:3)

Full Logs:

PS C:\Users\user\Desktop\Andy\Projects\Birb\BirbLang> dart .\lib\birb.dart .\examples\ui.birb
lib/birb.dart: Warning: Interpreting this as package URI, 'package:Birb/birb.dart'.
1 : 26725049000
0 : 26725048952
0 : 26725048952
0 : 26725048952
0 : 26725048952
1 : 26725049000
0 : 26725048856
0 : 26725048856
0 : 26725048856
0 : 26725048856
0 : 26725048856
0 : 26725048856
0 : 26725048776
0 : 26725048776
Unhandled exception:
Concurrent modification during iteration: Instance of 'ListQueue<ASTNode>'.
#0      ListQueue._checkModification (dart:collection/queue.dart:800:7)
#1      _ListQueueIterator.moveNext (dart:collection/queue.dart:910:12)
#2      collectAndSweepGarbage (package:Birb/runtime/runtime.dart:109:38)
#3      visitCompound (package:Birb/runtime/runtime.dart:948:3)
<asynchronous suspension>
#4      visit (package:Birb/runtime/runtime.dart:282:20)
<asynchronous suspension>
#5      runtimeFunctionCall (package:Birb/runtime/runtime.dart:192:16)
<asynchronous suspension>
#6      runtimeFuncLookup (package:Birb/runtime/runtime.dart:834:18)
<asynchronous suspension>
#7      visitFuncCall (package:Birb/runtime/runtime.dart:905:36)
#8      mouseCallback (package:Birb/external/ui.dart:33:3)
#9      _FfiCallbackmouseCallback (dart:ffi)
#10     FfiTrampoline (dart:ffi)
#11     windowClass.<anonymous closure> (package:Birb/external/ui.dart:99:19)
#12     visitAttAccess (package:Birb/runtime/runtime.dart:1091:67)
<asynchronous suspension>
#13     visit (package:Birb/runtime/runtime.dart:323:20)
<asynchronous suspension>
#14     visitCompound (package:Birb/runtime/runtime.dart:932:35)
<asynchronous suspension>
#15     visit (package:Birb/runtime/runtime.dart:282:20)
<asynchronous suspension>
#16     visitWhile (package:Birb/runtime/runtime.dart:2120:27)
<asynchronous suspension>
#17     visit (package:Birb/runtime/runtime.dart:317:20)
#18     visitCompound (package:Birb/runtime/runtime.dart:932:35)
<asynchronous suspension>
#19     visit (package:Birb/runtime/runtime.dart:282:20)
#20     main (package:Birb/birb.dart:97:11)
#21     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#22     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)```
@Andy-Python-Programmer Andy-Python-Programmer added the bug Something isn't working label Oct 11, 2020
@Andy-Python-Programmer Andy-Python-Programmer changed the title [BUG] Garbage Collector [BUG] Garbage Collector Is Broken Oct 11, 2020
@Calamity210
Copy link
Owner

@Andy-Python-Programmer can u confirm that this issue still exists?

@Andy-Python-Programmer
Copy link
Contributor Author

Yeup it seems like its fixed @Calamity210 Closing this :)

@Andy-Python-Programmer
Copy link
Contributor Author

#70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working runtime severe
Projects
None yet
Development

No branches or pull requests

2 participants