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

Stream of "buffer was empty" exceptions in output #22

Closed
bramvbilsen opened this issue Apr 9, 2018 · 2 comments
Closed

Stream of "buffer was empty" exceptions in output #22

bramvbilsen opened this issue Apr 9, 2018 · 2 comments

Comments

@bramvbilsen
Copy link

bramvbilsen commented Apr 9, 2018

When displaying a map, I'm getting tons of errors in the output saying that the buffer was empty. The app runs fine though.
My code:

class _MyMapTestState extends State<MyMapTest> {
  @override
  Widget build(BuildContext context) {
    return new FlutterMap(
      options: new MapOptions(
        center: new LatLng(51.5, -0.09),
        zoom: 13.0,
      ),
      layers: [
        new TileLayerOptions(
          urlTemplate: "https://api.tiles.mapbox.com/v4/"
              "{id}/{z}/{x}/{y}@2x.png?access_token=$token",
          additionalOptions: {
            'accessToken': '<$token>',
            'id': 'mapbox.streets',
          },
        ),
        new MarkerLayerOptions(
          markers: [
            new Marker(
              width: 80.0,
              height: 80.0,
              point: new LatLng(51.5, -0.09),
              builder: (ctx) =>
              new Container(
                child: new FlutterLogo(),
              ),
            ),
          ],
        ),
      ],
    );
  }
}

Output:

E/flutter (  873): [ERROR:flutter/lib/ui/painting/codec.cc(76)] InitCodec failed - buffer was empty
I/chatty  (  873): uid=10094(u0_a94) io_thread identical 6 lines
E/flutter (  873): [ERROR:flutter/lib/ui/painting/codec.cc(76)] InitCodec failed - buffer was empty
I/flutter (  873): ══╡ EXCEPTION CAUGHT BY SERVICES ╞══════════════════════════════════════════════════════════════════
I/flutter (  873): The following _Exception was thrown resolving an image codec:
I/flutter (  873): Exception: operation failed
I/flutter (  873): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (  873): Another exception was thrown: Exception: operation failed
I/chatty  (  873): uid=10094(u0_a94) Thread-6 identical 5 lines
I/flutter (  873): Another exception was thrown: Exception: operation failed
E/flutter (  873): [ERROR:flutter/lib/ui/painting/codec.cc(76)] InitCodec failed - buffer was empty
E/flutter (  873): [ERROR:flutter/lib/ui/painting/codec.cc(76)] InitCodec failed - buffer was empty
I/flutter (  873): Another exception was thrown: Exception: operation failed
I/flutter (  873): Another exception was thrown: Exception: operation failed

Flutter info

Flutter (Channel beta, v0.2.3, on Microsoft Windows [Version 10.0.16299.309], locale en-US)

I am not using the Dart 2.0 preview.

@johnpryan
Copy link
Collaborator

@johnpryan
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants