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

Placing image on Clipboard crashes app on iOS simulator or iPad #178

Open
husonlab opened this issue Jan 11, 2024 · 0 comments
Open

Placing image on Clipboard crashes app on iOS simulator or iPad #178

husonlab opened this issue Jan 11, 2024 · 0 comments

Comments

@husonlab
Copy link

Placing an image on the Clipboard causes app to crash on iOS simulator or iPad (but works fine on MacBookPro).

To reproduce, add a copy button to the gluon-samples DoddleTrace.java using these lines:

import javafx.scene.input.Clipboard;
import javafx.scene.input.ClipboardContent;
var copyActionButton = new FloatingActionButton(MaterialDesignIcon.CONTENT_COPY.text, e -> {
	var image = this.getCenter().snapshot(null, null);
	var content = new ClipboardContent();
	content.putImage(image);
	Clipboard.getSystemClipboard().setContent(content);
});
copyActionButton.showOn(this);

Start the App:

mvn -Pios-sim gluonfx:build gluonfx:package gluonfx:install gluonfx:nativerun

When running, press the copy button. The app closes down and something like this appears in the
console:

[Thu Jan 11 21:43:05 CET 2024][INFO] [SUB] com.gluonhq.samples.doodle-trace: 85415

The crash log contains this: Termination Reason: SIGNAL 11 Segmentation fault: 11

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

1 participant