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

Unimplemented Error ShaderMask on Web #80650

Closed
Xrok opened this issue Apr 17, 2021 · 2 comments
Closed

Unimplemented Error ShaderMask on Web #80650

Xrok opened this issue Apr 17, 2021 · 2 comments
Labels
r: fixed Issue is closed as already fixed in a newer version

Comments

@Xrok
Copy link

Xrok commented Apr 17, 2021

Steps to Reproduce

This error occurs on the web platform, on iOS the expected result is achieved.

  1. Run flutter run -d chrome.
  2. Update the files as follows:

main.dart

import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: ShaderMask(
          blendMode: BlendMode.srcATop,
          shaderCallback: (Rect bounds) {
            return RadialGradient(
              center: Alignment.topLeft,
              radius: 1.0,
              colors: <Color>[Colors.yellow, Colors.deepOrange.shade900],
              tileMode: TileMode.mirror,
            ).createShader(bounds);
          },
          child: const Text('I’m burning the memories'),
        ),
      ),
    );
  }
}

Expected results:

IMG_0571

Actual results:
BlankPage and UnimplementedError

Logs
[+13419 ms] Waiting for connection from debug service on Chrome... (completed in 17.3s)
[        ] Synced 29.1MB.
[        ] <- accept
[        ] Caching compiled dill
[ +148 ms] Using Google Chrome 89.0.4389.128 

[+1073 ms] [CHROME]:2021-04-17 11:27:08.014 Google Chrome[82109:1434774] Error loading /Library/CoreMediaIO/Plug-Ins/DAL/GoProWebCam.plugin/Contents/MacOS/GoProWebCam:
dlopen(/Library/CoreMediaIO/Plug-Ins/DAL/GoProWebCam.plugin/Contents/MacOS/GoProWebCam, 262): no suitable image found.  Did find:
[   +1 ms] [CHROME]:    /Library/CoreMediaIO/Plug-Ins/DAL/GoProWebCam.plugin/Contents/MacOS/GoProWebCam: code signature in (/Library/CoreMediaIO/Plug-Ins/DAL/GoProWebCam.plugin/Contents/MacOS/GoProWebCam)
not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs
[        ] [CHROME]:    /Library/CoreMediaIO/Plug-Ins/DAL/GoProWebCam.plugin/Contents/MacOS/GoProWebCam: stat() failed with errno=9
[ +185 ms] [CHROME]:
[        ] [CHROME]:DevTools listening on ws://127.0.0.1:60068/devtools/browser/0d2e4c8d-d662-49e5-93c2-e8abd1de6731
[ +859 ms] DwdsInjector: Received request for entrypoint at http://localhost:60046/main_module.bootstrap.js
[   +7 ms] MetadataProvider: Loading debug metadata...
[  +13 ms] MetadataProvider: Loaded debug metadata
[   +7 ms] DwdsInjector: Injected debugging metadata for entrypoint at http://localhost:60046/main_module.bootstrap.js
[+1994 ms] DevHandler: Debug service listening on ws://127.0.0.1:60091/NJag_hJ7ibE=/ws

[  +15 ms] Debug service listening on ws://127.0.0.1:60091/NJag_hJ7ibE=/ws
[        ] Running with unsound null safety
[        ] For more information see https://dart.dev/null-safety/unsound-null-safety
[   +2 ms] 🔥  To hot restart changes while running, press "r" or "R".
[   +1 ms] For a more detailed help message, press "h". To quit, press "q".
[+2320 ms] ══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
[        ] The following UnimplementedError was thrown during a scheduler callback:
[        ] UnimplementedError
[   +3 ms] When the exception was thrown, this was the stack:
[        ] dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 236:49  throw_
[        ] lib/_engine/engine/canvaskit/layer_scene_builder.dart 196:5                   pushShaderMask
[        ] packages/flutter/src/rendering/layer.dart 1779:26                             addToScene
[        ] packages/flutter/src/rendering/layer.dart 407:5                               [_addToSceneWithRetainedRendering]
[        ] packages/flutter/src/rendering/layer.dart 994:14                              addChildrenToScene
[        ] packages/flutter/src/rendering/layer.dart 1966:5                              addToScene
[        ] packages/flutter/src/rendering/layer.dart 407:5                               [_addToSceneWithRetainedRendering]
[        ] packages/flutter/src/rendering/layer.dart 994:14                              addChildrenToScene
[        ] packages/flutter/src/rendering/layer.dart 1131:5                              addToScene
[        ] packages/flutter/src/rendering/layer.dart 407:5                               [_addToSceneWithRetainedRendering]
[        ] packages/flutter/src/rendering/layer.dart 994:14                              addChildrenToScene
[        ] packages/flutter/src/rendering/layer.dart 1131:5                              addToScene
[   +1 ms] packages/flutter/src/rendering/layer.dart 407:5                               [_addToSceneWithRetainedRendering]
[        ] packages/flutter/src/rendering/layer.dart 994:14                              addChildrenToScene
[        ] packages/flutter/src/rendering/layer.dart 1576:5                              addToScene
[        ] packages/flutter/src/rendering/layer.dart 732:5                               buildScene
[        ] packages/flutter/src/rendering/view.dart 217:30                               compositeFrame
[        ] packages/flutter/src/rendering/binding.dart 457:18                            drawFrame
[        ] packages/flutter/src/widgets/binding.dart 874:13                              drawFrame
[        ] packages/flutter/src/rendering/binding.dart 319:5                             [_handlePersistentFrameCallback]
[        ] packages/flutter/src/scheduler/binding.dart 1144:15                           [_invokeFrameCallback]
[        ] packages/flutter/src/scheduler/binding.dart 1082:9                            handleDrawFrame
[        ] packages/flutter/src/scheduler/binding.dart 865:7                             <fn>
[        ] dart-sdk/lib/_internal/js_dev_runtime/private/isolate_helper.dart 48:19       internalCallback
[        ] ════════════════════════════════════════════════════════════════════════════════════════════════════
[        ] Another exception was thrown: UnimplementedError

[✓] Flutter (Channel stable, 2.0.5, on macOS 11.2.3 20D91 darwin-x64, locale en)
    • Flutter version 2.0.5 at /Users/xrok/Develop/flutter
    • Framework revision adc687823a (24 hours ago), 2021-04-16 09:40:20 -0700
    • Engine revision b09f014e96
    • Dart version 2.12.3

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/xrok/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.55.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (2 available)
    • Chrome (web)             • chrome                                   • web-javascript • Google Chrome 89.0.4389.128

• No issues found!
@darshankawar darshankawar added the in triage Presently being triaged by the triage team label Jun 2, 2021
@darshankawar
Copy link
Member

Verified this on latest stable version (2.2.1) and can see the expected behavior:

Screenshot 2021-06-02 at 3 27 42 PM

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.1, on Mac OS X 10.15.4 19E2269 darwin-x64,
    locale en-GB)
    • Flutter version 2.2.1 at /Users/dhs/documents/fluttersdk/flutter
    • Framework revision 02c026b03c (4 days ago), 2021-05-27 12:24:44 -0700
    • Engine revision 0fdb562ac8
    • Dart version 2.13.1

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.55.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (4 available)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 91.0.4472.77

• No issues found!




Closing this as not reproducible and must have been fixed for web, per this comment.

@darshankawar darshankawar added r: fixed Issue is closed as already fixed in a newer version and removed in triage Presently being triaged by the triage team labels Jun 2, 2021
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
r: fixed Issue is closed as already fixed in a newer version
Projects
None yet
Development

No branches or pull requests

2 participants