Thank you. I have a posting on the Psychtoolbox forum. No bites yet.

An interesting development happened yesterday. I had 2 instances of octave open in 2 different terminals. In one of them, the provided code ran fine, in the other it crashed as reported. Same version of octave. Same versions of all packages. Same packages loaded. Same version of psychtoolbox. Same code. The dialog boxes looked different. I've attached an image. The one on the top was from the version that worked. Unfortunately, I had to reboot before I could thoroughly check for differences and I can not reproduce the one that worked. The dialog box was called before any call to psychtoolbox. In fact, the dialog boxes looked different if I just called: inputdlg({'test'}, 'title').

I'll keep looking, but any suggestions would be appreciated.


On 07/27/2011 05:51 PM, Philip Nienhuis wrote:
Andrew Cohen wrote:
  inputdlg from the java package works fine.
Screen('DrawText') from Psychtoolbox (http://psychtoolbox.org) works fine.

But together...

The code below hangs and then gives the following error:

octave: fccache.c:507: FcCacheFini: Assertion `fcCacheChains[i] ==
((void *)0)' failed.
panic: Aborted -- stopping myself...
Aborted

The error goes away if the dialog box is not invoked or the DrawText
line is removed. The text is never drawn.

I get the same error when I try using listdlg.

Suggestions?

If the PsychToolbox were easy to install I could help debug this.
But installation of this toolbox has been made somewhat invoked, to put it mildly. E.g., I have no plans at all to install the toolbox makers' favorite svn client if I already have another svn client installed (Tortoise in my case).

Without having access to the function Screen() I can't say what is going wrong. It may very well be (and I suspect it to be) a problem in the PsychToolbox itself. Does it need the java package?

The java-1.2.8 package has been tested fairly intensively.
That said, 64-bit operating systems have yielded more issues with java - search this ML or the help-octave ML for related posts.

I suggest to contact the PsychToolbox authors and ask them to help solve your problem.

Best wishes,

Philip

function test()

% Requires java package from http://octave.sourceforge.net/

pkg load java

inputdlg({'test'}, 'title');

[screen_ptr screen_rect] = Screen('OpenWindow', 0, 0, [], 32, 2);

Screen('DrawText', screen_ptr, 'hi', 100, 100);
Screen('Flip', screen_ptr);

WaitSecs(2);

Screen('CloseAll');

----------------------

Ubuntu 11.04 64-bit
Octave 3.2.4



------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey



_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

<<attachment: 2_Dialogs.png>>

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to