[Paraview] Making a package for Nix system

Yves Rogez yves.rogez at univ-grenoble-alpes.fr
Tue Mar 7 10:29:34 EST 2017


Hi Mathieu,

for info, here is the backtrace for the PV5.2 bug with seg fault when 
disconnecting (sorry it was stuck in my draft e-mails since a while :-).

I did not find the time to rebuild with the last version. I will try to 
do so soon... I think I have to rebuild it from source as the basic goal 
is to package it on nix system (which uses internal nix package 
dependencies). I currently use 5.3 RC2 for my developments and it works 
completely fine on any system (not including nix :-).

Bye,

Yves


Le 10/02/2017 à 15:14, Mathieu Westphal a écrit :
> Hi Yves
>
> In order to test with the last version, you do not need to compile, 
> you can download a nightly build on the ParaView download page.
> (Highest number means newer).
> Let me know how it goes.
>
> I will defer to others regarding the packaging question.
>
>
> Mathieu Westphal
>
> On Fri, Feb 10, 2017 at 9:44 AM, Yves Rogez 
> <yves.rogez at univ-grenoble-alpes.fr 
> <mailto:yves.rogez at univ-grenoble-alpes.fr>> wrote:
>
>     Hi Mathieu :-)
>
>     yes it's for the case of multi-server (actually single client)
>     option. I will get the source from the git repository master a
>     give it another try.
>
>     OK for the debug, I can compile it again in debug but it takes a
>     long time on my little test laptop so I was wondering maybe some
>     other tricky test on the release version ;-) I will let the debug
>     build run this week-end and send a quick report.
>
>     By the way, do you plan to support nix packages build in the
>     future for Paraview ? The problem I will encounter now is that
>     Paraview depends on video card driver OpenGL libs so that to get
>     good performances, I will break the nix packages philosophy of
>     being independent from the operating system specific kernel...
>
>     Thanks for the answer!
>
>     Yves
>
>
>     Le 10/02/2017 à 03:48, Mathieu Westphal a écrit :
>>     Hi Yves !
>>
>>     Do you happen to use the multi-clients/multi-server option ? we
>>     recently corrected a bug that sound like yours, will be fixed in
>>     ParaView 5.3.
>>     In any case, you may want to try with the last version of
>>     paraview master.
>>
>>     In order to debug, the first step would be to build ParaView in
>>     Debug, and then run it with a debuger, in order to get a
>>     backtrace of the segfault.
>>
>>     Best Regards,
>>
>>     Mathieu Westphal
>>
>>     On Thu, Feb 9, 2017 at 6:09 PM, Yves Rogez
>>     <yves.rogez at univ-grenoble-alpes.fr
>>     <mailto:yves.rogez at univ-grenoble-alpes.fr>> wrote:
>>
>>         Dear Paraview team,
>>
>>         we are currently studying the opportunity of migrating our
>>         computing grid environment from "module" system to "nix"
>>         packaging system (https://nixos.org/). In that purpose, I'm
>>         trying to compile and pack Paraview 5.2.0 with its
>>         dependencies with nix packages
>>         (https://nixos.org/nixos/packages.html
>>         <https://nixos.org/nixos/packages.html>).
>>
>>         To do so, I first installed nixos on a local laptop and give
>>         it a try. The main issue I encountered was to update my nixos
>>         kernel with native videocard drivers but OK, that's done.
>>         Then using the attached nix package script (a slight
>>         evolution on paraview 4.0.1 existing one), I could have
>>         packetized 5.2.0 succesfully and it runs very well.
>>
>>         However, I still get an error when I'm trying to use MPI
>>         functionality. The MPI itself with parallelism works, as I
>>         can run a auto-MPI session without problem. The issue occurs
>>         when *servermanager.Disconnect() function is called => Seg
>>         fault* with no more info... The bad thing is that the
>>         Disconnect function is called every time I would like to
>>         connect to a server (to disconnect the built-in one). This is
>>         also the case when passing the pvserver in command-line argument.
>>
>>         Do you have an idea of the cause of this seg fault ? Maybe
>>         could you help me find any useful test to debug this ?
>>
>>         Thanks in advance for your support,
>>
>>         Best regards,
>>
>>         Yves
>>
>>
>>         -- 
>>         Yves Rogez
>>
>>         *IPAG*
>>         /Institut de Planétologie et d'Astrophysique de Grenoble /
>>
>>
>>         _______________________________________________
>>         Powered by www.kitware.com <http://www.kitware.com>
>>
>>         Visit other Kitware open-source projects at
>>         http://www.kitware.com/opensource/opensource.html
>>         <http://www.kitware.com/opensource/opensource.html>
>>
>>         Please keep messages on-topic and check the ParaView Wiki at:
>>         http://paraview.org/Wiki/ParaView
>>         <http://paraview.org/Wiki/ParaView>
>>
>>         Search the list archives at:
>>         http://markmail.org/search/?q=ParaView
>>         <http://markmail.org/search/?q=ParaView>
>>
>>         Follow this link to subscribe/unsubscribe:
>>         http://public.kitware.com/mailman/listinfo/paraview
>>         <http://public.kitware.com/mailman/listinfo/paraview>
>>
>>
>
>     -- 
>     Yves Rogez
>
>     *IPAG*
>     /Institut de Planétologie et d'Astrophysique de Grenoble /
>     Bat D de Physique - BP. 53 - 38041 Grenoble - FRANCE
>
>     tel : +33 (0)4 76 63 52 80 <tel:+33%204%2076%2063%2052%2080>
>     lab : +33 (0)4 76 63 57 60 <tel:+33%204%2076%2063%2057%2060>
>
>

-- 
Yves Rogez

*IPAG*
/Institut de Planétologie et d'Astrophysique de Grenoble /
Bat D de Physique - BP. 53 - 38041 Grenoble - FRANCE

tel : +33 (0)4 76 63 52 80
lab : +33 (0)4 76 63 57 60
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170307/04bad5d6/attachment.html>
-------------- next part --------------
#0  0x00007fffeb7de320 in classify_object_over_fdes () from /nix/store/kk71vkqipf30qc165718jmp0s8cggn2y-glibc-2.24/lib64/libgcc_s.so.1
#1  0x00007fffeb7de829 in search_object () from /nix/store/kk71vkqipf30qc165718jmp0s8cggn2y-glibc-2.24/lib64/libgcc_s.so.1
#2  0x00007fffeb7df0c2 in _Unwind_Find_FDE () from /nix/store/kk71vkqipf30qc165718jmp0s8cggn2y-glibc-2.24/lib64/libgcc_s.so.1
#3  0x00007fffeb7dbb16 in uw_frame_state_for () from /nix/store/kk71vkqipf30qc165718jmp0s8cggn2y-glibc-2.24/lib64/libgcc_s.so.1
#4  0x00007fffeb7dcd60 in uw_init_context_1 () from /nix/store/kk71vkqipf30qc165718jmp0s8cggn2y-glibc-2.24/lib64/libgcc_s.so.1
#5  0x00007fffeb7dd22e in _Unwind_RaiseException () from /nix/store/kk71vkqipf30qc165718jmp0s8cggn2y-glibc-2.24/lib64/libgcc_s.so.1
#6  0x00007fffebd72f5b in __cxa_throw () from /nix/store/jar52969wyf10sh2wj62ipfjiw7xaq2j-gcc-5.4.0-lib/lib/libstdc++.so.6
#7  0x00007ffff65e863e in pqFindDataSelectionDisplayFrame::setView(pqView*) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkpqComponents-pv5.2.so.1
#8  0x00007ffff264d2f0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtCore.so.4
#9  0x00007ffff672f5a2 in pqActiveObjects::viewChanged(pqView*) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkpqComponents-pv5.2.so.1
#10 0x00007ffff6558eee in pqActiveObjects::triggerSignals() ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkpqComponents-pv5.2.so.1
#11 0x00007ffff264d2f0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtCore.so.4
#12 0x00007ffff5fea402 in pqServerManagerModel::preItemRemoved(pqServerManagerModelItem*) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkpqCore-pv5.2.so.1
#13 0x00007ffff5fb3a51 in pqServerManagerModel::onProxyUnRegistered(QString const&, QString const&, vtkSMProxy*) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkpqCore-pv5.2.so.1
#14 0x00007ffff264d2f0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtCore.so.4
#15 0x00007ffff5feb53c in pqServerManagerObserver::proxyUnRegistered(QString const&, QString const&, vtkSMProxy*) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkpqCore-pv5.2.so.1
#16 0x00007ffff5fb7845 in pqServerManagerObserver::proxyUnRegistered(vtkObject*, unsigned long, void*, void*, vtkCommand*) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkpqCore-pv5.2.so.1
#17 0x00007ffff5feb94b in pqServerManagerObserver::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkpqCore-pv5.2.so.1
#18 0x00007ffff264d2f0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtCore.so.4
#19 0x00007ffff2d37925 in vtkQtConnection::EmitExecute(vtkObject*, unsigned long, void*, void*, vtkCommand*) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkGUISupportQt-pv5.2.so.1
#20 0x00007ffff2d14a33 in vtkQtConnection::Execute(vtkObject*, unsigned long, void*) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkGUISupportQt-pv5.2.so.1
#21 0x00007fffec574ab9 in vtkCallbackCommand::Execute(vtkObject*, unsigned long, void*) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkCommonCore-pv5.2.so.1
#22 0x00007fffec606439 in vtkSubjectHelper::InvokeEvent(unsigned long, void*, vtkObject*) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkCommonCore-pv5.2.so.1
#23 0x00007ffff3da39a3 in vtkSMSessionProxyManager::UnRegisterProxy(char const*, char const*, vtkSMProxy*) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkPVServerManagerCore-pv5.2.so.1
#24 0x00007ffff3da4006 in vtkSMSessionProxyManager::UnRegisterProxies() ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkPVServerManagerCore-pv5.2.so.1
#25 0x00007ffff3d96589 in vtkSMSession::Disconnect(vtkSMSession*) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkPVServerManagerCore-pv5.2.so.1
#26 0x00007ffff3d96762 in vtkSMSession::Disconnect(long long) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkPVServerManagerCore-pv5.2.so.1
#27 0x00007ffff5f6f0a2 in pqObjectBuilder::removeServer(pqServer*) ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkpqCore-pv5.2.so.1
#28 0x00007ffff7ae137a in pqServerDisconnectReaction::disconnectFromServerWithWarning() ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkpqApplicationComponents-pv5.2.so.1
#29 0x00007ffff7ae1584 in pqServerDisconnectReaction::onTriggered() ()
   from /nix/store/vjyv0zvh3jglspi9n9xw4pd6359bnm6s-paraview-5.2.0/lib/paraview-5.2/libvtkpqApplicationComponents-pv5.2.so.1
#30 0x00007ffff264d2f0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtCore.so.4
#31 0x00007ffff6e95de2 in QAction::triggered(bool) () from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtGui.so.4
#32 0x00007ffff6e97153 in QAction::activate(QAction::ActionEvent) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtGui.so.4
#33 0x00007ffff72514f3 in ?? () from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtGui.so.4
#34 0x00007ffff7251644 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtGui.so.4
#35 0x00007ffff73174ba in QToolButton::mouseReleaseEvent(QMouseEvent*) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtGui.so.4
#36 0x00007ffff6ef22a0 in QWidget::event(QEvent*) () from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtGui.so.4
#37 0x00007ffff6e9bdbc in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtGui.so.4
#38 0x00007ffff6ea2dd6 in QApplication::notify(QObject*, QEvent*) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtGui.so.4
#39 0x00007ffff263932d in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtCore.so.4
#40 0x00007ffff6ea23dd in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)
    () from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtGui.so.4
#41 0x00007ffff6f1c422 in ?? () from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtGui.so.4
#42 0x00007ffff6f1adfd in QApplication::x11ProcessEvent(_XEvent*) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtGui.so.4
#43 0x00007ffff6f43e92 in ?? () from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtGui.so.4
#44 0x00007fffdf3d2d47 in g_main_context_dispatch () from /nix/store/sn1qh8arj193gpxxl6s3gw6hvh4277ks-glib-2.50.2/lib/libglib-2.0.so.0
#45 0x00007fffdf3d2fa0 in g_main_context_iterate.isra () from /nix/store/sn1qh8arj193gpxxl6s3gw6hvh4277ks-glib-2.50.2/lib/libglib-2.0.so.0
#46 0x00007fffdf3d304c in g_main_context_iteration () from /nix/store/sn1qh8arj193gpxxl6s3gw6hvh4277ks-glib-2.50.2/lib/libglib-2.0.so.0
#47 0x00007ffff26694c4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtCore.so.4
#48 0x00007ffff6f43f66 in ?? () from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtGui.so.4
#49 0x00007ffff2637ba1 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtCore.so.4
#50 0x00007ffff2637f15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtCore.so.4
#51 0x00007ffff263d899 in QCoreApplication::exec() () from /nix/store/hw18dgxdq6c2bls5n3ffbmwxzn0m0c80-qt-4.8.7/lib/libQtCore.so.4
#52 0x0000000000407d01 in main ()


More information about the ParaView mailing list