-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
flutter/engine
#40066Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: crashStack traces logged to the consoleStack traces logged to the consolee: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for WebCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.7Found to occur in 3.7Found to occur in 3.7found in release: 3.8Found to occur in 3.8Found to occur in 3.8has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
Steps to Reproduce
- Execute
flutter runon the code sample below
also https://j6c-001.github.io/bugreport/
Expected results:
The text "There is no button"
Actual results:
App crashes immediately
Works on windows, but not Chrome with Flutter 3.7.5 (however it does not crash in dartpad)
Worked on Windows, and Chrome with Flutter 3.3.x
main.dart
import 'dart:typed_data';
import 'dart:ui';
import 'package:flutter/widgets.dart';
/*
Set size below to 540 or above to reproduce.
Lower values work (text does not render for 537, 538, 539. 540 crashes with
CanvasKit threw an exception while laying out the paragraph. The font was "null". Exception:
RuntimeError: null function or function signature mismatch
CanvasKit threw an exception while laying out the paragraph. The font was "null". Exception:
RuntimeError: null function or function signature mismatch
*/
const size = 540;
const vertexIndex = 8;
const indiceIndex= 12;
const colorIndex = 4;
Float32List vertices = Float32List(2*size);
Uint16List indices = Uint16List(3*size);
Int32List colors = Int32List(size);
void main() {
final vs = Vertices.raw(VertexMode.triangles,
Float32List.sublistView(vertices,0, vertexIndex),
indices: Uint16List.sublistView(indices, 0, indiceIndex),
colors: Int32List.sublistView(colors, 0, colorIndex) // *no error when this line is commented out.
);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return WidgetsApp(color: const Color(0xFFFF0000), builder: (c, w)=> Center(child: Column(
children: const [ Text('There is no button') ])));
}
}
Logs
[ +1 ms] An Observatory debugger and profiler on Chrome is available at: http://127.0.0.1:60034/IbpL4OdIU2I=
[ +798 ms] CanvasKit threw an exception while laying out the paragraph. The font was "null". Exception:
RuntimeError: null function or function signature mismatch
[ +282 ms] ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
[ +5 ms] The following LegacyJavaScriptObject object was thrown during performLayout():
[ ] RuntimeError: null function or function signature mismatch
[ ] The relevant error-causing widget was:
[ ] Text Text:file:///C:/bugreport/lib/main.dart:44:27
[ ] When the exception was thrown, this was the stack:
[ ] https://unpkg.com/[email protected]/bin/canvaskit.js 182:52 layout
[ ] C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_shared/lib/js_util_patch.dart 106:57 _callMethodUnchecked1
[ ] C:/b/s/w/ir/cache/builder/src/out/host_debug/lib/_engine/engine/canvaskit/canvaskit_api.dart 2154:17 SkParagraphExtension.layout
[ ] C:/b/s/w/ir/cache/builder/src/out/host_debug/lib/_engine/engine/canvaskit/text.dart 614:19 [_ensureInitialized]
[ ] C:/b/s/w/ir/cache/builder/src/out/host_debug/lib/_engine/engine/canvaskit/text.dart 787:5 layout
[ ] packages/flutter/src/painting/text_painter.dart 771:5 [_layoutParagraph]
[ +1 ms] packages/flutter/src/painting/text_painter.dart 820:5 layout
[ +1 ms] packages/flutter/src/rendering/paragraph.dart 645:18 [_layoutText]
[ ] packages/flutter/src/rendering/paragraph.dart 695:5 [_layoutTextWithConstraints]
[ ] packages/flutter/src/rendering/paragraph.dart 808:5 performLayout
[ ] packages/flutter/src/rendering/object.dart 2189:7 layout
[ ] packages/flutter/src/rendering/box.dart 2430:11 layout
[ ] packages/flutter/src/rendering/layout_helper.dart 56:10 layoutChild
[ ] packages/flutter/src/rendering/flex.dart 836:43 [_computeSizes]
[ ] packages/flutter/src/rendering/flex.dart 938:32 performLayout
[ ] packages/flutter/src/rendering/object.dart 2189:7 layout
[ ] packages/flutter/src/rendering/box.dart 2430:11 layout
[ ] packages/flutter/src/rendering/shifted_box.dart 442:7 performLayout
[ +1 ms] packages/flutter/src/rendering/object.dart 2189:7 layout
[ ] packages/flutter/src/rendering/box.dart 2430:11 layout
[ ] packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
[ ] packages/flutter/src/rendering/custom_paint.dart 552:11 performLayout
[ ] packages/flutter/src/rendering/object.dart 2189:7 layout
[ ] packages/flutter/src/rendering/box.dart 2430:11 layout
[ +2 ms] packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
[ ] packages/flutter/src/rendering/object.dart 2189:7 layout
[ ] packages/flutter/src/rendering/box.dart 2430:11 layout
[ ] packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
[ ] packages/flutter/src/rendering/object.dart 2189:7 layout
[ ] packages/flutter/src/rendering/box.dart 2430:11 layout
[ ] packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
[ ] packages/flutter/src/rendering/object.dart 2189:7 layout
[ ] packages/flutter/src/rendering/box.dart 2430:11 layout
[ ] packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
[ ] packages/flutter/src/rendering/object.dart 2189:7 layout
[ ] packages/flutter/src/rendering/box.dart 2430:11 layout
[ ] packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
[ ] packages/flutter/src/rendering/object.dart 2189:7 layout
[ +4 ms] packages/flutter/src/rendering/box.dart 2430:11 layout
[ ] packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
[ ] packages/flutter/src/rendering/object.dart 2189:7 layout
[ ] packages/flutter/src/rendering/box.dart 2430:11 layout
[ ] packages/flutter/src/rendering/view.dart 175:7 performLayout
[ ] packages/flutter/src/rendering/object.dart 2027:7 [_layoutWithoutResize]
[ ] packages/flutter/src/rendering/object.dart 1020:17 flushLayout
[ ] packages/flutter/src/rendering/binding.dart 516:19 drawFrame
[ ] packages/flutter/src/widgets/binding.dart 865:13 drawFrame
[ ] packages/flutter/src/rendering/binding.dart 381:5 [_handlePersistentFrameCallback]
[ ] packages/flutter/src/scheduler/binding.dart 1289:15 [_invokeFrameCallback]
[ ] packages/flutter/src/scheduler/binding.dart 1218:9 handleDrawFrame
[ ] packages/flutter/src/scheduler/binding.dart 942:7 <fn>
[ ] C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/isolate_helper.dart 48:19 internalCallback
PS C:\Users\johnb\sanbox\bugreport> flutter doctor -v
[√] Flutter (Channel stable, 3.7.5, on Microsoft Windows [Version 10.0.22621.1265], locale en-CA)
• Flutter version 3.7.5 on channel stable at c:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c07f788888 (5 days ago), 2023-02-22 17:52:33 -0600
• Engine revision 0f359063c4
• Dart version 2.19.2
• DevTools version 2.20.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.11.23)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
• Visual Studio Build Tools 2019 version 16.11.33214.272
• Windows 10 SDK version 10.0.22621.0
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
[√] IntelliJ IDEA Ultimate Edition (version 2022.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2022.3.1
• Flutter plugin version 72.1.4
• Dart plugin version 223.8617.8
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.1265]
• Chrome (web) • chrome • web-javascript • Google Chrome 110.0.5481.105
• Edge (web) • edge • web-javascript • Microsoft Edge 110.0.1587.57
[√] HTTP Host Availability
• All required HTTP hosts are available
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: crashStack traces logged to the consoleStack traces logged to the consolee: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for WebCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.7Found to occur in 3.7Found to occur in 3.7found in release: 3.8Found to occur in 3.8Found to occur in 3.8has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version