Forums > Java

Accessing the Max window when Max is unresponsive

September 3, 2007 | 4:10 am

I’ve developed an mxj object that is part of a Max/Jitter patcher. The mxj object is multi-threaded and runs fine in the Windows XP environment on machines that are multi-core or single CPU.

A problem occurs in the Mac environment running the patcher. Shortly after the patcher begins execution, Max locks up and becomes unresponsive. The "spinning wheel" appears and never goes away. Other applications are accessible and run fine during this condition.

I’m fairly positive that my mxj object is the culprit. Since I know that the Java version on the Mac machine is earlier than the Java version used in the Windows environment, I think it’s likely the mxj object may be dependent upon a Java facility that’s not present on the Mac machine. If that’s true, I was hoping an indication of what is wrong would be written to the Max window prior to Max becoming unresponsive.

Is there a way to force what’s written to the Max window to also be written to a log file? The Max window is hidden by the patcher and cannot be brought to the fore because Max is unresponsive.

Thanks in advance….Steve


September 15, 2007 | 8:33 pm

Does it log to the system console? /application/utilities/console?

b

On Sep 2, 2007, at 9:10 PM, Steve Bursch wrote:

>
> I’ve developed an mxj object that is part of a Max/Jitter patcher.
> The mxj object is multi-threaded and runs fine in the Windows XP
> environment on machines that are multi-core or single CPU.
>
> A problem occurs in the Mac environment running the patcher.
> Shortly after the patcher begins execution, Max locks up and
> becomes unresponsive. The "spinning wheel" appears and never goes
> away. Other applications are accessible and run fine during this
> condition.
>
> I’m fairly positive that my mxj object is the culprit. Since I know
> that the Java version on the Mac machine is earlier than the Java
> version used in the Windows environment, I think it’s likely the
> mxj object may be dependent upon a Java facility that’s not present
> on the Mac machine. If that’s true, I was hoping an indication of
> what is wrong would be written to the Max window prior to Max
> becoming unresponsive.
>
> Is there a way to force what’s written to the Max window to also be
> written to a log file? The Max window is hidden by the patcher and
> cannot be brought to the fore because Max is unresponsive.
>
> Thanks in advance….Steve
>

Barry Threw
Media Art and Technology

San Francisco, CA Work: 857-544-3967
Email: bthrew@gmail.com
IM: captogreadmore (AIM)
http:/www.barrythrew.com


September 17, 2007 | 3:55 am

Please pardon my ignorance in this, but do I need to turn on logging in Max to make it log to the system console? I don’t have access to the failing Mac machine just at the moment, but a search through the directories on a Windows XP machine that runs Max fails to show any Max-related files or directories with the word "console" in the name. Is the Max system console location the same on Windows as it is on the Mac?

Thanks…Steve


September 17, 2007 | 5:16 am

Mac system console. Not Max.

b

On Sep 16, 2007, at 8:55 PM, Steve Bursch wrote:

>
> Please pardon my ignorance in this, but do I need to turn on
> logging in Max to make it log to the system console? I don’t have
> access to the failing Mac machine just at the moment, but a search
> through the directories on a Windows XP machine that runs Max fails
> to show any Max-related files or directories with the word
> "console" in the name. Is the Max system console location the same
> on Windows as it is on the Mac?
>
> Thanks…Steve
>
>
>

Barry Threw
Media Art and Technology

San Francisco, CA Work: 857-544-3967
Email: bthrew@gmail.com
IM: captogreadmore (AIM)
http:/www.barrythrew.com


September 17, 2007 | 5:31 am

Just to chime in. It would not be too difficult to make a class which
logged to a file of your choice using java io classes.


September 17, 2007 | 5:34 am

Also…os x java is much less robust with threading as related to ui
stiff so if your mxj class is doing any swing or awt stuff remember to
use java SwingUtilities as sun suggests for proper ui dispatch.


Viewing 6 posts - 1 through 6 (of 6 total)