Skip to content

Instantly share code, notes, and snippets.

[....]
Loading /mnt/ssd/datasets/algo/office_vittorio_100queue/office-vittorio-100queue-plys/cloud-0001.ply....==4687== Invalid read of size 4
==4687== at 0x476AE2: PointMatcherIO<double>::loadPLY(std::istream&) (IO.cpp:1441)
==4687== by 0x4788EB: PointMatcherIO<double>::loadPLY(std::string const&) (IO.cpp:1174)
==4687== by 0x478B3A: PointMatcher<double>::DataPoints::load(std::string const&) (IO.cpp:376)
==4687== by 0x42DAA2: main (test.cpp:48)
==4687== Address 0x6244ec8 is not stack'd, malloc'd or (recently) free'd
==4687==
#include "pointmatcher/PointMatcher.h"
#include <cassert>
#include <iostream>
#include <vector>
#include <string>
#include <stdexcept>
#include <algorithm>
#include "boost/filesystem.hpp"
#include <fstream>
using namespace boost::filesystem;
@ziparo
ziparo / gist:5e6af6a711e059dca283
Created August 7, 2014 12:00
Backtrace libpointmatcher
lgo@thinkpad1:~/icp_test/src/build$ gdb icptest
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
@ziparo
ziparo / gist:93f9d72690670213c0f4
Created August 6, 2014 17:33
Libpointmatcher throws this
/usr/local/include/eigen3/Eigen/src/Core/DenseCoeffsBase.h:337: Eigen::DenseCoeffsBase<Derived, 1>::Scalar& Eigen::DenseCoeffsBase
<Derived, 1>::operator()(Eigen::DenseCoeffsBase<Derived, 1>::Index, Eigen::DenseCoeffsBase<Derived, 1>::Index) [with Derived = Eigen
::Matrix<float, -0x00000000000000001, -0x00000000000000001>, Eigen::DenseCoeffsBase<Derived, 1>::Scalar = float, Eigen::DenseCoeffsB
ase<Derived, 1>::Index = long int]: Assertion `row >= 0 && row < rows() && col >= 0 && col < cols()' failed.
Aborted (core dumped)
NativeException (java.lang.RuntimeException: org.jruby.exceptions.RaiseException: Native Exception: 'class org.infinispan.CacheException'; Message: java.lang.IllegalStateException: ARJUNA016063: The transaction is not active!; StackTrace: org.infinispan.CacheException: java.lang.IllegalStateException: ARJUNA016063: The transaction is not active!
at org.infinispan.transaction.xa.XaTransactionTable.enlist(XaTransactionTable.java:114)
at org.infinispan.interceptors.TxInterceptor.enlist(TxInterceptor.java:307)
at org.infinispan.interceptors.TxInterceptor.enlistIfNeeded(TxInterceptor.java:270)
at org.infinispan.interceptors.TxInterceptor.enlistReadAndInvokeNext(TxInterceptor.java:264)
at org.infinispan.interceptors.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:260)
at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:60)
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
at org.infinispan.interceptors.base
09:49:47,136 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (Thread-115) ISPN000094: Received new cluster view: [vm48-11182|0] [vm48-11182]
09:49:47,209 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (Thread-115) ISPN000079: Cache local address is vm48-11182, physical addresses are [10.100.0.101:60488]
09:49:47,280 INFO [org.infinispan.jmx.CacheJmxRegistration] (Thread-115) ISPN000031: MBeans were successfully registered to the platform mbean server.
09:49:47,283 INFO [org.infinispan.distribution.wrappers.ReplCustomStatsInterceptor] (Thread-115) CustomStatsInterceptor Enabled!
09:49:47,291 WARN [org.infinispan.distribution.wrappers.ReplCustomStatsInterceptor] (Thread-115) Initializing the TransactionStatisticsRegistry
09:49:50,777 INFO [org.torquebox.core.runtime] (Thread-115) Created ruby runtime (ruby_version: RUBY1_8, compile_mode: JIT, app: 20120914144523, context: web) in 20.92s
10:43:42,787 WARN [com.arjuna.ats.arjuna] (Transaction Reaper) ARJUNA012117: Trans
08:33:59,934 ERROR [org.infinispan.transaction.TransactionCoordinator] (RubyThread-5664: :1) Error while processing prepare: Write skew detected on key da07741a-d3d5-4f55-a2b9-8f5c59d11d92:entries for transaction vm47-55382:10128. Actual{value={000b8aaf-d3c7-4821-aacf-e76bd9b5fe76=it.algo.geograph.domain.Post@47176258, 00b49019-59cb-4710-8dc4-b1cc8703f43b=it.algo.geograph.domain.Post@4ad0c8e2, 014df355-9082-43dc-9523-f0abfc3521d3=it.algo.geograph.domain.Post@2503b877, 02a605ef-c170-4620-a69e-3b0853a61210=it.algo.geograph.domain.Post@2aa08641, 03d44195-0226-4320-982a-3799bfbc0fd5=it.algo.geograph.domain.Post@5119b59, 03e4f4a9-92a8-45cd-8820-1ef7ef0afd02=it.algo.geograph.domain.Post@10b5801, 04101a37-e355-4f81-bbc7-2bf43df09fa8=it.algo.geograph.domain.Post@2f6e3b65, 0493e29b-1fe2-4364-baee-a90206e36fef=it.algo.geograph.domain.Post@47e6e79b, 04ae6480-5196-4c1a-99a2-29ce8b89e99c=it.algo.geograph.domain.Post@629741df, 0561456f-7ae0-4c7b-8ae9-166a174980b1=it.algo.geograph.domain.Post@3177215f, 0575bcc5-1073-44d9-84
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
            version="2.0">
   <persistence-unit name="geograph-persistence-unit" transaction-type="JTA">
       <provider>org.hibernate.ogm.jpa.HibernateOgmPersistence</provider>
       <properties>
           <property name="hibernate.transaction.manager_lookup_class"
                     value="org.hibernate.transaction.JBossTSStandaloneTransactionManagerLookup" />
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: geograph-persistence-unit] Unable to build EntityManagerFactory
   [junit]    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
   [junit]    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
   [junit]    at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
   [junit]    at org.hibernate.ogm.jpa.HibernateOgmPersistence.createEntityManagerFactory(HibernateOgmPersistence.java:92)
   [junit]    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
   [junit]    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
   [junit]    at org.cloudtm.framework.ogm.HibOgmTxManager.<clinit>(HibOgmTxManager.java:27)
   [junit]    ... 27 more
   [junit] Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.ogm.persister.Ogm
---------- How we create the entity manager: ------------
private static final EntityManagerFactory emf = Persistence.createEntityManagerFactory("geograph-persistence-unit");
----------- Error:------------
[6/5/12 5:41:08 PM] fabio cottefoglie: Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named geograph-persistence-unit
   [junit]    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:69)
   [junit]    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)