Christophe Diericx | 1 Feb 2010 20:06
Picon
Gravatar

Re: tellico on mac os x 10.6.2 (snow leopard)

Here's where I'm now (in my quest to getting tellico to work on Snow
Leopard / Mac OS X 10.6.2):

I got to the point where tellico builds and starts succesfully, but it
crashes (hard) when (for example) trying to open a collection or start
a new one (from a template).

What I did:

(starting with the XCode tools and a fresh, up-to-date macports:

sudo port install cmake
sudo port install kdebase4 taglib exempi
sudo chown -R mac ~/Library/Preferences/KDE

I downloaded the tellico tarball from the website (tellico-2.1.1.tar.bz2)

tar xvf tellico-2.1.1.tar.bz2
cd tellico-2.1.1
mkdir build
cd build
export QTDIR=/opt/local/libexec/qt4-mac
export CMAKE_PREFIX_PATH=$QTDIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib
cmake .. -DQT_QMAKE_EXECUTABLE=/opt/local/libexec/qt4-mac/bin/qmake
-DLIBEXSLT_LIBRARIES=/opt/local/lib/libexslt.dylib
-DLIBXSLT_INCLUDE_DIR=/opt/local/include
-DLIBXSLT_LIBRARIES=/opt/local/lib/libxslt.dylib
-DQT_QTSCRIPT_LIBRARY=/opt/local/libexec/qt4-mac/lib/QtScript.framework
(Continue reading)

Christophe Diericx | 1 Feb 2010 21:00
Picon
Gravatar

Re: tellico on mac os x 10.6.2 (snow leopard)

Some details...

Could this be related to this:
http://old.nabble.com/-Tellico-users--crash-in-2.0pre2-when-saving-edited-entry-td25307849.html
?

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib             	0x00007fff83964fe6 __kill + 10
1   libSystem.B.dylib             	0x00007fff83a05e32 abort + 83
2   QtCore                        	0x000000010230cff5
qt_message_output(QtMsgType, char const*) + 117
3   QtCore                        	0x000000010230d1d7
qt_message(QtMsgType, char const*, __va_list_tag*) + 183
4   QtCore                        	0x000000010230d39a qFatal(char
const*, ...) + 170
5                                 	0x0000000100181b5c
KSharedPtr<KService>::operator->() + 44
6                                 	0x00000001001807ab
Tellico::GUI::ImageWidget::~ImageWidget() + 155
7   QtCore                        	0x000000010235e95f
QObjectPrivate::deleteChildren() + 95
8   QtGui                         	0x000000010275e262 QWidget::~QWidget() + 498
9                                 	0x000000010017f076
Tellico::GUI::ImageFieldWidget::~ImageFieldWidget() + 38
10  QtCore                        	0x000000010235e95f
QObjectPrivate::deleteChildren() + 95
11  QtGui                         	0x000000010275dea2 QWidget::~QWidget() + 498
12  QtCore                        	0x000000010235e95f
QObjectPrivate::deleteChildren() + 95
13  QtGui                         	0x000000010275dea2 QWidget::~QWidget() + 498
(Continue reading)

Peter Alcibiades | 3 Feb 2010 19:18
Picon
Favicon

Went back to 1.3.6 and no more segmentation faults


Regis and Robby,

Went back to 1.3.6 - no alternative really, because my users have to have a
working installation, and I ran into the bug on clicking on thumbnails when
it came up and worked on my own home system.  Anyway, downloaded the source,
compiled with the help of Regis directions, and all is well.  The links of
the thumbnails to the pictures file need to be redone, but that they are ok
with, there are not that many of them.  Don't know what went wrong here.

If there is anything I can do to help track down the segmentation faults,
happy to, I just need some help with what to do and how to do it.

Regards

Peter
--

-- 
View this message in context: http://old.nabble.com/Went-back-to-1.3.6-and-no-more-segmentation-faults-tp27440927p27440927.html
Sent from the Tellico mailing list archive at Nabble.com.
Robby Stephenson | 4 Feb 2010 05:42
Gravatar

Re: Went back to 1.3.6 and no more segmentation faults

On Wednesday 03 February 2010, Peter Alcibiades wrote:
> If there is anything I can do to help track down the segmentation faults,
> happy to, I just need some help with what to do and how to do it.

I'm not sure of the exact way on Debian, but essentially, you would install 
the debuginfo package and gdb, then run

gdb tellico

and when it crashes, you might get Dr. Konqui crash handler show up with a 
tab for a backtrace. If not, type backtrace at the gdb prompt and see if you 
get lots of text there. Paste it in an email.

But there may not be a tellico-dbg package for you. http://debug.debian.net 
seems to indicate so.

Robby
Robby Stephenson | 4 Feb 2010 05:52
Gravatar

Re: tellico on mac os x 10.6.2 (snow leopard)

On Monday 01 February 2010, Christophe Diericx wrote:
> When running with gdb I get (when crashing the application):
> 
> ASSERT: "d" in file /opt/local/include/ksharedptr.h, line 126

> Could this be related to this:
> http://old.nabble.com/-Tellico-users--crash-in-2.0pre2-when-saving-edited
> -entry-td25307849.html ?

Looks vaguely similar, though the symptom just means there's a pointer 
getting dereferenced incorrectly somewhere.

Do you might trying a small code fix to let me know if it works for you?

In the src/gui/imagewidget.cpp file, down around line 153, change the 
function to be

ImageWidget::~ImageWidget() {
  if(m_editor) {
    KConfigGroup config(KGlobal::config(), "EditImage");
    config.writeEntry("editor", m_editor->name());
  }
}

Essentially just add the "if(m_editor)" line and closing bracket. That might 
do the trick.

Robby
Regis Boudin | 4 Feb 2010 11:35

Re: Went back to 1.3.6 and no more segmentation faults

Hi,

On Thu, February 4, 2010 04:42, Robby Stephenson wrote:
> On Wednesday 03 February 2010, Peter Alcibiades wrote:
>> If there is anything I can do to help track down the segmentation
>> faults,
>> happy to, I just need some help with what to do and how to do it.
>
> I'm not sure of the exact way on Debian, but essentially, you would
> install the debuginfo package and gdb, then run

There is no debug info available externally, but you can rebuild the
package without stripping the debug symbols, which is done by passing
DEB_BUILD_OPTIONS="nostrip" to dpkg-buildpackage. Then you need to install
your custom package and follow Robby's instructions.

I would normally offer to rebuild them for you, but I really don't have
time with work at the moment. If you don't know how to rebuild the
package, don't hesitate to ask though.

> gdb tellico
>
> and when it crashes, you might get Dr. Konqui crash handler show up with a
> tab for a backtrace. If not, type backtrace at the gdb prompt and see if
> you
> get lots of text there. Paste it in an email.
>
> But there may not be a tellico-dbg package for you.
> http://debug.debian.net
> seems to indicate so.
(Continue reading)

Christophe Diericx | 4 Feb 2010 20:13
Picon
Gravatar

Re: tellico on mac os x 10.6.2 (snow leopard)

That quick fix seems to work perfectly fine for now, Tellico is up and
running (and looking good).
Can't believe I didn't come up with this myself ;-) (I did try adding
a config.sync() call but then you'd just
get runtime errors a little higher in the ImageWidget constructor).

A quick screenshot of Telico on Mac OS X 10.6.2:
http://i47.tinypic.com/2ljjkwo.jpg

I think I'll submit a portfile for macports (there is a recent fink
package since the end of december but there's still one 'fink'
dependency
for people on Snow leopard).

Thanks ~a lot~ for this hint (and for all your work on Tellico of course).

Christophe

2010/2/4 Robby Stephenson <robby@...>:
> On Monday 01 February 2010, Christophe Diericx wrote:
>> When running with gdb I get (when crashing the application):
>>
>> ASSERT: "d" in file /opt/local/include/ksharedptr.h, line 126
>
>> Could this be related to this:
>> http://old.nabble.com/-Tellico-users--crash-in-2.0pre2-when-saving-edited
>> -entry-td25307849.html ?
>
> Looks vaguely similar, though the symptom just means there's a pointer
> getting dereferenced incorrectly somewhere.
(Continue reading)

Daniel Eichler | 5 Feb 2010 22:15

Re: tellico on mac os x 10.6.2 (snow leopard)



2010/2/4 Christophe Diericx <christophe.diericx <at> gmail.com>

A quick screenshot of Telico on Mac OS X 10.6.2:
http://i47.tinypic.com/2ljjkwo.jpg

For me it work also. But i found another problem (besides the little bit strange look). The filter-element in the toolbar is not visable and such not really working. I think you can see this also in above screenshot, where there is writen filter, instead of the textfeld.
_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users
Robby Stephenson | 6 Feb 2010 03:55
Gravatar

Re: tellico on mac os x 10.6.2 (snow leopard)

On Friday 05 February 2010, Daniel Eichler wrote:

> For me it work also. But i found another problem (besides the little bit
> strange look). The filter-element in the toolbar is not visable and such
>  not really working. I think you can see this also in above screenshot,
>  where there is writen filter, instead of the textfeld.

Yeah, I noticed that. It's likely some issue with the KAction that creates 
the line edit. It's difficult to test without my own macos build. Do you 
know of any other KDE apps that have a line edit on the toolbar that works 
on macosx? I could compare my code with theirs.

Robby
Daniel Eichler | 6 Feb 2010 10:52

Re: tellico on mac os x 10.6.2 (snow leopard)


2010/2/6 Robby Stephenson <robby-9lFPeden07UgsBAKwltoeQ@public.gmane.org>

> For me it work also. But i found another problem (besides the little bit
> strange look). The filter-element in the toolbar is not visable and such
>  not really working. I think you can see this also in above screenshot,
>  where there is writen filter, instead of the textfeld.

Yeah, I noticed that. It's likely some issue with the KAction that creates
the line edit. It's difficult to test without my own macos build. Do you
know of any other KDE apps that have a line edit on the toolbar that works
on macosx? I could compare my code with theirs.


Dolphins searchtoolbar has a working input-field. And Konquerors location-field works too, also it's a combobox.
_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

Gmane