Skip to content

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

@bramvbilsen

Description

@bramvbilsen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions