iterate-ch / rococoa

Rococoa allows you to call Objective-C code through Java classes and interfaces that you define.
GNU Lesser General Public License v3.0
72 stars 18 forks source link

Test failures in QTMovieTest #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. check out from svn
2. cd into rococoa-core and *mvn install*
3. cd into rococoa-cocoa
4. ensure there is no librococoa.dylib in there
5. *mvn test*

What is the expected output? What do you see instead?

I expected it to succeed but got the following:

Macintosh:rococoa-cocoa paulloy$ mvn test
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Rococoa Cocoa Mappings
[INFO]    task-segment: [test]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [dependency:copy {execution: copy}]
[INFO] Configured Artifact: org.rococoa:rococoa-core:0.5:dylib
[INFO] Copying rococoa-core-0.5.dylib to
/Users/paulloy/Documents/workspace-gc/rococoa/rococoa/rococoa-cocoa/librococoa.d
ylib
[INFO] [resources:testResources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
/Users/paulloy/Documents/workspace-gc/rococoa/rococoa/rococoa-cocoa/target/suref
ire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.rococoa.cocoa.qtkit.QTMovieTest
main    RococoaTestCase.logVersions - Running with JAVA_HOME = null,
java.version = 1.6.0_15, sizeof(Pointer) = 8
main    Foundation.<clinit> - Initializing Foundation
main    Foundation.<clinit> - exit initializing Foundation
main    Rococoa.create - creating [NSAutoreleasePool
(org.rococoa.cocoa.foundation.NSAutoreleasePool)].new()
main    Foundation.getClass - calling objc_getClass(NSAutoreleasePool)
main    Foundation.send - sending (ID) [ID 0x7fff7104c498].new()
main    NSObjectInvocationHandler.<init> - Creating NSObjectInvocationHandler
for id [ID 0x10140ebc0], javaclass class
org.rococoa.cocoa.foundation.NSAutoreleasePool. retain = false, retainCount = 1
main    Foundation.getClass - calling objc_getClass(NSObject)
main    NSObjectInvocationHandler.<init> - Creating NSObjectInvocationHandler
for id [ID 0x7fff705da4a8], javaclass interface
org.rococoa.NSObject$_Class. retain = false, retainCount = -1
main    Foundation.getClass - calling objc_getClass(NSThread)
Thread- Foundation.getClass - calling objc_getClass(QTMovie)
Thread- NSObjectInvocationHandler.<init> - Creating
NSObjectInvocationHandler for id [ID 0x7fff70ec2928], javaclass interface
org.rococoa.cocoa.qtkit.QTMovie$_Class. retain = true, retainCount = -1
Thread- Foundation.send - sending (boolean) [ID 0x7fff710524d8].isMainThread()
Thread- Foundation.cfRetain - calling cfRetain([ID 0x7fff70ec2928])
Thread- Foundation.getClass - calling objc_getClass(NSDictionary)
Thread- NSObjectInvocationHandler.<init> - Creating
NSObjectInvocationHandler for id [ID 0x7fff705da048], javaclass interface
org.rococoa.cocoa.foundation.NSDictionary$_Class. retain = false,
retainCount = -1
Thread- Foundation.getClass - calling objc_getClass(NSArray)
Thread- NSObjectInvocationHandler.<init> - Creating
NSObjectInvocationHandler for id [ID 0x7fff705d9d28], javaclass interface
org.rococoa.cocoa.foundation.NSArray$_Class. retain = false, retainCount = -1
main    NSObjectInvocationHandler.invoke - invoking [_Class [ID
0x7fff70ec2928]].movieWithFile_error(/Users/paulloy/Documents/workspace-gc/rococ
oa/rococoa/rococoa-cocoa/NOSUCH,
org.rococoa.NSObjectByReference@11be51)
main    Foundation.send - sending (boolean) [ID 0x7fff710524d8].isMainThread()
Thread- Foundation.send - sending (QTMovie) [ID
0x7fff70ec2928].movieWithFile:error:(/Users/paulloy/Documents/workspace-gc/rococ
oa/rococoa/rococoa-cocoa/NOSUCH,
org.rococoa.IDByReference@1014b1)
Thread- Foundation.send - sending (ID) [ID 0x1001155d0].autorelease()
Invalid memory access of location 0x0 rip=0x7fff87cc0340

/bin/sh: line 1:  5930 Segmentation fault     
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java
-jar
/var/folders/sZ/sZS0ADi2HlOY-6BxwCXt4k+++TI/-Tmp-/surefirebooter2639509870858234
768.jar
/var/folders/sZ/sZS0ADi2HlOY-6BxwCXt4k+++TI/-Tmp-/surefire3501010980469964977tmp
/var/folders/sZ/sZS0ADi2HlOY-6BxwCXt4k+++TI/-Tmp-/surefire4648069105603304709tmp
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to
/Users/paulloy/Documents/workspace-gc/rococoa/rococoa/rococoa-cocoa/target/suref
ire-reports
for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Mon Oct 05 23:54:51 BST 2009
[INFO] Final Memory: 26M/80M
[INFO] ------------------------------------------------------------------------

*Java version*:

java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)

*OSX*: snow leopard

Original issue reported on code.google.com by ketera...@gmail.com on 5 Oct 2009 at 10:59

GoogleCodeExporter commented 9 years ago
So initial problem was no testdata directory. Did this not get copied from the
dev.java.net repo?

But even with the testdata, I now get:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Rococoa Cocoa Mappings
[INFO]    task-segment: [test]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [dependency:copy {execution: copy}]
[INFO] Configured Artifact: org.rococoa:rococoa-core:0.5:dylib
[INFO] org.rococoa:rococoa-core:0.5:dylib already exists in
/Users/paulloy/Documents/workspace-gc/rococoa/rococoa/rococoa-cocoa
[INFO] [resources:testResources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
/Users/paulloy/Documents/workspace-gc/rococoa/rococoa/rococoa-cocoa/target/suref
ire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.rococoa.cocoa.qtkit.QTMovieTest
main    RococoaTestCase.logVersions - Running with JAVA_HOME = null, java.version =
1.6.0_15, sizeof(Pointer) = 8
main    Foundation.<clinit> - Initializing Foundation
main    Foundation.<clinit> - exit initializing Foundation
main    Rococoa.create - creating [NSAutoreleasePool
(org.rococoa.cocoa.foundation.NSAutoreleasePool)].new()
main    Foundation.getClass - calling objc_getClass(NSAutoreleasePool)
main    Foundation.send - sending (ID) [ID 0x7fff7104c498].new()
main    NSObjectInvocationHandler.<init> - Creating NSObjectInvocationHandler for 
id [ID
0x100114d60], javaclass class org.rococoa.cocoa.foundation.NSAutoreleasePool. 
retain
= false, retainCount = 1
main    Foundation.getClass - calling objc_getClass(NSObject)
main    NSObjectInvocationHandler.<init> - Creating NSObjectInvocationHandler for 
id [ID
0x7fff705da4a8], javaclass interface org.rococoa.NSObject$_Class. retain = 
false,
retainCount = -1
main    Foundation.getClass - calling objc_getClass(NSThread)
Thread- Foundation.getClass - calling objc_getClass(QTMovie)
Thread- NSObjectInvocationHandler.<init> - Creating NSObjectInvocationHandler 
for id
[ID 0x7fff70ec2928], javaclass interface org.rococoa.cocoa.qtkit.QTMovie$_Class.
retain = true, retainCount = -1
Thread- Foundation.send - sending (boolean) [ID 0x7fff710524d8].isMainThread()
Thread- Foundation.cfRetain - calling cfRetain([ID 0x7fff70ec2928])
Thread- Foundation.getClass - calling objc_getClass(NSDictionary)
Thread- NSObjectInvocationHandler.<init> - Creating NSObjectInvocationHandler 
for id
[ID 0x7fff705da048], javaclass interface
org.rococoa.cocoa.foundation.NSDictionary$_Class. retain = false, retainCount = 
-1
Thread- Foundation.getClass - calling objc_getClass(NSArray)
Thread- NSObjectInvocationHandler.<init> - Creating NSObjectInvocationHandler 
for id
[ID 0x7fff705d9d28], javaclass interface 
org.rococoa.cocoa.foundation.NSArray$_Class.
retain = false, retainCount = -1
main    NSObjectInvocationHandler.invoke - invoking [_Class [ID
0x7fff70ec2928]].movieWithFile_error(/Users/paulloy/Documents/workspace-gc/rococ
oa/rococoa/rococoa-cocoa/NOSUCH,
org.rococoa.NSObjectByReference@1145a1)
main    Foundation.send - sending (boolean) [ID 0x7fff710524d8].isMainThread()
Thread- Foundation.send - sending (QTMovie) [ID
0x7fff70ec2928].movieWithFile:error:(/Users/paulloy/Documents/workspace-gc/rococ
oa/rococoa/rococoa-cocoa/NOSUCH,
org.rococoa.IDByReference@113601)
Thread- Foundation.send - sending (ID) [ID 0x101415e10].autorelease()
main    NSObjectInvocationHandler.<init> - Creating NSObjectInvocationHandler for 
id [ID
0x100106130], javaclass interface org.rococoa.NSObject. retain = true, 
retainCount = -1
main    Foundation.cfRetain - calling cfRetain([ID 0x100106130])
main    NSObjectInvocationHandler.invoke - invoking [NSObject [ID 
0x100106130]].id()
main    NSObjectInvocationHandler.<init> - Creating NSObjectInvocationHandler for 
id [ID
0x100106130], javaclass interface org.rococoa.cocoa.foundation.NSError. retain =
true, retainCount = -1
main    Foundation.cfRetain - calling cfRetain([ID 0x100106130])
main    Foundation.getClass - calling objc_getClass(NSError)
main    NSObjectInvocationHandler.<init> - Creating NSObjectInvocationHandler for 
id [ID
0x7fff7104d7f8], javaclass interface 
org.rococoa.cocoa.foundation.NSError$_Class.
retain = false, retainCount = -1
main    NSObjectInvocationHandler.invoke - invoking [NSError [ID 
0x100106130]].code()
main    Foundation.send - sending (NSInteger) [ID 0x100106130].code()
Invalid memory access of location 0x13 rip=0x7fff87cc033c

/bin/sh: line 1:  5980 Segmentation fault     
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -jar
/var/folders/sZ/sZS0ADi2HlOY-6BxwCXt4k+++TI/-Tmp-/surefirebooter2121534107006683
905.jar
/var/folders/sZ/sZS0ADi2HlOY-6BxwCXt4k+++TI/-Tmp-/surefire2592893246856478589tmp
/var/folders/sZ/sZS0ADi2HlOY-6BxwCXt4k+++TI/-Tmp-/surefire7385466267860695363tmp
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to
/Users/paulloy/Documents/workspace-gc/rococoa/rococoa/rococoa-cocoa/target/suref
ire-reports
for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Tue Oct 06 00:03:07 BST 2009
[INFO] Final Memory: 26M/81M
[INFO] ------------------------------------------------------------------------

Original comment by ketera...@gmail.com on 5 Oct 2009 at 11:04

GoogleCodeExporter commented 9 years ago

Original comment by ketera...@gmail.com on 5 Oct 2009 at 11:33

GoogleCodeExporter commented 9 years ago
I've the same problem with snow leopard:

Invalid memory access of location 0x162b9a9 rip=0x7fff84e96160

Are there any trick to solve this problem?

Original comment by danielep...@gmail.com on 3 Apr 2010 at 10:19

GoogleCodeExporter commented 9 years ago

Original comment by dkocher@sudo.ch on 31 Aug 2010 at 11:38

GoogleCodeExporter commented 9 years ago
I tried this on OSX 10.7 and have the same problem. Please fix this as soon as 
possible or describe some workaround. I have to integrate Webcams etc. on osx 
10.7 in Java 1.6 64bit. Please help :-)

Original comment by mail4...@gmail.com on 6 Nov 2011 at 5:17