Login  Register

Re: 3D Viewer Exception

Posted by ard on Jul 29, 2015; 2:26pm
URL: http://imagej.273.s1.nabble.com/3D-Viewer-Exception-tp5013775p5013800.html

On 20150729, at 06:00, IMAGEJ automatic digest system <[hidden email]> wrote:
>
> The 3D Viewer does not currently work with Java 8 on OS X.

Thanks for your comments Curtis. Isn't the bug Mac specific?
No quick workaround by replacing a call to awt?
Oh, well, maybe that isn't even necessary (see below).

> We are going to fix that (at least on the ImageJ2 side) later this summer;
> see:
>
>   http://fiji.sc/bugzilla/show_bug.cgi?id=1095
>
> The workaround for the moment is to use Java 6:
> * http://imagej.net/FAQ#How_do_I_set_up_Java_6_on_OS_X.3F
> * http://imagej.net/FAQ#On_OS_X

They contradict. Nevertheless, I tried to follow the launch on OSX (Java 1.6 not uninstalled and Java 1.8 installed) and got 3D Viewer running, despite the error messages below that appeared in the Terminal, from which I issued the commands
 export J6="$(/usr/libexec/java_home -v 1.6)"
 export IJ_HOME=/Applications/Fiji.app
 $J6/bin/$($IJ_HOME/Contents/MacOS/ImageJ-macosx --dry-run | perl -pe 's/ -Djava.ext.dirs=.*? -D/ -D/')

Error message:
---
java[16567:1439722] Unable to simultaneously satisfy constraints:
(
    "<NSAutoresizingMaskLayoutConstraint:0x7ff94ecb3790 h=--& v=--& V:[FI_TBrowserBackgroundView:0x7ff94ed44240(0)]>",
    "<NSAutoresizingMaskLayoutConstraint:0x7ff94ecb31e0 h=-&- v=-&- V:|-(0)-[FI_TListScrollView:0x7ff94ed14060]   (Names: '|':FI_TBrowserBackgroundView:0x7ff94ed44240 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x7ff94ecb3190 h=-&- v=-&- V:[FI_TListScrollView:0x7ff94ed14060]-(0)-|   (Names: '|':FI_TBrowserBackgroundView:0x7ff94ed44240 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x7ff94ecae090 h=-&- v=-&- V:[NSClipView:0x7ff94ed13ca0]-(15)-|   (Names: '|':FI_TListScrollView:0x7ff94ed14060 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x7ff94ecae040 h=-&- v=-&- V:|-(0)-[NSClipView:0x7ff94ed13ca0]   (Names: '|':FI_TListScrollView:0x7ff94ed14060 )>"
)

Will attempt to recover by breaking constraint
<NSAutoresizingMaskLayoutConstraint:0x7ff94ecae090 h=-&- v=-&- V:[NSClipView:0x7ff94ed13ca0]-(15)-|   (Names: '|':FI_TListScrollView:0x7ff94ed14060 )>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens.  And/or, break on objc_exception_throw to catch this in the debugger.
version = 1.5
nFrames = 1
---

Ard
________________________________

AMC Disclaimer : http://www.amc.nl/disclaimer

________________________________

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html