maven-surefire-plugin error during build

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Re: maven-surefire-plugin error during build

Postby jupo » Mon Apr 01, 2013 10:16 pm

:D yea, i figured HashMaps and Maps would work that way. And yes, the output always seems to stop exactly at that line where we assign mimes.

Anyways, I tried commenting out that line as you suggested:
Code: Select all
// XXX Outcommented just to see what happens...
// RendererConfiguration.loadRendererConfigurations(configuration);

and the results were actually kinda nice! :D the application stays open for one, and the rest of the application seems to fire up without a hiccup...

There's just a null pointer exception at the end and it doesnt recognize any renderers (my ps3). All perfectly logical I guess.
Here's the resulting log: http://pastebin.com/FUFV8Z02

hmm.. it's strange to me though, because
Code: Select all
defaultConf = new RendererConfiguration();
is in a try statement, and inside there is where it seems to stop. If it fails there shouldnt it just proceed to the exception?
jupo
 
Posts: 12
Joined: Sat Mar 30, 2013 12:39 pm

Re: maven-surefire-plugin error during build

Postby Raptor399 » Tue Apr 02, 2013 6:51 am

jupo wrote:hmm.. it's strange to me though, because
Code: Select all
defaultConf = new RendererConfiguration();
is in a try statement, and inside there is where it seems to stop. If it fails there shouldnt it just proceed to the exception?

Exactly!

There also is a try / catch for Throwable around the whole init() method, which catches both errors and exceptions.
Silent failure should not be an option. :shock:
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: maven-surefire-plugin error during build

Postby jupo » Tue Apr 02, 2013 3:05 pm

hmm... Since I only use PS3 as a renderer, would it be an option to bypass the whole RendererConfiguration deal and kindof "hardcode" it to only recognize PS3?
jupo
 
Posts: 12
Joined: Sat Mar 30, 2013 12:39 pm

Re: maven-surefire-plugin error during build

Postby Raptor399 » Wed Apr 03, 2013 8:59 pm

jupo wrote:hmm... Since I only use PS3 as a renderer, would it be an option to bypass the whole RendererConfiguration deal and kindof "hardcode" it to only recognize PS3?

Not really. A lot of code requires a RendererConfiguration object, so you'll run into trouble sooner or later.
I think there is more to gain by figuring out why your build stops working. It is probably something dead simple, like not having enough memory or so. :-)

Have you tried running the application in debug mode in Eclipse (see BUILD.md, instructions near the bottom)?
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: maven-surefire-plugin error during build

Postby chocolateboy » Sun Apr 07, 2013 3:10 pm

jupo wrote:
Code: Select all
sudo mvn3 com.savage7.maven.plugins:maven-external-dependency-plugin:resolve-external
sudo mvn3 com.savage7.maven.plugins:maven-external-dependency-plugin:install-external


sudo mvn3 -e -X package


Don't use sudo. Don't do anything as root, unless there's absolutely no other option.

If it's a new system, you may be better off starting again from scratch, since broken permissions can be a pain to diagnose and repair.

http://askubuntu.com/questions/16178/wh ... un-as-root
http://ubuntuforums.org/showthread.php?t=1877557
chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: maven-surefire-plugin error during build

Postby jupo » Mon Apr 08, 2013 5:24 pm

@Chocolateboy,

Yea, at first I was trying to do things with sudo (even logged in as su), but I read some of your posts around the forum and realized I shouldn't do that. I re-flashed my SD card to a fresh Ubuntu several times, trying different versions of Java and such. Sadly I got stuck and havent put so much time into this project for the last week.

As raptor suggested, I tried running the build through Eclipse, but unfortunately Eclipse is a bit heavy for that device and crashes before I can try D:.
jupo
 
Posts: 12
Joined: Sat Mar 30, 2013 12:39 pm

Re: maven-surefire-plugin error during build

Postby darwin » Mon Apr 22, 2013 3:19 am

Encountered the same PMS bug, it terminates without any error:

Code: Select all
INFO  2013-04-21 22:03:25.506 [main] GUI environment not available
INFO  2013-04-21 22:03:25.511 [main] Switching to console mode
INFO  2013-04-21 22:03:25.517 [main] Starting PS3 Media Server 1.81.0
INFO  2013-04-21 22:03:25.519 [main] by shagrath / 2008-2013
INFO  2013-04-21 22:03:25.521 [main] http://ps3mediaserver.org
INFO  2013-04-21 22:03:25.522 [main] https://github.com/ps3mediaserver/ps3mediaserver
INFO  2013-04-21 22:03:25.525 [main]
INFO  2013-04-21 22:03:25.527 [main] Build: e260e7339 (2013-04-21)
INFO  2013-04-21 22:03:25.529 [main] Java: 1.6.0_27-Sun Microsystems Inc.
INFO  2013-04-21 22:03:25.531 [main] OS: Linux arm 3.1.10-l4t.r16.01
INFO  2013-04-21 22:03:25.533 [main] Encoding: ANSI_X3.4-1968
INFO  2013-04-21 22:03:25.535 [main] Memory: 288 MB
INFO  2013-04-21 22:03:25.537 [main]
INFO  2013-04-21 22:03:25.539 [main] Working directory: /home/trim/Desktop/pms-1.81.0
INFO  2013-04-21 22:03:25.573 [main] Temp directory: /tmp/ps3mediaserver
INFO  2013-04-21 22:03:25.575 [main] Logging config file: /home/trim/Desktop/pms-1.81.0/logback.headless.xml
INFO  2013-04-21 22:03:25.578 [main] debug.log: /home/trim/Desktop/pms-1.81.0/debug.log
INFO  2013-04-21 22:03:25.580 [main]
INFO  2013-04-21 22:03:25.582 [main] Profile directory: /home/trim/.config/PMS
INFO  2013-04-21 22:03:25.583 [main] Profile path: /home/trim/.config/PMS/PMS.conf
INFO  2013-04-21 22:03:25.587 [main] Profile permissions: rw
INFO  2013-04-21 22:03:25.589 [main] Profile name: trim-armhf
INFO  2013-04-21 22:03:25.591 [main]


Code: Select all
[trim@trim-armhf 38] ~/Desktop/pms > cat /proc/cpuinfo
Processor       : ARMv7 Processor rev 0 (v7l)
processor       : 0
BogoMIPS        : 1987.37

processor       : 1
BogoMIPS        : 1987.37

Features        : swp half thumb fastmult vfp edsp thumbee vfpv3 vfpv3d16 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x1
CPU part        : 0xc09
CPU revision    : 0

Hardware        : trimslice
Revision        : 0000
Serial          : 0000000000000000





Code: Select all
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.1.10-l4t.r16.01 (val@devel) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #497 SMP PREEMPT Thu Oct 18 17:18:54 IST 2012
[    0.000000] CPU: ARMv7 Processor [411fc090] revision 0 (ARMv7), cr=10c5387d
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: trimslice
[    0.000000] Ignoring unrecognised tag 0x54410008
[    0.000000] Tegra reserved memory:
[    0.000000] LP0:                    00000000 - 00000000
[    0.000000] Bootloader framebuffer: 00000000 - 00000000
[    0.000000] Framebuffer:            2e800000 - 2effffff
[    0.000000] 2nd Framebuffer:        2f000000 - 2fffffff
[    0.000000] Carveout:               30000000 - 3fffffff
[    0.000000] Vpr:                    00000000 - 00000000
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] On node 0 totalpages: 157696
[    0.000000] free_area_init_node: node 0, pgdat c0a25f80, node_mem_map c0b27000
[    0.000000]   Normal zone: 1296 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131824 pages, LIFO batch:31
[    0.000000]   HighMem zone: 752 pages used for memmap
[    0.000000]   HighMem zone: 23824 pages, LIFO batch:3
[    0.000000] Tegra SKU: 8 Rev: A03 CPU Process: 1 Core Process: 1 Speedo ID: 1
[    0.000000] Tegra Revision: A03 prime SKU: 0x8 CPU Process: 1 Core Process: 1
[    0.000000] L310 cache controller enabled
[    0.000000] l2x0: 8 ways, CACHE_ID 0x410000c4, AUX_CTRL 0x7e080001, Cache size: 1048576 B
[    0.000000] PERCPU: Embedded 8 pages/cpu @c1330000 s10848 r8192 d13728 u32768
[    0.000000] pcpu-alloc: s10848 r8192 d13728 u32768 alloc=8*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 155648
[    0.000000] Kernel command line: mem=384M@0M mem=512M@512M nvmem=128M@384M vmalloc=248M video=tegrafb rgb_filter=no hdmi_filter=no console=ttyS0,115200n8 rw root=/
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] allocated 4194304 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 384MB 232MB = 616MB total
[    0.000000] Memory: 607204k/607204k available, 310300k reserved, 98304K highmem
[    0.000000] Virtual kernel memory layout:
Last edited by Raptor399 on Mon Apr 22, 2013 6:29 am, edited 1 time in total.
Reason: Edited for code fragments
darwin
 
Posts: 2
Joined: Mon Apr 22, 2013 3:14 am

Re: maven-surefire-plugin error during build

Postby darwin » Mon Apr 22, 2013 7:05 am

In MediaInfo.java, I commented out NativeLibrary.getInstance("zen"); as it seems to fail in that w/o throwing LinkageError. Program just exits.

Code: Select all
      // libmediainfo for Linux depends on libzen
      if (!Platform.isWindows() && !Platform.isMac()) {
            /*
         try {
            // We need to load dependencies first, because we know where our native libs are (e.g. Java Web Start Cache).
            // If we do not, the system will look for dependencies, but only in the library path.
            NativeLibrary.getInstance("zen");
         } catch (LinkageError e) {
            LOGGER.warn("Error loading libzen: " + e.getMessage());
         }
            */
      }

Then the program now continues:

Code: Select all
INFO  2013-04-22 01:58:05.492 [main] GUI environment not available
INFO  2013-04-22 01:58:05.498 [main] Switching to console mode
INFO  2013-04-22 01:58:05.506 [main] Starting PS3 Media Server 1.82.0-SNAPSHOT
INFO  2013-04-22 01:58:05.508 [main] by shagrath / 2008-2013
INFO  2013-04-22 01:58:05.510 [main] http://ps3mediaserver.org
INFO  2013-04-22 01:58:05.512 [main] https://github.com/ps3mediaserver/ps3mediaserver
INFO  2013-04-22 01:58:05.514 [main]
INFO  2013-04-22 01:58:05.516 [main] Build: 8db50f115 (2013-04-21)
INFO  2013-04-22 01:58:05.518 [main] Java: 1.6.0_27-Sun Microsystems Inc.
INFO  2013-04-22 01:58:05.521 [main] OS: Linux arm 3.1.10-l4t.r16.01
INFO  2013-04-22 01:58:05.523 [main] Encoding: ANSI_X3.4-1968
INFO  2013-04-22 01:58:05.525 [main] Memory: 288 MB
INFO  2013-04-22 01:58:05.527 [main]
INFO  2013-04-22 01:58:05.529 [main] Working directory: /home/trim/Desktop/pms-1.82.0-SNAPSHOT
INFO  2013-04-22 01:58:05.562 [main] Temp directory: /tmp/ps3mediaserver
INFO  2013-04-22 01:58:05.564 [main] Logging config file: /home/trim/Desktop/pms-1.82.0-SNAPSHOT/logback.headless.xml
INFO  2013-04-22 01:58:05.568 [main] debug.log: /home/trim/Desktop/pms-1.82.0-SNAPSHOT/debug.log
INFO  2013-04-22 01:58:05.570 [main]
INFO  2013-04-22 01:58:05.572 [main] Profile directory: /home/trim/.config/PMS
INFO  2013-04-22 01:58:05.574 [main] Profile path: /home/trim/.config/PMS/PMS.conf
INFO  2013-04-22 01:58:05.579 [main] Profile permissions: rw
INFO  2013-04-22 01:58:05.581 [main] Profile name: trim-armhf
INFO  2013-04-22 01:58:05.583 [main]
INFO  2013-04-22 01:58:12.165 [main] Loading MediaInfo library


But it failed again and exits on Native.loadLibrary():

Code: Select all
   // Internal stuff
   interface MediaInfoDLL_Internal extends Library {
      MediaInfoDLL_Internal INSTANCE = (MediaInfoDLL_Internal) Native.loadLibrary(
         libraryName,
         MediaInfoDLL_Internal.class,
         singletonMap(OPTION_FUNCTION_MAPPER, new FunctionMapper() {


I already installed both libzen and libmediainfo and run ldconfig:

Code: Select all
[trim@trim-armhf 123] ~/Desktop/pms-1.82.0-SNAPSHOT > ldd /usr/lib/libzen.so
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x400ed000)
        libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x40108000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x401af000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x40219000)
        /lib/ld-linux-armhf.so.3 (0x40011000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x4006e000)
[02:01 - 0.00]
[trim@trim-armhf 124] ~/Desktop/pms-1.82.0-SNAPSHOT > ldd /usr/lib/libmediainfo.so
        libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x404a3000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x404bb000)
        libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x404d6000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x4057d000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x405e7000)
        /lib/ld-linux-armhf.so.3 (0x4005b000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x407bc000)


Note that libmediainfo seems not to depend on libzen based on ldd.

My setup is installed git pms from source and installed and build using mvn

Then do remote debug:

Code: Select all
java -Xdebug -Xrunjdwp:transport=dt_socket,address=8998,server=y -Djna.nosys=true -jar pms.jar

So far native library loading seems to fail...
darwin
 
Posts: 2
Joined: Mon Apr 22, 2013 3:14 am

Re: maven-surefire-plugin error during build

Postby Raptor399 » Sat Apr 27, 2013 10:45 am

Thank you for the extensive reports!

Have you tried replacing the "mediainfolibrary.dylib" with another version?
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Previous

Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 4 guests