From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95015 invoked by alias); 13 May 2017 16:31:01 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 94895 invoked by uid 89); 13 May 2017 16:31:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=HTo:U*chris, UD:build, vine, 917 X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 13 May 2017 16:30:59 +0000 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1d9ZwY-0007zM-JV; Sat, 13 May 2017 18:30:58 +0200 Received: from 70-36-239-209.dsl.dynamic.fusionbroadband.com ([70.36.239.209] helo=localhost.localdomain) by mailfront11.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1d9ZwE-0006N1-NW; Sat, 13 May 2017 18:30:39 +0200 Subject: Re: javafx To: Chris Vine , Kawa mailing list References: <20170513135809.48e591f2@bother.homenet> From: Per Bothner Message-ID: <17b033f0-3221-4750-ea80-0d780f5df760@bothner.com> Date: Sat, 13 May 2017 16:31:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <20170513135809.48e591f2@bother.homenet> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-q2/txt/msg00059.txt.bz2 On 05/13/2017 05:58 AM, Chris Vine wrote: > There seems to be a problem with the 'javafx-scene' macro in kawa-2.4. > > First, the example at > https://www.gnu.org/software/kawa/Building-JavaFX-applications.html#idm139760384873792 > fails to size the button correctly when compared with kawa-2.1.9. The > same occurs with kawa-2.3 (I have not tested with kawa-2.2). This was a bug introduced here: 2016-06-26 Per Bothner * MakeScene.scm (MakeScene): Don't create Group until actually needed. I checked in a fix, in both the master and kawa-2.4 branches. > kawa-2.3 works correctly (the buttons are correctly sized), whereas > kawa-2.4 fails to run the code, with this error: > > Exception in Application start method > java.lang.RuntimeException: Exception in Application start method > at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917) > at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$156(LauncherImpl.java:182) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to javafx.scene.Node > at gnu.kawa.javafx.MakeScene.build(MakeScene.scm:54) > at javafx-test2.run(javafx-test2.kawa:10008) > at gnu.kawa.javafx.KawaJavafxApplication.start(defs.scm:65) > at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163(LauncherImpl.java:863) > at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176(PlatformImpl.java:326) > at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295) > at java.security.AccessController.doPrivileged(Native Method) > at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformImpl.java:294) > at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) > at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method) > at com.sun.glass.ui.gtk.GtkApplication.lambda$null$50(GtkApplication.java:139) > ... 1 more I was able to reproduce it before, though only on the old 2.4 branch. It seems to have gone away - though it might be JDK or other environment issues. Let me know if you still experience it with the kawa-2.4 branch. Of course, you could also switch to the master (formerly 'invoke') branch; I doubt I'll make another 2.4.x release. -- --Per Bothner per@bothner.com http://per.bothner.com/