Skip to content

[Windows] PlatformException(Clipboard error, Unable to open clipboard, 5, null); #95817

@krll-kov

Description

@krll-kov

After updating flutter to 2.8.1 from 2.5.3 my app started throwing this error

logs
PlatformException(Clipboard error, Unable to open clipboard, 5, null);
 #0      JSONMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:155)
 #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167)<asynchronous suspension>
 #2      Clipboard.hasStrings (package:flutter/src/services/clipboard.dart:69)<asynchronous suspension>
 #3      ClipboardStatusNotifier.update (package:flutter/src/widgets/text_selection.dart:1590)<asynchronous suspension>

I do not know how to reproduce it because it happens randomly (usually when app is minimized and not used). I catch this error with FlutterError.onError method;

Flutter version: 2.8.1 from stable channel. Platform: Windows.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: desktopRunning on desktopa: error messageError messages from the Flutter frameworkframeworkflutter/packages/flutter repository. See also f: labels.platform-windowsBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions