Bennett Helm wrote:
> On Nov 28, 2006, at 4:27 PM, Peter Kümmel wrote:
> 
>> Bennett Helm wrote:
>>> On Nov 28, 2006, at 4:02 PM, Peter Kümmel wrote:
>>>
>>>> Bennett Helm wrote:
>>>>
>>>>> OSX typically has 2 icon sizes that can be selected -- normal and
>>>>> small.
>>>>>
>>>>> By my lights, the trouble with the icons in 1.5 is not that the icons
>>>>> themselves are too big or small, but that there is too much empty
>>>>> space
>>>>> around each icon. It looks as though that could be reduced
>>>>> significantly
>>>>> without altering the substance of the icon.
>>>>>
>>>>> Bennett
>>>>>
>>>>
>>>> The Qt docs states:
>>>> "QIcon can always generate a smaller pixmap from the set of pixmaps it
>>>> is given, but it never scales them up, because this rarely looks good.
>>>> This is why we get the 48 x 48 pixmap when we request a 64 x 64
>>>> pixmap."
>>>>
>>>> Maybe on the Mac the tool bars are too big for the the icons.
>>>> You could try to change the icon size in the session file
>>>> (IconSizeXY) and then starting LyX again and see what happens.
>>>
>>> That does work. However, what I'd like to do is be able to set them to a
>>> reasonable size for Mac users generally (and not tell others to edit the
>>> session file). Is there a way to do that short of having an installer
>>> create the session file and then write a line to it?
>>>
>>> Bennett
>>
>> Editing the session file was just the tip for you to figure out what
>> are the best sizes for the Mac. ;)
>> When we know the numbers we could handle it in the code.
> 
> I'm trying again with current svn, but session isn't working for me:
> everything below [session info] in the session file has been deleted,
> and nothing I do brings it back -- including deleting the session file
> and having it regenerated.
> 
> This may be related to two other problems I'm having that have recently
> cropped up:

Yes, I think the crash prevents the correct creation of 'session'.

> 1. Start LyX, immediately quit, and it crashes. Here's the backtrace:
> 
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_PROTECTION_FAILURE at address: 0x00000040
> 0x00091c65 in lyx::LyXServerSocket::~LyXServerSocket (this=0x1a31b4f0)
> at lyxsocket.C:82
> 82                      theApp->unregisterSocketCallback(fd_);
> (gdb) bt
> #0  0x00091c65 in lyx::LyXServerSocket::~LyXServerSocket
> (this=0x1a31b4f0) at lyxsocket.C:82
> #1  0x0066c4de in boost::checked_delete<lyx::LyXServerSocket>
> (x=0x1a31b4f0) at ../boost/boost/checked_delete.hpp:34
> #2  0x000693a5 in lyx::LyX::quit (this=0xbffff950) at lyx_main.C:454
> #3  0x00069454 in lyx::LyX::~LyX (this=0xbffff950) at lyx_main.C:177
> #4  0x00003175 in main (argc=1, argv=0xbffff9e4) at main.C:48

The old problem. Does the patch help? Do you know if you've enabled
the BOOST_ASSERTS?

> 
> 2. Start LyX, create a new document, type a few characters, quit. LyX
> immediately quits without asking to save the document. Here's the output
> from the terminal:

Very strange.

> QPixmap: Must construct a QApplication before a QPaintDevice

Seems a pixmap is constructed after the destruction of QApplication.

> Program exited with code 01.
> 
> 
> Bennett


-- 
Peter Kümmel
Index: src/lyxsocket.C
===================================================================
--- src/lyxsocket.C     (Revision 16104)
+++ src/lyxsocket.C     (Arbeitskopie)
@@ -78,8 +78,8 @@
 LyXServerSocket::~LyXServerSocket()
 {
        if (fd_ != -1) {
-               BOOST_ASSERT (theApp);
-               theApp->unregisterSocketCallback(fd_);
+               if (theApp)
+                       theApp->unregisterSocketCallback(fd_);
                if (::close(fd_) != 0)
                        lyxerr << "lyx: Server socket " << fd_
                               << " IO error on closing: " << strerror(errno);

Reply via email to