harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4509) [classlib][awt] ICC color transformation does not work
Date Mon, 23 Jul 2007 18:35:31 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-4509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514722
] 

Alexei Zakharov commented on HARMONY-4509:
------------------------------------------

Andrey, I've just tried the test on Linux IA32 for several times. I've got SIGSERV in VM code
regardless if the patch is applied or not. Please see the stacktrace below. Did I do everything
correctly?

$ ant -Dbuild.module=awt -Dtest.jre.home=$DRLVM_HOME -Dtest.case=java/awt/color/ICC_TransformRTest.java
-Dhy.test.vmargs="-Djava.iccprofile.path=/opt/jdk1.5.0_06/jre/lib/cmm" test
...
    [junit] Running java.awt.color.ICC_TransformRTest
    [junit] SIGSEGV in VM code.
    [junit] Stack trace:
    [junit]   0: free (??:-1)
    [junit]   1: MemoryClose (NativeImageFormat.c:-1)
    [junit]   2: Java_org_apache_harmony_awt_gl_color_NativeCMM_cmmOpenProfile (../shared//NativeCMM.c:55)
    [junit]   3: 0xA2B969C3  <Generated stub>
    [junit]   4: java/awt/color/ICC_Profile.<init>([B)V (ICC_Profile.java:326)
    [junit]   5: java/awt/color/ICC_Profile.getInstance([B)Ljava/awt/color/ICC_Profile; (ICC_Profile.java:663)
    [junit]   6: java/awt/color/ICC_Profile.getInstance(Ljava/io/InputStream;)Ljava/awt/color/ICC_Profile;
(ICC_Profile.java:656)
    [junit]   7: java/awt/color/ICC_Profile.getInstance(Ljava/lang/String;)Ljava/awt/color/ICC_Profile;
(ICC_Profile.java:618)
    [junit]   8: java/awt/color/ICC_Profile.getInstance(I)Ljava/awt/color/ICC_Profile; (ICC_Profile.java:700)
    [junit]   9: java/awt/color/ICC_TransformRTest.testHarmony_4509()V (ICC_TransformRTest.java:27)
    [junit]  10: vm_invoke_native_array_stub (/home/ayzakhar/projects/harmony/working_vm/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41)
    [junit]  11: JIT_execute_method_default(void*, _jmethodID*, jvalue*, jvalue*) (/home/ayzakhar/projects/harmony/working_vm/vm/vmcore/src/util/ia32/base/ini_iA32.cpp:200)
    [junit]  12: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (/home/ayzakhar/projects/harmony/working_vm/vm/em/src/DrlEMImpl.cpp:510)
    [junit]  13: ExecuteMethod (/home/ayzakhar/projects/harmony/working_vm/vm/em/src/em_intf.cpp:44)
    [junit]  14: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (/home/ayzakhar/projects/harmony/working_vm/vm/vmcore/src/jit/ini.cpp:67)
    [junit]  15: call_method_no_ref_result (/home/ayzakhar/projects/harmony/working_vm/vm/vmcore/src/jni/jni_method.cpp:188)
    [junit]  16: CallVoidMethodA(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*) (/home/ayzakhar/projects/harmony/working_vm/vm/vmcore/src/jni/jni_method.cpp:226)
    [junit]  17: invoke_primitive_method (/home/ayzakhar/projects/harmony/working_vm/vm/vmcore/src/kernel_classes/native/java_lang_reflect_VMReflection.cpp:188)
   [junit]  18: Java_java_lang_reflect_VMReflection_invokeMethod (/home/ayzakhar/projects/harmony/working_vm/vm/vmcore/src/kernel_classes/native/java_lang_reflect_VMReflection.cpp:222)
    [junit]  19: 0xA2B91A50  <Generated stub>
    [junit]  20: java/lang/reflect/Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
(Method.java:317)
    [junit]  21: junit/framework/TestCase.runTest()V (TestCase.java:164)
    [junit]  22: junit/framework/TestCase.runBare()V (TestCase.java:130)
    [junit]  23: junit/framework/TestResult$1.protect()V (TestResult.java:106)
    [junit]  24: junit/framework/TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V
(TestResult.java:124)
    [junit]  25: junit/framework/TestResult.run(Ljunit/framework/TestCase;)V (TestResult.java:109)
    [junit]  26: junit/framework/TestCase.run(Ljunit/framework/TestResult;)V (TestCase.java:120)
    [junit]  27: junit/framework/TestSuite.runTest(Ljunit/framework/Test;Ljunit/framework/TestResult;)V
(TestSuite.java:230)
    [junit]  28: junit/framework/TestSuite.run(Ljunit/framework/TestResult;)V (TestSuite.java:225)
    [junit]  29: org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.run()V (JUnitTestRunner.java:421)
    [junit]  30: org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.launch(Lorg/apache/tools/ant/taskdefs/optional/junit/JUnitTest;ZZZZZZLjava/util/Properties;)I
(JUnitTestRunner.java:912)
    [junit]  31: org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.main([Ljava/lang/String;)V
(JUnitTestRunner.java:766)
    [junit]  32: vm_invoke_native_array_stub (/home/ayzakhar/projects/harmony/working_vm/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41)
    [junit]  33: JIT_execute_method_default(void*, _jmethodID*, jvalue*, jvalue*) (/home/ayzakhar/projects/harmony/working_vm/vm/vmcore/src/util/ia32/base/ini_iA32.cpp:200)
    [junit]  34: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (/home/ayzakhar/projects/harmony/working_vm/vm/em/src/DrlEMImpl.cpp:510)
    [junit]  35: ExecuteMethod (/home/ayzakhar/projects/harmony/working_vm/vm/em/src/em_intf.cpp:44)
    [junit]  36: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (/home/ayzakhar/projects/harmony/working_vm/vm/vmcore/src/jit/ini.cpp:67)
    [junit]  37: call_static_method_no_ref_result (/home/ayzakhar/projects/harmony/working_vm/vm/vmcore/src/jni/jni_method.cpp:1155)
    [junit]  38: CallStaticVoidMethodA(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*)
(/home/ayzakhar/projects/harmony/working_vm/vm/vmcore/src/jni/jni_method.cpp:1563)
    [junit]  39: CallStaticVoidMethodV(JNIEnv_External*, _jobject*, _jmethodID*, char*) (/home/ayzakhar/projects/harmony/working_vm/vm/vmcore/src/jni/jni_method.cpp:1547)
    [junit]  40: CallStaticVoidMethod(JNIEnv_External*, _jobject*, _jmethodID*, ...) (/home/ayzakhar/projects/harmony/working_vm/vm/vmcore/src/jni/jni_method.cpp:1537)
    [junit]  41: main_runJavaMain (../shared/main.c:1324)
    [junit]  42: invocation (../shared/main.c:740)
    [junit]  43: gpProtectedMain (../shared/main.c:389)
    [junit]  44: main (../shared/cmain.c:146)
    [junit]  45: __libc_start_main (??:-1)
    [junit]  46: _start (../sysdeps/i386/elf/start.S:122)
    [junit] <end of stack trace>
    [junit] Running java.awt.color.ICC_TransformRTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Test java.awt.color.ICC_TransformRTest FAILED (crashed)


I will try to run on Windows as well.

> [classlib][awt] ICC color transformation does not work
> ------------------------------------------------------
>
>                 Key: HARMONY-4509
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4509
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Andrey Pavlenko
>            Assignee: Alexei Zakharov
>         Attachments: HARMONY-4509-cmmio.patch, HARMONY-4509-ICC_TransformRTest.patch
>
>
> The following test case fails with java.awt.color.CMMException: Can't create ICC transform:
>        public void test() {
> 		new ICC_Transform(new ICC_Profile[] {
> 				ICC_Profile.getInstance(ColorSpace.CS_sRGB),
> 				ICC_Profile.getInstance(ColorSpace.CS_GRAY) });
> 	}
> Stack: java.awt.color.CMMException: Can't create ICC transform
> 	at org.apache.harmony.awt.gl.color.NativeCMM.cmmCreateMultiprofileTransform(NativeCMM.java)
> 	at org.apache.harmony.awt.gl.color.ICC_Transform.<init>(ICC_Transform.java:131)
> Note: to reproduce this issue the system property "java.iccprofile.path" should point
to a directory with sRGB and GRAY profiles. See HARMONY-4381.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message