I've been struggling to wrap my head around how I can debug why my Sidekiq processor is stuck.
I've read the following resources:
Dealing with Stuck Workers.
Debugging stuck Ruby processes
Problems and Troubleshooting · mperham/sidekiq Wiki
I attached output to all gdb traces.
https://gist.github.com/Overload119/7f75d28d78e683ff3096bd9058164c9c
I took all the lines that had C extensions
#0 0x00007fd71db8400c in pthread_cond_wait##GLIBC_2.3.2 () at /lib/x86_64-linux-gnu/libpthread.so.0
#159 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#160 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007fd7193323bc in std::condition_variable::wait(std::unique_lock<std::mutex>&) () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#2 0x00007fd713ebe5e9 in rocksdb::ThreadPoolImpl::Impl::BGThread(unsigned long) () at /usr/lib/librocksdb.so.5.17
#3 0x00007fd713ebe981 in rocksdb::ThreadPoolImpl::Impl::BGThreadWrapper(void*) () at /usr/lib/librocksdb.so.5.17
#4 0x00007fd719337b2f in () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#6 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#48 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#49 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#0 0x00007fd71d1aa916 in ppoll () at /lib/x86_64-linux-gnu/libc.so.6
#18 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#19 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#80 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#81 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#47 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#48 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#35 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#36 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#198 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#199 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#0 0x00007fd71d1aff59 in syscall () at /lib/x86_64-linux-gnu/libc.so.6
#7 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#0 0x00007fd71d1b57ef in epoll_wait () at /lib/x86_64-linux-gnu/libc.so.6
#9 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#10 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#11 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#12 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#37 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#38 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#8 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#9 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#0 0x00007fd71db843f9 in pthread_cond_timedwait##GLIBC_2.3.2 () at /lib/x86_64-linux-gnu/libpthread.so.0
#53 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#54 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#124 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#125 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#20 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#21 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
#40 0x00007fd71db7dfa3 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#41 0x00007fd71d1b54cf in clone () at /lib/x86_64-linux-gnu/libc.so.6
Here I think
#1 0x00007fd7193323bc in std::condition_variable::wait(std::unique_lock<std::mutex>&) () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#2 0x00007fd713ebe5e9 in rocksdb::ThreadPoolImpl::Impl::BGThread(unsigned long) () at /usr/lib/librocksdb.so.5.17
#3 0x00007fd713ebe981 in rocksdb::ThreadPoolImpl::Impl::BGThreadWrapper(void*) () at /usr/lib/librocksdb.so.5.17
looks suspicious but I'm not sure where to go from here.
Is there anyway I can confirm whether or not this is holding on to a lock and causing the Sidekiq job to get stuck?
You're using Sidekiq in development mode, where Rails only supports one job at a time. Your hung job is here:
2022-07-16T03:53:35.791Z pid=7924 tid=iok WARN: /Users/amirsharif/.rvm/gems/ruby-2.7.5/gems/concurrent-ruby-1.1.10/lib/concurrent-ruby/concurrent/promises.rb:775:in `sleep'
/Users/amirsharif/.rvm/gems/ruby-2.7.5/gems/concurrent-ruby-1.1.10/lib/concurrent-ruby/concurrent/promises.rb:775:in `wait'
/Users/amirsharif/.rvm/gems/ruby-2.7.5/gems/concurrent-ruby-1.1.10/lib/concurrent-ruby/concurrent/promises.rb:775:in `block in wait_until_resolved'
/Users/amirsharif/.rvm/gems/ruby-2.7.5/gems/concurrent-ruby-1.1.10/lib/concurrent-ruby/concurrent/promises.rb:771:in `synchronize'
/Users/amirsharif/.rvm/gems/ruby-2.7.5/gems/concurrent-ruby-1.1.10/lib/concurrent-ruby/concurrent/promises.rb:771:in `wait_until_resolved'
/Users/amirsharif/.rvm/gems/ruby-2.7.5/gems/concurrent-ruby-1.1.10/lib/concurrent-ruby/concurrent/promises.rb:1256:in `wait_until_resolved!'
/Users/amirsharif/.rvm/gems/ruby-2.7.5/gems/concurrent-ruby-1.1.10/lib/concurrent-ruby/concurrent/promises.rb:1471:in `value!'
/Users/amirsharif/.rvm/gems/ruby-2.7.5/gems/puppeteer-ruby-0.40.7/lib/puppeteer/concurrent_ruby_utils.rb:54:in `await'
/Users/amirsharif/.rvm/gems/ruby-2.7.5/gems/puppeteer-ruby-0.40.7/lib/puppeteer/connection.rb:129:in `send_message'
/Users/amirsharif/.rvm/gems/ruby-2.7.5/gems/puppeteer-ruby-0.40.7/lib/puppeteer/browser.rb:25:in `create'
/Users/amirsharif/.rvm/gems/ruby-2.7.5/gems/puppeteer-ruby-0.40.7/lib/puppeteer/launcher/chrome.rb:201:in `connect'
/Users/amirsharif/.rvm/gems/ruby-2.7.5/gems/puppeteer-ruby-0.40.7/lib/puppeteer/puppeteer.rb:113:in `connect'
/Users/amirsharif/.rvm/gems/ruby-2.7.5/gems/puppeteer-ruby-0.40.7/lib/puppeteer.rb:82:in `public_send'
/Users/amirsharif/.rvm/gems/ruby-2.7.5/gems/puppeteer-ruby-0.40.7/lib/puppeteer.rb:82:in `block (3 levels) in <module:Puppeteer>'
You need to use Sidekiq in production mode if you want to get true concurrency.
Related
I just generated 10000 files in the Flutter app project in VSC:
{placeholder0, placeholder1 ..., placeholder10000}
Each file contains simple widget returning next Placeholder, like Placeholder0 widget returns Placeholder1 widget and so on.. where Placeholder10000 returns just Text('test').
(What I also noticed VSC behaviour is getting strange once so much files is placed inside the project, like Dart Analyzer is super lagging. I could not fint any info about number of files limitations within the project). Actually is it possible to run the project with such of big number of files inside it?
Once I put Placeholder0 widget in the body of my HomePage try to run the app on simulator (iOS Simulator) i got following StackOverFlow error:
The relevant error-causing widget was
Placeholder453
lib/placeholders/placeholder452.dart:9
When the exception was thrown, this was the stack
#0 _HashBase._isDeleted (dart:collection-patch/compact_hash.dart:198:3)
#1 _LinkedHashMapMixin._init (dart:collection-patch/compact_hash.dart:429:24)
#2 _LinkedHashMapMixin._rehash (dart:collection-patch/compact_hash.dart:399:7)
#3 _LinkedHashMapMixin._insert (dart:collection-patch/compact_hash.dart:456:7)
#4 _LinkedHashMapMixin._set (dart:collection-patch/compact_hash.dart:511:7)
#5 _LinkedHashMapMixin.[]= (dart:collection-patch/compact_hash.dart:499:5)
#6 MapMixin.addAll.<anonymous closure> (dart:collection/maps.dart:129:11)
#7 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:617:13)
#8 MapMixin.addAll (dart:collection/maps.dart:128:11)
#9 _InternalLinkedHashMap.addAll (dart:collection-patch/compact_hash.dart:301:11)
#10 DiagnosticsNode.toJsonMap.<anonymous closure>
package:flutter/…/foundation/diagnostics.dart:1646
#11 DiagnosticsNode.toJsonMap
package:flutter/…/foundation/diagnostics.dart:1661
#12 DiagnosticsProperty.toJsonMap
package:flutter/…/foundation/diagnostics.dart:2666
#13 DiagnosticsNode.toJsonList.<anonymous closure>
package:flutter/…/foundation/diagnostics.dart:1686
#14 MappedListIterable.elementAt (dart:_internal/iterable.dart:413:31)
#15 ListIterator.moveNext (dart:_internal/iterable.dart:342:26)
#16 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189:27)
#17 new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#18 new List.of (dart:core-patch/array_patch.dart:51:28)
#19 ListIterable.toList (dart:_internal/iterable.dart:213:44)
#20 DiagnosticsNode.toJsonList
package:flutter/…/foundation/diagnostics.dart:1687
#21 DiagnosticsNode.toJsonMap.<anonymous closure>
package:flutter/…/foundation/diagnostics.dart:1648
#22 DiagnosticsNode.toJsonMap
package:flutter/…/foundation/diagnostics.dart:1661
#23 DiagnosticsNode.toJsonList.<anonymous closure>
package:flutter/…/foundation/diagnostics.dart:1686
#24 MappedListIterable.elementAt (dart:_internal/iterable.dart:413:31)
#25 ListIterator.moveNext (dart:_internal/iterable.dart:342:26)
#26 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189:27)
#27 new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#28 new List.of (dart:core-patch/array_patch.dart:51:28)
#29 ListIterable.toList (dart:_internal/iterable.dart:213:44)
#30 DiagnosticsNode.toJsonList
package:flutter/…/foundation/diagnostics.dart:1687
#31 DiagnosticsNode.toJsonMap.<anonymous closure>
package:flutter/…/foundation/diagnostics.dart:1648
#32 DiagnosticsNode.toJsonMap
package:flutter/…/foundation/diagnostics.dart:1661
#33 WidgetInspectorService._nodeToJson
package:flutter/…/widgets/widget_inspector.dart:1606
#34 WidgetInspectorService._reportStructuredError
package:flutter/…/widgets/widget_inspector.dart:937
#35 FlutterError.reportError
package:flutter/…/foundation/assertions.dart:1184
#36 _debugReportException
package:flutter/…/widgets/framework.dart:6493
#37 ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4908
#38 Element.rebuild
package:flutter/…/widgets/framework.dart:4604
#39 ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:4859
#40 ComponentElement.mount
package:flutter/…/widgets/framework.dart:4853
#41 Element.inflateWidget
package:flutter/…/widgets/framework.dart:3863
#42 Element.updateChild
package:flutter/…/widgets/framework.dart:3592
2
...
#4116 Element.rebuild
package:flutter/…/widgets/framework.dart:4604
#4117 ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:4859
#4118 StatefulElement._firstBuild
package:flutter/…/widgets/framework.dart:5041
#4119 ComponentElement.mount
package:flutter/…/widgets/framework.dart:4853
... Normal element mounting (27 frames)
Good afternoon,
I am following the tutorial on Windows 7 for an Ipad on IOS 9.3.5 :
https://medium.com/flutter-community/developing-and-debugging-flutter-apps-for-ios-without-a-mac-8d362a8ec667
and I'm stuck at rebuilding the Flutter Tool. (Last part of the tutorial)
I downloaded (from the link of the tutorial) and copied in C:\src\flutter\bin the libimobiledevice, ideviceinstaller and which binaries.
Then I ran the git apply ios.diff which gives me multiple errors, sometimes it's just about mac.dart, and sometimes it's more like this :
error: patch failed: packages/flutter_tools/lib/src/ios/devices.dart:103
error: packages/flutter_tools/lib/src/ios/devices.dart: patch does not apply
error: patch failed: packages/flutter_tools/lib/src/ios/ios_workflow.dart:26
error: packages/flutter_tools/lib/src/ios/ios_workflow.dart: patch does not apply
error: patch failed: packages/flutter_tools/lib/src/ios/mac.dart:124
error: packages/flutter_tools/lib/src/ios/mac.dart: patch does not apply
Then I found this command in here : git: patch does not apply
git apply --reject --whitespace=fix mychanges.patch
What I got was : (don't mind the content of the Future<String>, it's because I've already changed it to what it was supposed to be)
Checking patch packages/flutter_tools/lib/src/ios/mac.dart...
error: while searching for:
Future<String> getAvailableDeviceIDs() async {
try {
final ProcessResult result = await processManager.run(<String>['idevice_id', '-l']);
if (result.exitCode != 0)
throw ToolExit('idevice_id returned an error:\n${result.stderr}');
return result.stdout;
} on ProcessException {
throw ToolExit('Failed to invoke idevice_id. Run flutter doctor.');
error: patch failed: packages/flutter_tools/lib/src/ios/mac.dart:124
Applying patch packages/flutter_tools/lib/src/ios/devices.dart with 1 reject...
Rejected hunk #1.
Applying patch packages/flutter_tools/lib/src/ios/ios_workflow.dart with 1 reject...
Rejected hunk #1.
Applying patch packages/flutter_tools/lib/src/ios/mac.dart with 1 reject...
Rejected hunk #1.
At this point I manually pasted the right content in the mac.dart file (as you might have seen in the error above), but I am still not sure everything went well because of the :
error: patch failed: packages/flutter_tools/lib/src/ios/mac.dart:124
Anyway, I kept going and ran the command to rebuild the flutter tool:
bin\cache\dart-sdk\bin\dart --snapshot=.\bin\cache\flutter_tools.snapshot --packages=.\packages\flutter_tools\.packages .\packages\flutter_tools\bin\flutter_tools.dart
Finally, the output is this :
C:\src\flutter>bin\cache\dart-sdk\bin\dart --snapshot=.\bin\cache\flutter_tools.snapshot --packages=.\packages\flutter_tools\.packages .\
packages\flutter_tools\bin\flutter_tools.dart
packages/flutter_tools/lib/src/ios/ios_workflow.dart:20:30: Error: Getter not found: 'iMobileDevice'.
bool get canListDevices => iMobileDevice.isInstalled || (xcode.isInstalledAndMeetsVersionCheck && xcode.isSimctlInstalled);
^^^^^^^^^^^^^
packages/flutter_tools/lib/src/ios/ios_workflow.dart:20:30: Error: The getter 'iMobileDevice' isn't defined for the class 'IOSWorkflow'.
- 'IOSWorkflow' is from 'package:flutter_tools/src/ios/ios_workflow.dart' ('packages/flutter_tools/lib/src/ios/ios_workflow.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'iMobileDevice'.
bool get canListDevices => iMobileDevice.isInstalled || (xcode.isInstalledAndMeetsVersionCheck && xcode.isSimctlInstalled);
^^^^^^^^^^^^^
Is this "iMobileDevice" related to this libimobiledevice ? I can run any of the ideviceinstaller.exe or idevice_id.exe, so I guess I installed it correctly.
I am missing something important to correct this error ?
Thanks a lot for your time :)
in the "ios_workflow.dart" file you have to write this where the other 'import...' rows are:
import 'mac.dart';
For me, it's solved the problem.
Thanks a lot ! Importing 'mac.dart' allowed me to apply everything correctly.
I then ran flutter attach, and here is what I get : (I guess only the first lines are useful)
D:\Beerproject>flutter attach
Sending crash report to Google.
Crash report sent (report ID: 5d71ca5958062efd)
Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Crash report sent (report ID: 5024a42feb468e2b)
Oops; flutter has exited unexpectedly.
Unhandled exception:
Unsupported operation: Control of iOS devices or simulators only supported on Mac OS.
#0 IOSDevice.getAttachedDevices (package:flutter_tools/src/ios/devices.dart:172:7)
<asynchronous suspension>
#1 IOSDevices.pollingGetDevices (package:flutter_tools/src/ios/devices.dart:117:57)
#2 PollingDeviceDiscovery.devices (package:flutter_tools/src/device.dart:270:52)
<asynchronous suspension>
#3 DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:136:46)
<asynchronous suspension>
#4 DeviceValidator.validate (package:flutter_tools/src/doctor.dart:760:54)
<asynchronous suspension>
#5 Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:140:52)
#6 Doctor.diagnose (package:flutter_tools/src/doctor.dart:211:41)
#7 _AsyncAwaitCompleter.start (dart:async-patch/async_patch.dart:43:6)
#8 Doctor.diagnose (package:flutter_tools/src/doctor.dart:201:24)
#9 _doctorText.<anonymous closure> (package:flutter_tools/runner.dart:202:26)
#10 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:29)
#11 _AsyncAwaitCompleter.start (dart:async-patch/async_patch.dart:43:6)
#12 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:7)
#13 _rootRun (dart:async/zone.dart:1124:13)
#14 _CustomZone.run (dart:async/zone.dart:1021:19)
#15 _runZoned (dart:async/zone.dart:1516:10)
#16 runZoned (dart:async/zone.dart:1463:12)
#17 AppContext.run (package:flutter_tools/src/base/context.dart:153:18)
#18 _AsyncAwaitCompleter.start (dart:async-patch/async_patch.dart:43:6)
#19 AppContext.run (package:flutter_tools/src/base/context.dart:140:19)
#20 _doctorText (package:flutter_tools/runner.dart:201:19)
#21 _AsyncAwaitCompleter.start (dart:async-patch/async_patch.dart:43:6)
#22 _doctorText (package:flutter_tools/runner.dart:197:27)
#23 _createLocalCrashReport (package:flutter_tools/runner.dart:179:32)
#24 _AsyncAwaitCompleter.start (dart:async-patch/async_patch.dart:43:6)
#25 _createLocalCrashReport (package:flutter_tools/runner.dart:164:37)
#26 _handleToolError (package:flutter_tools/runner.dart:134:33)
#27 _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:71:64)
#28 _rootRunUnary (dart:async/zone.dart:1132:38)
#29 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#30 _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#31 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#32 Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#33 Future._completeWithValue (dart:async/future_impl.dart:522:5)
#34 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:30:15)
#35 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:288:13)
#36 CrashReportSender.sendReport (package:flutter_tools/src/reporting/crash_reporting.dart)
#37 _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:71:64)
#38 _rootRunUnary (dart:async/zone.dart:1132:38)
#39 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#40 _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#41 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#42 Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#43 Future._complete (dart:async/future_impl.dart:512:7)
#44 Stream.fold.<anonymous closure> (dart:async/stream.dart:801:18)
#45 _rootRun (dart:async/zone.dart:1120:38)
#46 _CustomZone.run (dart:async/zone.dart:1021:19)
#47 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#48 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:389:13)
#49 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:399:15)
#50 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:283:7)
#51 _SinkTransformerStreamSubscription._close (dart:async/stream_transformers.dart:96:11)
#52 _EventSinkWrapper.close (dart:async/stream_transformers.dart:23:11)
#53 _StringAdapterSink.close (dart:convert/string_conversion.dart:249:11)
#54 _Utf8ConversionSink.close (dart:convert/string_conversion.dart:300:20)
#55 _ConverterStreamEventSink.close (dart:convert/chunked_conversion.dart:80:18)
#56 _SinkTransformerStreamSubscription._handleDone (dart:async/stream_transformers.dart:141:24)
#57 _rootRun (dart:async/zone.dart:1120:38)
#58 _CustomZone.run (dart:async/zone.dart:1021:19)
#59 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#60 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:389:13)
#61 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:399:15)
#62 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:283:7)
#63 _ForwardingStream._handleDone (dart:async/stream_pipe.dart:106:10)
#64 _ForwardingStreamSubscription._handleDone (dart:async/stream_pipe.dart:172:13)
#65 _rootRun (dart:async/zone.dart:1120:38)
#66 _CustomZone.run (dart:async/zone.dart:1021:19)
#67 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#68 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:389:13)
#69 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:399:15)
#70 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:283:7)
#71 _SinkTransformerStreamSubscription._close (dart:async/stream_transformers.dart:96:11)
#72 _EventSinkWrapper.close (dart:async/stream_transformers.dart:23:11)
#73 _Uint8ListConversionSink.close (dart:_http/http_impl.dart:577:13)
#74 _ConverterStreamEventSink.close (dart:convert/chunked_conversion.dart:80:18)
#75 _SinkTransformerStreamSubscription._handleDone (dart:async/stream_transformers.dart:141:24)
#76 _rootRun (dart:async/zone.dart:1120:38)
#77 _CustomZone.run (dart:async/zone.dart:1021:19)
#78 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#79 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:389:13)
#80 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:399:15)
#81 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:283:7)
#82 _SinkTransformerStreamSubscription._close (dart:async/stream_transformers.dart:96:11)
#83 _EventSinkWrapper.close (dart:async/stream_transformers.dart:23:11)
#84 _ByteAdapterSink.close (dart:convert/byte_conversion.dart:62:11)
#85 _FilterSink.close (dart:io/data_transformer.dart:637:11)
#86 _ConverterStreamEventSink.close (dart:convert/chunked_conversion.dart:80:18)
#87 _SinkTransformerStreamSubscription._handleDone (dart:async/stream_transformers.dart:141:24)
#88 _rootRun (dart:async/zone.dart:1120:38)
#89 _CustomZone.run (dart:async/zone.dart:1021:19)
#90 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#91 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:389:13)
#92 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:399:15)
#93 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:283:7)
#94 _ForwardingStream._handleDone (dart:async/stream_pipe.dart:106:10)
#95 _ForwardingStreamSubscription._handleDone (dart:async/stream_pipe.dart:172:13)
#96 _rootRun (dart:async/zone.dart:1120:38)
#97 _CustomZone.run (dart:async/zone.dart:1021:19)
#98 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#99 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:389:13)
#100 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:399:15)
#101 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:283:7)
#102 _SyncStreamControllerDispatch._sendDone (dart:async/stream_controller.dart:772:19)
#103 _StreamController._closeUnchecked (dart:async/stream_controller.dart:629:7)
#104 _StreamController.close (dart:async/stream_controller.dart:622:5)
#105 _HttpParser._closeIncoming (dart:_http/http_parser.dart:1037:23)
#106 _HttpParser._doParse (dart:_http/http_parser.dart:752:11)
#107 _HttpParser._parse (dart:_http/http_parser.dart:318:7)
#108 _HttpParser._onData (dart:_http/http_parser.dart:810:5)
#109 _rootRunUnary (dart:async/zone.dart:1132:38)
#110 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#111 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#112 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#113 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#114 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:764:19)
#115 _StreamController._add (dart:async/stream_controller.dart:640:7)
#116 _StreamController.add (dart:async/stream_controller.dart:586:5)
#117 _Socket._onData (dart:io-patch/socket_patch.dart:1791:41)
#118 _rootRunUnary (dart:async/zone.dart:1132:38)
#119 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#120 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#121 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#122 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#123 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:764:19)
#124 _StreamController._add (dart:async/stream_controller.dart:640:7)
#125 _StreamController.add (dart:async/stream_controller.dart:586:5)
#126 _RawSecureSocket._sendReadEvent (dart:io/secure_socket.dart:1004:19)
#127 _rootRun (dart:async/zone.dart:1120:38)
#128 _CustomZone.run (dart:async/zone.dart:1021:19)
#129 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#130 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#131 _rootRun (dart:async/zone.dart:1124:13)
#132 _CustomZone.run (dart:async/zone.dart:1021:19)
#133 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#134 Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:21:15)
#135 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)
#136 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
#137 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
Did anyone ever got this error ?
EDIT : following this tutorial step by step didn't solve the problem ... (https://www.youtube.com/watch?v=jkWPQHLOAEw)
SOLVED : I finally ended up using the Mac of a friend. Maybe could work using a virtual machine as well.
I'm running my application in debug mode, and when i try to hotrestart or hotreload this error shows and the application finishes, this happened after I did flutter upgrade. I don't know where this error is my code, my application worked normally in release mode
NoSuchMethodError: The method 'isAfter' was called on null.
Receiver: null
Tried calling: isAfter(Instance of 'DateTime')
#0 Object.noSuchMethod (dart:core/runtime/lib/object_patch.dart:50:5)
#1 _ManifestAssetBundle.needsBuild (package:flutter_tools/src/asset.dart:91:41)
#2 HotRunner._updateDevFS (package:flutter_tools/src/run_hot.dart:311:44)
<asynchronous suspension>
#3 HotRunner._reloadSources (package:flutter_tools/src/run_hot.dart:622:47)
<asynchronous suspension>
#4 HotRunner.restart (package:flutter_tools/src/run_hot.dart:566:24)
<asynchronous suspension>
#5 HotRunner.handleTerminalCommand (package:flutter_tools/src/run_hot.dart:281:24)
<asynchronous suspension>
#6 ResidentRunner.processTerminalInput (package:flutter_tools/src/resident_runner.dart:890:15)
<asynchronous suspension>
#7 _rootRunUnary (dart:async/zone.dart:1132:38)
#8 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#9 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#10 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#11 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#12 _SyncBroadcastStreamController._sendData (dart:async/broadcast_stream_controller.dart:375:20)
#13 _BroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:250:5)
#14 _AsBroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:474:11)
#15 _rootRunUnary (dart:async/zone.dart:1132:38)
#16 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#17 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#18 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#19 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#20 _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68:11)
#21 _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#22 _StringAdapterSink.add (dart:convert/string_conversion.dart:236:11)
#23 _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:241:7)
#24 _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:312:20)
#25 _ErrorHandlingAsciiDecoderSink.addSlice (dart:convert/ascii.dart:252:17)
#26 _ErrorHandlingAsciiDecoderSink.add (dart:convert/ascii.dart:238:5)
#27 _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:72:18)
#28 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)
#29 _rootRunUnary (dart:async/zone.dart:1132:38)
#30 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#31 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#32 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#33 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#34 _SyncStreamController._sendData (dart:async/stream_controller.dart:764:19)
#35 _StreamController._add (dart:async/stream_controller.dart:640:7)
#36 _StreamController.add (dart:async/stream_controller.dart:586:5)
#37 _Socket._onData (dart:io/runtime/bin/socket_patch.dart:1774:41)
#38 _rootRunUnary (dart:async/zone.dart:1136:13)
#39 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#40 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#41 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#42 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#43 _SyncStreamController._sendData (dart:async/stream_controller.dart:764:19)
#44 _StreamController._add (dart:async/stream_controller.dart:640:7)
#45 _StreamController.add (dart:async/stream_controller.dart:586:5)
#46 new _RawSocket.<anonymous closure> (dart:io/runtime/bin/socket_patch.dart:1323:33)
#47 _NativeSocket.issueReadEvent.issue (dart:io/runtime/bin/socket_patch.dart:844:14)
#48 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#49 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#50 _runPendingImmediateCallback (dart:isolate/runtime/lib/isolate_patch.dart:115:13)
#51 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/lib/isolate_patch.dart:172:5)
I just integrated React Native into an existing iOS app. When I go to the screen where it initializes React Native, if the packager isn't running, I get the usual red screen saying "No bundle URL present". If I hit the "Reload JS" button at the bottom (or press Cmd+R) twice, I get the following crash:
JSCExecutor.cpp:158] Check failed: *m_isDestroyed JSCExecutor::destroy() must be called before its destructor!
I'm initializing RN using code like this, creating an RCTRootView.
If the packager is running everything works fine. Cmd+R works fine to reload the JS. If I make a syntax error in the JS and reload to get the red error screen, and then I reload it a second time, I get the same crash.
Not sure if it's related, but I also see this message in my logs before the crash message:
WARNING: Logging before InitGoogleLogging() is written to STDERR
The backtrace for the crash is as follows:
#0 0x000000011b7e0d42 in __pthread_kill ()
#1 0x000000011b818457 in pthread_kill ()
#2 0x000000011b57288f in abort ()
#3 0x0000000116ce4079 in google::logging_fail() at .../node_modules/react-native/third-party/glog-0.3.4/src/logging.cc:1464
#4 0x0000000116ce406a in google::LogMessage::Fail() at .../node_modules/react-native/third-party/glog-0.3.4/src/logging.cc:1478
#5 0x0000000116ce1b6a in google::LogMessage::SendToLog() at .../node_modules/react-native/third-party/glog-0.3.4/src/logging.cc:1432
#6 0x0000000116ce2abf in google::LogMessage::Flush() at .../node_modules/react-native/third-party/glog-0.3.4/src/logging.cc:1301
#7 0x0000000116ceba78 in google::LogMessageFatal::~LogMessageFatal() at .../node_modules/react-native/third-party/glog-0.3.4/src/logging.cc:2013
#8 0x0000000116ce45b5 in google::LogMessageFatal::~LogMessageFatal() at .../node_modules/react-native/third-party/glog-0.3.4/src/logging.cc:2012
#9 0x0000000116d2ee96 in facebook::react::JSCExecutor::~JSCExecutor() at .../node_modules/react-native/ReactCommon/cxxreact/JSCExecutor.cpp:158
#10 0x0000000116d2f245 in facebook::react::JSCExecutor::~JSCExecutor() at .../node_modules/react-native/ReactCommon/cxxreact/JSCExecutor.cpp:157
#11 0x0000000116d2f269 in facebook::react::JSCExecutor::~JSCExecutor() at .../node_modules/react-native/ReactCommon/cxxreact/JSCExecutor.cpp:157
#12 0x0000000116d4526d in std::__1::default_delete<facebook::react::JSExecutor>::operator()(facebook::react::JSExecutor*) const [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2537
#13 0x0000000116d45245 in std::__1::unique_ptr<facebook::react::JSExecutor, std::__1::default_delete<facebook::react::JSExecutor> >::reset(facebook::react::JSExecutor*) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2736
#14 0x0000000116d451be in std::__1::unique_ptr<facebook::react::JSExecutor, std::__1::default_delete<facebook::react::JSExecutor> >::~unique_ptr() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2704
#15 0x0000000116d451a5 in std::__1::unique_ptr<facebook::react::JSExecutor, std::__1::default_delete<facebook::react::JSExecutor> >::~unique_ptr() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2704
#16 0x0000000116d45197 in facebook::react::NativeToJsBridge::~NativeToJsBridge() at .../node_modules/react-native/ReactCommon/cxxreact/NativeToJsBridge.cpp:91
#17 0x0000000116d453c5 in facebook::react::NativeToJsBridge::~NativeToJsBridge() at .../node_modules/react-native/ReactCommon/cxxreact/NativeToJsBridge.cpp:88
#18 0x0000000116d453e9 in facebook::react::NativeToJsBridge::~NativeToJsBridge() at .../node_modules/react-native/ReactCommon/cxxreact/NativeToJsBridge.cpp:88
#19 0x0000000116d3da8e in std::__1::default_delete<facebook::react::NativeToJsBridge>::operator()(facebook::react::NativeToJsBridge*) const [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2537
#20 0x0000000116d3da69 in std::__1::unique_ptr<facebook::react::NativeToJsBridge, std::__1::default_delete<facebook::react::NativeToJsBridge> >::reset(facebook::react::NativeToJsBridge*) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2736
#21 0x0000000116d3da06 in std::__1::unique_ptr<facebook::react::NativeToJsBridge, std::__1::default_delete<facebook::react::NativeToJsBridge> >::~unique_ptr() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2704
#22 0x0000000116d3d9f6 in std::__1::unique_ptr<facebook::react::NativeToJsBridge, std::__1::default_delete<facebook::react::NativeToJsBridge> >::~unique_ptr() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2704
#23 0x0000000116d3d9ee in facebook::react::Instance::~Instance() at .../node_modules/react-native/ReactCommon/cxxreact/Instance.cpp:31
#24 0x0000000116d3dad5 in facebook::react::Instance::~Instance() at .../node_modules/react-native/ReactCommon/cxxreact/Instance.cpp:27
#25 0x0000000116b92f21 in std::__1::default_delete<facebook::react::Instance>::operator()(facebook::react::Instance*) const [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2537
#26 0x0000000116b92efc in std::__1::__shared_ptr_pointer<facebook::react::Instance*, std::__1::default_delete<facebook::react::Instance>, std::__1::allocator<facebook::react::Instance> >::__on_zero_shared() at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3780
#27 0x000000011777b43e in std::__1::__shared_weak_count::__release_shared() ()
#28 0x0000000116b9a86c in std::__1::shared_ptr<facebook::react::Instance>::~shared_ptr() at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4605
#29 0x0000000116b8b335 in std::__1::shared_ptr<facebook::react::Instance>::~shared_ptr() at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4603
#30 0x0000000116b8b27a in ::-[RCTCxxBridge .cxx_destruct]() at .../node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm:131
#31 0x000000011729d9bc in object_cxxDestructFromClass(objc_object*, objc_class*) ()
#32 0x00000001172a9d34 in objc_destructInstance ()
#33 0x00000001172a9d66 in object_dispose ()
#34 0x0000000116c48b8e in -[RCTBridge dealloc] at .../node_modules/react-native/React/Base/RCTBridge.m:207
#35 0x00000001172b3b8e in objc_object::sidetable_release(bool) ()
#36 0x00000001172b42fa in (anonymous namespace)::AutoreleasePoolPage::pop(void*) ()
#37 0x00000001185e5ef6 in _CFAutoreleasePoolPop ()
#38 0x0000000118621aec in __CFRunLoopRun ()
#39 0x0000000118621016 in CFRunLoopRunSpecific ()
#40 0x000000011d46ea24 in GSEventRunModal ()
#41 0x000000011303b0d4 in UIApplicationMain ()
#42 0x0000000110d78800 in main at .../main.m:24
#43 0x000000011b4ca65d in start ()
Xcode: 8.3.2
Simulator: iPhone 7 - iOS 10.3
React Native: 0.47.1
I am also facing this issue, seems like it is an open issue:
https://github.com/facebook/react-native/issues/14288
Yesterday I was testing on a different network and it did work.
I wanted to know if anyone is having trouble getting Cmd-r to launch their app?
It does bring up chromium, but I must then manually type localhost:3030 and then navigate to my actual app. Furthermore even after navigating to the app, the server connection eventually times out with
java.net.ConnectException: Connection refused
I am on a OS X 10.7.5, Dart Editor version 0.4.2_r20259. Thank you.
4/25/2013: Just to add details about what does not work, here is the error I get when I attempt to compile with the pre-release dartEditor mentioned by Devon Carew:
--- Mar 25, 2013 11:13:59 AM build.dart --machine --changed=web/quizry3.html ---
file:/Users/stephen/silly2/quizry-client/build.dart
build.dart returned error code 255
Uncaught Error: Class '_File' has no instance method 'open' with matching arguments.
NoSuchMethodError: incorrect number of arguments passed to method named 'open'
Receiver: Instance of '_File#0x1da10ec4'
Tried calling: open(Instance of 'FileMode')
Found: open(mode)
Stack Trace:
#0 Object.noSuchMethod (dart:core-patch:1884:25)
#1 ConsoleFileSystem.writeString (package:web_ui/src/file_system/console.dart:22:43)
#2 writeFile (package:web_ui/dwc.dart:104:27)
#3 emitFiles.<anonymous closure> (package:web_ui/dwc.dart:92:35)
#4 List.forEach (dart:core-patch:1219:8)
#5 emitFiles (package:web_ui/dwc.dart:92:18)
#6 run.<anonymous closure>.<anonymous closure> (package:web_ui/dwc.dart:86:29)
#7 _ThenFuture._sendValue (dart:async:463:24)
#8 _FutureImpl._setValue (dart:async:361:26)
#9 _FutureImpl._chain (dart:async:418:23)
#10 _FutureImpl._setOrChainValue (dart:async:429:27)
#11 _ThenFuture._sendValue (dart:async:473:21)
#12 _FutureImpl._setValue (dart:async:361:26)
#13 _FutureImpl._setOrChainValue (dart:async:437:16)
#14 _ThenFuture._sendValue (dart:async:473:21)
#15 _FutureImpl._setValue (dart:async:361:26)
#16 _FutureImpl._setOrChainValue (dart:async:437:16)
#17 _ThenFuture._sendValue (dart:async:473:21)
#18 _FutureImpl._setValue (dart:async:361:26)
#19 _CompleterImpl.complete (dart:async:190:21)
#20 FutureGroup.add.<anonymous closure> (package:web_ui/src/utils.dart:139:28)
#21 _ThenFuture._sendValue (dart:async:463:24)
#22 _FutureImpl._setValue (dart:async:361:26)
#23 _FutureImpl._setOrChainValue (dart:async:437:16)
#24 _ThenFuture._sendValue (dart:async:473:21)
#25 _FutureImpl._setValue (dart:async:361:26)
#26 _CatchErrorFuture._sendValue (dart:async:485:14)
#27 _FutureImpl._setValue (dart:async:361:26)
#28 _FutureImpl._setOrChainValue (dart:async:437:16)
#29 _ThenFuture._sendValue (dart:async:473:21)
#30 _FutureImpl._setValue (dart:async:361:26)
#31 _FutureImpl._setOrChainValue (dart:async:437:16)
#32 _ThenFuture._sendValue (dart:async:473:21)
#33 _FutureImpl._setValue (dart:async:361:26)
#34 _FutureListenerWrapper._sendValue (dart:async:221:21)
#35 _FutureImpl._setValue (dart:async:361:26)
#36 _FutureListenerWrapper._sendValue (dart:async:221:21)
#37 _FutureImpl._setValue (dart:async:361:26)
#38 _FutureImpl._setOrChainValue (dart:async:437:16)
#39 _ThenFuture._sendValue (dart:async:473:21)
#40 _FutureImpl._setValue (dart:async:361:26)
#41 _FutureListenerWrapper._sendValue (dart:async:221:21)
#42 _FutureImpl._setValue (dart:async:361:26)
#43 _FutureImpl._setOrChainValue (dart:async:437:16)
#44 _ThenFuture._sendValue (dart:async:473:21)
#45 _FutureImpl._setValue (dart:async:361:26)
#46 _CompleterImpl.complete (dart:async:190:21)
#47 _SendPortImpl.call.<anonymous closure> (dart:isolate-patch:106:27)
#48 _ReceivePortImpl._handleMessage (dart:isolate-patch:81:92)
Unhandled exception:
Class '_File' has no instance method 'open' with matching arguments.
NoSuchMethodError: incorrect number of arguments passed to method named 'open'
Receiver: Instance of '_File#0x1da10ec4'
Tried calling: open(Instance of 'FileMode')
Found: open(mode)
#0 _FutureImpl._scheduleUnhandledError.<anonymous closure> (dart:async:391:9)
#1 Timer.run.<anonymous closure> (dart:async:2362:21)
#2 Timer.run.<anonymous closure> (dart:async:2370:13)
#3 Timer.Timer.<anonymous closure> (dart:async-patch:15:15)
#4 _Timer._createTimerHandler._handleTimeout (dart:io:6385:28)
#5 _Timer._createTimerHandler._handleTimeout (dart:io:6393:7)
#6 _Timer._createTimerHandler.<anonymous closure> (dart:io:6401:23)
#7 _ReceivePortImpl._handleMessage (dart:isolate-patch:81:92)
This pre-release version may fix the connection refused issue for you:
http://gsdview.appspot.com/dart-editor-archive-trunk/20424/