[jitsi-dev] Jitsi-Android missing Component isPrefferedSizeSet() method


#1

Hi all,

While looking at video call stability I've encoutered following exception:

10:14:06.859 SEVERE: [30] util.UtilActivator.uncaughtException().92 An
uncaught exception occurred in thread=Thread[Loop thread:
org.jitsi.impl.neomedia.jmfext.media.renderer.video.JAWTRenderer@41ba1508,3,system]
and message was:
org.jitsi.android.util.java.awt.Component.isPreferredSizeSet
03-18 10:14:06.857: WARN/System.err(30932): java.lang.NoSuchMethodError:
org.jitsi.android.util.java.awt.Component.isPreferredSizeSet
03-18 10:14:06.857: WARN/System.err(30932): at
org.jitsi.impl.neomedia.jmfext.media.renderer.video.JAWTRenderer.reflectInputFormatOnComponentInEventDispatchThread(JAWTRenderer.java:544)
03-18 10:14:06.857: WARN/System.err(30932): at
org.jitsi.impl.neomedia.jmfext.media.renderer.video.JAWTRenderer.reflectInputFormatOnComponent(JAWTRenderer.java:495)
03-18 10:14:06.857: WARN/System.err(30932): at
org.jitsi.impl.neomedia.jmfext.media.renderer.video.JAWTRenderer.setInputFormat(JAWTRenderer.java:638)
03-18 10:14:06.857: WARN/System.err(30932): at
net.sf.fmj.media.BasicRendererModule.reinitRenderer(BasicRendererModule.java:763)
03-18 10:14:06.857: WARN/System.err(30932): at
net.sf.fmj.media.BasicRendererModule.handleFormatChange(BasicRendererModule.java:481)
03-18 10:14:06.857: WARN/System.err(30932): at
net.sf.fmj.media.BasicRendererModule.scheduleBuffer(BasicRendererModule.java:827)
03-18 10:14:06.857: WARN/System.err(30932): at
net.sf.fmj.media.BasicRendererModule.doProcess(BasicRendererModule.java:317)
03-18 10:14:06.857: WARN/System.err(30932): at
net.sf.fmj.media.RenderThread.process(BasicRendererModule.java:1153)
03-18 10:14:06.857: WARN/System.err(30932): at
net.sf.fmj.media.util.LoopThread.run(LoopThread.java:85)

Method isPrefferedSizeSet() was missing in awt Component sub located in
/lib/installer-exclude/java-stubs.jar

I've compiled it with target and source 1.5. I've atteched source and class
file for java.awt.Component and also the jar with these 2 files modified.
Please take a look at it.

I've implemented this method as:

public boolean isPreferredSizeSet()
{
return preferredWidth != 0 || preferredHeight != 0;
}

java-stubs.jar (50.5 KB)

Component.class (2.21 KB)

Component.java (2.69 KB)

ยทยทยท

--
Regards,
Pawel


#2

Thanks, Pawel! The method isPreferredSizeSet should be available in r10618.