Skip to content

NetworkInterface.list() crashes #205

Closed

Description

@FlutterIssues

Issue by kyorohiro
Saturday Oct 17, 2015 at 02:15 GMT
Originally opened as https://github.com/flutter/engine/issues/1655


Following code cause to crash application

[source]
import 'dart:io';
import 'dart:convert';
import 'dart:async';

main() async {
List interfaces = await NetworkInterface.list(
includeLoopback: true, includeLinkLocal: true);
}

[project]
https://github.com/kyorohiro/hello_skyengine/tree/master/dartio_networkinterface

Activity

  1. FlutterIssues commented on Nov 9, 2015

    @FlutterIssues
    Author

    Comment by jason-simmons
    Friday Oct 23, 2015 at 22:14 GMT


    This API is not implemented in Dart for Android. See Socket::ListInterfaces in dart/runtime/bin/socket_android.cc.

    Socket::ListInterfaces is also not setting the OSError. CObject::NewOSError then consumes the null OSError, resulting in a segfault.

  2. modified the milestone: on Dec 16, 2015
  3. sethladd commented on Apr 25, 2016

    @sethladd
    Contributor

    Is there an equivalent issue open in the Dart SDK?

  4. abarth commented on Apr 25, 2016

    @abarth
    Contributor

    There is now: dart-lang/sdk#26329

  5. sethladd commented on May 3, 2016

    @sethladd
    Contributor

    #3443 might also catch issues like this.

  6. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Sep 20, 2016
  7. sethladd commented on Sep 20, 2016

    @sethladd
    Contributor

    Curious if we can close this? The Dart SDK issue is still open, but we might be able to close that, too.

  8. sethladd commented on Sep 20, 2016

    @sethladd
    Contributor

    "should get a dart exception if you try to use it where it's not supported"

    So, we're going to close, as there is no more crash.

  9. github-actions commented on Aug 17, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  10. locked as resolved and limited conversation to collaborators on Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consoleplatform-androidAndroid applications specificallywaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions