Crash at startup on Vista

View: New views
4 Messages — Rating Filter:   Alert me  

Parent Message unknown Crash at startup on Vista

by James Chaldecott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've recently started getting a crash at startup on Vista SP1. I was
using 14.2 and just upgraded to 15.1 and they both crash as soon as I
run the executable.

I think 14.2 was working fine up until recently. Certainly I had a
14.x version of Tomboy working, and I don't  *think* it stopped
working as soon as I upgraded to 14.2.

The output when running from command-line is as follows:

C:\
>"Program Files\Tomboy\Tomboy.exe"

C:\
>[DEBUG]: NoteManager created with note path "C:\Users\jchaldecott\AppData\Roaming\tomboy".
[INFO]: Initializing Mono.Addins
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.Tomboy
[DEBUG]:               Name: Tomboy.Tomboy,0.10
[DEBUG]:        Description:
[DEBUG]:          Namespace: Tomboy
[DEBUG]:            Enabled: True
[DEBUG]:               File: C:\Program Files\Tomboy\Tomboy.exe
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.ExportToHtmlAddin
[DEBUG]:               Name: Export to HTML
[DEBUG]:        Description: Exports individual notes to HTML.
[DEBUG]:          Namespace: Tomboy
[DEBUG]:            Enabled: True
[DEBUG]:               File: C:\Program Files\Tomboy\ExportToHtml.dll
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.BacklinksAddin
[DEBUG]:               Name: Backlinks
[DEBUG]:        Description: See which notes link to the one you're
currently viewing.
[DEBUG]:          Namespace: Tomboy
[DEBUG]:            Enabled: True
[DEBUG]:               File: C:\Program Files\Tomboy\Backlinks.dll
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.FixedWidthAddin
[DEBUG]:               Name: Fixed Width
[DEBUG]:        Description: Adds fixed-width font style.
[DEBUG]:          Namespace: Tomboy
[DEBUG]:            Enabled: True
[DEBUG]:               File: C:\Program Files\Tomboy\FixedWidth.dll
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.PrintNotesAddin
[DEBUG]:               Name: Printing Support
[DEBUG]:        Description: Allows you to print a note.
[DEBUG]:          Namespace: Tomboy
[DEBUG]:            Enabled: True
[DEBUG]:               File: C:\Program Files\Tomboy\PrintNotes.dll
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.FileSystemSyncServiceAddin
[DEBUG]:               Name: Local Directory Sync Service Add-in
[DEBUG]:        Description: Synchronize Tomboy Notes to a local file
system path
[DEBUG]:          Namespace: Tomboy
[DEBUG]:            Enabled: True
[DEBUG]:               File: C:\Program Files\Tomboy\FileSystemSyncService.dll
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.WebSyncServiceAddin
[DEBUG]:               Name: Web Sync Service Add-in
[DEBUG]:        Description: Synchronize Tomboy Notes with Tomboy
Online and other compatible web services
[DEBUG]:          Namespace: Tomboy
[DEBUG]:            Enabled: True
[DEBUG]:               File: C:\Program Files\Tomboy\WebSyncServiceAddin.dll
[DEBUG]: Tomboy remote control active.

Unhandled Exception: System.AccessViolationException: Attempted to
read or write protected memory. This is often an indi
cation that other memory is corrupt.
   at Gtk.IconTheme.gtk_icon_theme_load_icon(IntPtr raw, IntPtr
icon_name, Int32 size, Int32 flags, IntPtr& error)
   at Gtk.IconTheme.LoadIcon(String icon_name, Int32 size,
IconLookupFlags flags)
   at Tomboy.GuiUtils.GetIcon(Assembly asm, String resource_name,
Int32 size) in c:\Users\sandy\Desktop\gnome-git\tomboy
\Tomboy\Utils.cs:line 99
   at Tomboy.Notebooks.NotebookApplicationAddin.get_NotebookIcon() in
c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Not
ebooks\NotebookApplicationAddin.cs:line 18
   at Tomboy.Notebooks.NotebookApplicationAddin.Initialize() in
c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Notebooks
\NotebookApplicationAddin.cs:line 110
   at Tomboy.Tomboy.Main(String[] args) in
c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Tomboy.cs:line 103

Debugging in VS2008 let me grab the following exception detail (no
that it's any different from the above!):

System.AccessViolationException was unhandled
  Message="Attempted to read or write protected memory. This is often
an indication that other memory is corrupt."
  Source="gtk-sharp"
  StackTrace:
       at Gtk.IconTheme.gtk_icon_theme_load_icon(IntPtr raw, IntPtr
icon_name, Int32 size, Int32 flags, IntPtr& error)
       at Gtk.IconTheme.LoadIcon(String icon_name, Int32 size,
IconLookupFlags flags)
       at Tomboy.GuiUtils.GetIcon(Assembly asm, String resource_name,
Int32 size) in c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Utils.cs:line
99
       at Tomboy.GuiUtils.GetIcon(String resource_name, Int32 size) in
c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Utils.cs:line 92
       at Tomboy.Notebooks.NotebookApplicationAddin.get_NotebookIcon()
in c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Notebooks\NotebookApplicationAddin.cs:line
19
       at Tomboy.Notebooks.NotebookApplicationAddin.Initialize() in
c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Notebooks\NotebookApplicationAddin.cs:line
110
       at Tomboy.Tomboy.Main(String[] args) in
c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Tomboy.cs:line 103
  InnerException:

With unmanaged debugging turned on I see the following call stack:
       ntdll.dll!77933387()
       [Frames below may be incorrect and/or missing, no symbols
loaded for ntdll.dll]
       ntdll.dll!7793323c()
>       msvcr90.dll!_lock_file(_iobuf * pf=0x764709b8)  Line 241 + 0xa bytes    C
       msvcr90.dll!fread_s(void * buffer=0x04c8bb50, unsigned int
bufferSize=4294967295, unsigned int elementSize=1, unsigned int
count=8, _iobuf * stream=0x764709b8)  Line 105 + 0x8 bytes      C
       msvcr90.dll!fread(void * buffer=0x04c8bb50, unsigned int
elementSize=1, unsigned int count=8, _iobuf * stream=0x764709b8)  Line
303 + 0x13 bytes        C
       libpng13.dll!03cc8b73()
       libpng13.dll!03cc8b30()
       libpng13.dll!03cc6ae7()
       msvcrt.dll!763d9e04()
       msvcrt.dll!763e8bc3()
       libglib-2.0-0.dll!685e2ca0()
       [Managed to Native Transition]
       gtk-sharp.dll!Gtk.IconTheme.LoadIcon(string icon_name =
"notebook", int size = 16, Gtk.IconLookupFlags flags = 0) + 0x64 bytes
       Tomboy.exe!Tomboy.GuiUtils.GetIcon(System.Reflection.Assembly
asm = null, string resource_name = "notebook", int size = 16) Line 99
+ 0x1c bytes   C#
       Tomboy.exe!Tomboy.GuiUtils.GetIcon(string resource_name =
"notebook", int size = 16) Line 92 + 0xe bytes  C#
       Tomboy.exe!Tomboy.Notebooks.NotebookApplicationAddin.NotebookIcon.get()
Line 19 + 0x10 bytes    C#
       Tomboy.exe!Tomboy.Notebooks.NotebookApplicationAddin.Initialize()
Line 110 + 0x2c bytes   C#
       Tomboy.exe!Tomboy.Tomboy.Main(string[] args = {string[0]}) Line
103 + 0x8 bytes     C#
       mscoree.dll!72917c24()
       kernel32.dll!76684911()
       ntdll.dll!7792e4b6()
       ntdll.dll!7792e489()

Looking through the modules list, all the gtk-sharp dlls (managed &
unmanaged) have loaded from "C:\Program Files\GtkSharp\2.12\" (or the
GAC - still version 2.12), but libpng13.dll & zlib1.dll both loaded
from "C:\Windows\". Is that normal?

The loaded libpng13.dll is showing version 1.02.36.0.
The loaded zlib1.dll is showing as version 1.02.3.2027.

I've checked & notice that there are indeed copies of libpng13.dll &
zlib1.dll in "C:\Program Files\GtkSharp\2.12\bin" which I suppose are
the ones we should be using. It looks like that directory is on my
PATH, but it comes after %SYSTEMROOT% (i.e. "C:\Windows").

I just tried moving "C:\Program Files\GtkSharp\2.12\bin" to the start
of my PATH (and rebooting), but it made no difference. The offending
dlls were still loaded from "C:\Windows".

Any ideas?

Cheers,

James

P.S. I can't stand unmanaged code these days. I was a C++ dev for 5
years or so, and I used to think it was great, but every time I have
to go back into that world from C# I can't believe how horrible it all
is!
_______________________________________________
Tomboy-list mailing list
Tomboy-list@...
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com

Re: Crash at startup on Vista

by James Chaldecott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

P.S. I think I know what put libpng, etc, in "C:\Windows". It looks
like it was the last build of Elcetric Sheep that I installed (build
v2.7b16 at http://community.sheepserver.net/).

Does anyone know the recommended way of sorting out this sort of
version conflict?

It's unusual for things as commonly used as libpng to have version
compatibility issues, though, right? Is there actually a more serious
issue here?

James

2009/6/22 James Chaldecott:

> Hi,
>
> I've recently started getting a crash at startup on Vista SP1. I was
> using 14.2 and just upgraded to 15.1 and they both crash as soon as I
> run the executable.
>
> I think 14.2 was working fine up until recently. Certainly I had a
> 14.x version of Tomboy working, and I don't  *think* it stopped
> working as soon as I upgraded to 14.2.
>
> The output when running from command-line is as follows:
>
> C:\
>>"Program Files\Tomboy\Tomboy.exe"
>
> C:\
>>[DEBUG]: NoteManager created with note path "C:\Users\jchaldecott\AppData\Roaming\tomboy".
> [INFO]: Initializing Mono.Addins
> [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.Tomboy
> [DEBUG]:               Name: Tomboy.Tomboy,0.10
> [DEBUG]:        Description:
> [DEBUG]:          Namespace: Tomboy
> [DEBUG]:            Enabled: True
> [DEBUG]:               File: C:\Program Files\Tomboy\Tomboy.exe
> [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.ExportToHtmlAddin
> [DEBUG]:               Name: Export to HTML
> [DEBUG]:        Description: Exports individual notes to HTML.
> [DEBUG]:          Namespace: Tomboy
> [DEBUG]:            Enabled: True
> [DEBUG]:               File: C:\Program Files\Tomboy\ExportToHtml.dll
> [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.BacklinksAddin
> [DEBUG]:               Name: Backlinks
> [DEBUG]:        Description: See which notes link to the one you're
> currently viewing.
> [DEBUG]:          Namespace: Tomboy
> [DEBUG]:            Enabled: True
> [DEBUG]:               File: C:\Program Files\Tomboy\Backlinks.dll
> [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.FixedWidthAddin
> [DEBUG]:               Name: Fixed Width
> [DEBUG]:        Description: Adds fixed-width font style.
> [DEBUG]:          Namespace: Tomboy
> [DEBUG]:            Enabled: True
> [DEBUG]:               File: C:\Program Files\Tomboy\FixedWidth.dll
> [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.PrintNotesAddin
> [DEBUG]:               Name: Printing Support
> [DEBUG]:        Description: Allows you to print a note.
> [DEBUG]:          Namespace: Tomboy
> [DEBUG]:            Enabled: True
> [DEBUG]:               File: C:\Program Files\Tomboy\PrintNotes.dll
> [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.FileSystemSyncServiceAddin
> [DEBUG]:               Name: Local Directory Sync Service Add-in
> [DEBUG]:        Description: Synchronize Tomboy Notes to a local file
> system path
> [DEBUG]:          Namespace: Tomboy
> [DEBUG]:            Enabled: True
> [DEBUG]:               File: C:\Program Files\Tomboy\FileSystemSyncService.dll
> [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.WebSyncServiceAddin
> [DEBUG]:               Name: Web Sync Service Add-in
> [DEBUG]:        Description: Synchronize Tomboy Notes with Tomboy
> Online and other compatible web services
> [DEBUG]:          Namespace: Tomboy
> [DEBUG]:            Enabled: True
> [DEBUG]:               File: C:\Program Files\Tomboy\WebSyncServiceAddin.dll
> [DEBUG]: Tomboy remote control active.
>
> Unhandled Exception: System.AccessViolationException: Attempted to
> read or write protected memory. This is often an indi
> cation that other memory is corrupt.
>    at Gtk.IconTheme.gtk_icon_theme_load_icon(IntPtr raw, IntPtr
> icon_name, Int32 size, Int32 flags, IntPtr& error)
>    at Gtk.IconTheme.LoadIcon(String icon_name, Int32 size,
> IconLookupFlags flags)
>    at Tomboy.GuiUtils.GetIcon(Assembly asm, String resource_name,
> Int32 size) in c:\Users\sandy\Desktop\gnome-git\tomboy
> \Tomboy\Utils.cs:line 99
>    at Tomboy.Notebooks.NotebookApplicationAddin.get_NotebookIcon() in
> c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Not
> ebooks\NotebookApplicationAddin.cs:line 18
>    at Tomboy.Notebooks.NotebookApplicationAddin.Initialize() in
> c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Notebooks
> \NotebookApplicationAddin.cs:line 110
>    at Tomboy.Tomboy.Main(String[] args) in
> c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Tomboy.cs:line 103
>
> Debugging in VS2008 let me grab the following exception detail (no
> that it's any different from the above!):
>
> System.AccessViolationException was unhandled
>   Message="Attempted to read or write protected memory. This is often
> an indication that other memory is corrupt."
>   Source="gtk-sharp"
>   StackTrace:
>        at Gtk.IconTheme.gtk_icon_theme_load_icon(IntPtr raw, IntPtr
> icon_name, Int32 size, Int32 flags, IntPtr& error)
>        at Gtk.IconTheme.LoadIcon(String icon_name, Int32 size,
> IconLookupFlags flags)
>        at Tomboy.GuiUtils.GetIcon(Assembly asm, String resource_name,
> Int32 size) in c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Utils.cs:line
> 99
>        at Tomboy.GuiUtils.GetIcon(String resource_name, Int32 size) in
> c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Utils.cs:line 92
>        at Tomboy.Notebooks.NotebookApplicationAddin.get_NotebookIcon()
> in c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Notebooks\NotebookApplicationAddin.cs:line
> 19
>        at Tomboy.Notebooks.NotebookApplicationAddin.Initialize() in
> c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Notebooks\NotebookApplicationAddin.cs:line
> 110
>        at Tomboy.Tomboy.Main(String[] args) in
> c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Tomboy.cs:line 103
>   InnerException:
>
> With unmanaged debugging turned on I see the following call stack:
>        ntdll.dll!77933387()
>        [Frames below may be incorrect and/or missing, no symbols
> loaded for ntdll.dll]
>        ntdll.dll!7793323c()
>>       msvcr90.dll!_lock_file(_iobuf * pf=0x764709b8)  Line 241 + 0xa bytes    C
>        msvcr90.dll!fread_s(void * buffer=0x04c8bb50, unsigned int
> bufferSize=4294967295, unsigned int elementSize=1, unsigned int
> count=8, _iobuf * stream=0x764709b8)  Line 105 + 0x8 bytes      C
>        msvcr90.dll!fread(void * buffer=0x04c8bb50, unsigned int
> elementSize=1, unsigned int count=8, _iobuf * stream=0x764709b8)  Line
> 303 + 0x13 bytes        C
>        libpng13.dll!03cc8b73()
>        libpng13.dll!03cc8b30()
>        libpng13.dll!03cc6ae7()
>        msvcrt.dll!763d9e04()
>        msvcrt.dll!763e8bc3()
>        libglib-2.0-0.dll!685e2ca0()
>        [Managed to Native Transition]
>        gtk-sharp.dll!Gtk.IconTheme.LoadIcon(string icon_name =
> "notebook", int size = 16, Gtk.IconLookupFlags flags = 0) + 0x64 bytes
>        Tomboy.exe!Tomboy.GuiUtils.GetIcon(System.Reflection.Assembly
> asm = null, string resource_name = "notebook", int size = 16) Line 99
> + 0x1c bytes   C#
>        Tomboy.exe!Tomboy.GuiUtils.GetIcon(string resource_name =
> "notebook", int size = 16) Line 92 + 0xe bytes  C#
>        Tomboy.exe!Tomboy.Notebooks.NotebookApplicationAddin.NotebookIcon.get()
> Line 19 + 0x10 bytes    C#
>        Tomboy.exe!Tomboy.Notebooks.NotebookApplicationAddin.Initialize()
> Line 110 + 0x2c bytes   C#
>        Tomboy.exe!Tomboy.Tomboy.Main(string[] args = {string[0]}) Line
> 103 + 0x8 bytes     C#
>        mscoree.dll!72917c24()
>        kernel32.dll!76684911()
>        ntdll.dll!7792e4b6()
>        ntdll.dll!7792e489()
>
> Looking through the modules list, all the gtk-sharp dlls (managed &
> unmanaged) have loaded from "C:\Program Files\GtkSharp\2.12\" (or the
> GAC - still version 2.12), but libpng13.dll & zlib1.dll both loaded
> from "C:\Windows\". Is that normal?
>
> The loaded libpng13.dll is showing version 1.02.36.0.
> The loaded zlib1.dll is showing as version 1.02.3.2027.
>
> I've checked & notice that there are indeed copies of libpng13.dll &
> zlib1.dll in "C:\Program Files\GtkSharp\2.12\bin" which I suppose are
> the ones we should be using. It looks like that directory is on my
> PATH, but it comes after %SYSTEMROOT% (i.e. "C:\Windows").
>
> I just tried moving "C:\Program Files\GtkSharp\2.12\bin" to the start
> of my PATH (and rebooting), but it made no difference. The offending
> dlls were still loaded from "C:\Windows".
>
> Any ideas?
>
> Cheers,
>
> James
>
> P.S. I can't stand unmanaged code these days. I was a C++ dev for 5
> years or so, and I used to think it was great, but every time I have
> to go back into that world from C# I can't believe how horrible it all
> is!
>
_______________________________________________
Tomboy-list mailing list
Tomboy-list@...
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com

Re: Crash at startup on Vista

by Sandy Armstrong :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

These bugs might be related:

http://bugzilla.gnome.org/show_bug.cgi?id=582051
http://bugzilla.gnome.org/show_bug.cgi?id=577306

We do not yet know what the problem is.  Are you sure it is the
location of those unmanaged lib files?  Changing the PATH should not
be necessary in 0.14.2, as we programaticly manipulate the PATH to put
gtk-sharp at the front.  Did you also try removing those files from
C:\Windows temporarily?

Sandy

On Mon, Jun 22, 2009 at 2:55 AM, James Chaldecott<james@...> wrote:

> P.S. I think I know what put libpng, etc, in "C:\Windows". It looks
> like it was the last build of Elcetric Sheep that I installed (build
> v2.7b16 at http://community.sheepserver.net/).
>
> Does anyone know the recommended way of sorting out this sort of
> version conflict?
>
> It's unusual for things as commonly used as libpng to have version
> compatibility issues, though, right? Is there actually a more serious
> issue here?
>
> James
>
> 2009/6/22 James Chaldecott:
>> Hi,
>>
>> I've recently started getting a crash at startup on Vista SP1. I was
>> using 14.2 and just upgraded to 15.1 and they both crash as soon as I
>> run the executable.
>>
>> I think 14.2 was working fine up until recently. Certainly I had a
>> 14.x version of Tomboy working, and I don't  *think* it stopped
>> working as soon as I upgraded to 14.2.
>>
>> The output when running from command-line is as follows:
>>
>> C:\
>>>"Program Files\Tomboy\Tomboy.exe"
>>
>> C:\
>>>[DEBUG]: NoteManager created with note path "C:\Users\jchaldecott\AppData\Roaming\tomboy".
>> [INFO]: Initializing Mono.Addins
>> [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.Tomboy
>> [DEBUG]:               Name: Tomboy.Tomboy,0.10
>> [DEBUG]:        Description:
>> [DEBUG]:          Namespace: Tomboy
>> [DEBUG]:            Enabled: True
>> [DEBUG]:               File: C:\Program Files\Tomboy\Tomboy.exe
>> [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.ExportToHtmlAddin
>> [DEBUG]:               Name: Export to HTML
>> [DEBUG]:        Description: Exports individual notes to HTML.
>> [DEBUG]:          Namespace: Tomboy
>> [DEBUG]:            Enabled: True
>> [DEBUG]:               File: C:\Program Files\Tomboy\ExportToHtml.dll
>> [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.BacklinksAddin
>> [DEBUG]:               Name: Backlinks
>> [DEBUG]:        Description: See which notes link to the one you're
>> currently viewing.
>> [DEBUG]:          Namespace: Tomboy
>> [DEBUG]:            Enabled: True
>> [DEBUG]:               File: C:\Program Files\Tomboy\Backlinks.dll
>> [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.FixedWidthAddin
>> [DEBUG]:               Name: Fixed Width
>> [DEBUG]:        Description: Adds fixed-width font style.
>> [DEBUG]:          Namespace: Tomboy
>> [DEBUG]:            Enabled: True
>> [DEBUG]:               File: C:\Program Files\Tomboy\FixedWidth.dll
>> [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.PrintNotesAddin
>> [DEBUG]:               Name: Printing Support
>> [DEBUG]:        Description: Allows you to print a note.
>> [DEBUG]:          Namespace: Tomboy
>> [DEBUG]:            Enabled: True
>> [DEBUG]:               File: C:\Program Files\Tomboy\PrintNotes.dll
>> [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.FileSystemSyncServiceAddin
>> [DEBUG]:               Name: Local Directory Sync Service Add-in
>> [DEBUG]:        Description: Synchronize Tomboy Notes to a local file
>> system path
>> [DEBUG]:          Namespace: Tomboy
>> [DEBUG]:            Enabled: True
>> [DEBUG]:               File: C:\Program Files\Tomboy\FileSystemSyncService.dll
>> [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.WebSyncServiceAddin
>> [DEBUG]:               Name: Web Sync Service Add-in
>> [DEBUG]:        Description: Synchronize Tomboy Notes with Tomboy
>> Online and other compatible web services
>> [DEBUG]:          Namespace: Tomboy
>> [DEBUG]:            Enabled: True
>> [DEBUG]:               File: C:\Program Files\Tomboy\WebSyncServiceAddin.dll
>> [DEBUG]: Tomboy remote control active.
>>
>> Unhandled Exception: System.AccessViolationException: Attempted to
>> read or write protected memory. This is often an indi
>> cation that other memory is corrupt.
>>    at Gtk.IconTheme.gtk_icon_theme_load_icon(IntPtr raw, IntPtr
>> icon_name, Int32 size, Int32 flags, IntPtr& error)
>>    at Gtk.IconTheme.LoadIcon(String icon_name, Int32 size,
>> IconLookupFlags flags)
>>    at Tomboy.GuiUtils.GetIcon(Assembly asm, String resource_name,
>> Int32 size) in c:\Users\sandy\Desktop\gnome-git\tomboy
>> \Tomboy\Utils.cs:line 99
>>    at Tomboy.Notebooks.NotebookApplicationAddin.get_NotebookIcon() in
>> c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Not
>> ebooks\NotebookApplicationAddin.cs:line 18
>>    at Tomboy.Notebooks.NotebookApplicationAddin.Initialize() in
>> c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Notebooks
>> \NotebookApplicationAddin.cs:line 110
>>    at Tomboy.Tomboy.Main(String[] args) in
>> c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Tomboy.cs:line 103
>>
>> Debugging in VS2008 let me grab the following exception detail (no
>> that it's any different from the above!):
>>
>> System.AccessViolationException was unhandled
>>   Message="Attempted to read or write protected memory. This is often
>> an indication that other memory is corrupt."
>>   Source="gtk-sharp"
>>   StackTrace:
>>        at Gtk.IconTheme.gtk_icon_theme_load_icon(IntPtr raw, IntPtr
>> icon_name, Int32 size, Int32 flags, IntPtr& error)
>>        at Gtk.IconTheme.LoadIcon(String icon_name, Int32 size,
>> IconLookupFlags flags)
>>        at Tomboy.GuiUtils.GetIcon(Assembly asm, String resource_name,
>> Int32 size) in c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Utils.cs:line
>> 99
>>        at Tomboy.GuiUtils.GetIcon(String resource_name, Int32 size) in
>> c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Utils.cs:line 92
>>        at Tomboy.Notebooks.NotebookApplicationAddin.get_NotebookIcon()
>> in c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Notebooks\NotebookApplicationAddin.cs:line
>> 19
>>        at Tomboy.Notebooks.NotebookApplicationAddin.Initialize() in
>> c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Notebooks\NotebookApplicationAddin.cs:line
>> 110
>>        at Tomboy.Tomboy.Main(String[] args) in
>> c:\Users\sandy\Desktop\gnome-git\tomboy\Tomboy\Tomboy.cs:line 103
>>   InnerException:
>>
>> With unmanaged debugging turned on I see the following call stack:
>>        ntdll.dll!77933387()
>>        [Frames below may be incorrect and/or missing, no symbols
>> loaded for ntdll.dll]
>>        ntdll.dll!7793323c()
>>>       msvcr90.dll!_lock_file(_iobuf * pf=0x764709b8)  Line 241 + 0xa bytes    C
>>        msvcr90.dll!fread_s(void * buffer=0x04c8bb50, unsigned int
>> bufferSize=4294967295, unsigned int elementSize=1, unsigned int
>> count=8, _iobuf * stream=0x764709b8)  Line 105 + 0x8 bytes      C
>>        msvcr90.dll!fread(void * buffer=0x04c8bb50, unsigned int
>> elementSize=1, unsigned int count=8, _iobuf * stream=0x764709b8)  Line
>> 303 + 0x13 bytes        C
>>        libpng13.dll!03cc8b73()
>>        libpng13.dll!03cc8b30()
>>        libpng13.dll!03cc6ae7()
>>        msvcrt.dll!763d9e04()
>>        msvcrt.dll!763e8bc3()
>>        libglib-2.0-0.dll!685e2ca0()
>>        [Managed to Native Transition]
>>        gtk-sharp.dll!Gtk.IconTheme.LoadIcon(string icon_name =
>> "notebook", int size = 16, Gtk.IconLookupFlags flags = 0) + 0x64 bytes
>>        Tomboy.exe!Tomboy.GuiUtils.GetIcon(System.Reflection.Assembly
>> asm = null, string resource_name = "notebook", int size = 16) Line 99
>> + 0x1c bytes   C#
>>        Tomboy.exe!Tomboy.GuiUtils.GetIcon(string resource_name =
>> "notebook", int size = 16) Line 92 + 0xe bytes  C#
>>        Tomboy.exe!Tomboy.Notebooks.NotebookApplicationAddin.NotebookIcon.get()
>> Line 19 + 0x10 bytes    C#
>>        Tomboy.exe!Tomboy.Notebooks.NotebookApplicationAddin.Initialize()
>> Line 110 + 0x2c bytes   C#
>>        Tomboy.exe!Tomboy.Tomboy.Main(string[] args = {string[0]}) Line
>> 103 + 0x8 bytes     C#
>>        mscoree.dll!72917c24()
>>        kernel32.dll!76684911()
>>        ntdll.dll!7792e4b6()
>>        ntdll.dll!7792e489()
>>
>> Looking through the modules list, all the gtk-sharp dlls (managed &
>> unmanaged) have loaded from "C:\Program Files\GtkSharp\2.12\" (or the
>> GAC - still version 2.12), but libpng13.dll & zlib1.dll both loaded
>> from "C:\Windows\". Is that normal?
>>
>> The loaded libpng13.dll is showing version 1.02.36.0.
>> The loaded zlib1.dll is showing as version 1.02.3.2027.
>>
>> I've checked & notice that there are indeed copies of libpng13.dll &
>> zlib1.dll in "C:\Program Files\GtkSharp\2.12\bin" which I suppose are
>> the ones we should be using. It looks like that directory is on my
>> PATH, but it comes after %SYSTEMROOT% (i.e. "C:\Windows").
>>
>> I just tried moving "C:\Program Files\GtkSharp\2.12\bin" to the start
>> of my PATH (and rebooting), but it made no difference. The offending
>> dlls were still loaded from "C:\Windows".
>>
>> Any ideas?
>>
>> Cheers,
>>
>> James
>>
>> P.S. I can't stand unmanaged code these days. I was a C++ dev for 5
>> years or so, and I used to think it was great, but every time I have
>> to go back into that world from C# I can't believe how horrible it all
>> is!
>>
> _______________________________________________
> Tomboy-list mailing list
> Tomboy-list@...
> http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
>
_______________________________________________
Tomboy-list mailing list
Tomboy-list@...
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com

Parent Message unknown Re: Crash at startup on Vista

by Sandy Armstrong :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

(CC'ing tomboy-list; don't forget to reply-all)

On Tue, Jun 23, 2009 at 3:02 AM, James Chaldecott<james@...> wrote:
> Good call about removing the files from "C:\Windows". No idea why I
> didn't try that before. Moving libpng13.dll out of C:\Windows gets
> Tomboy starting OK.

Well, that's good to hear.

> Sounds like you'll want to know what dlls the other bug reporters have
> got loaded. SysInternals have a utility called ListDlls that will do
> the job.
>
> Details/download here:
> http://technet.microsoft.com/en-us/sysinternals/bb896656.aspx
> Can be run directly from here: http://live.sysinternals.com/listdlls.exe

Excellent, thanks for sharing this tool!

> For reference, if I run:
>    listdlls tomboy > tomboy-dlls.txt
>
> ... I now get the attached file.

Very cool, this tool rocks.

> Would you recommend doing what you do with unmanaged dlls to other
> apps that can't deploy  their dependencies to the same folder as the
> executable? I'm thinking of Electric Sheep (which is the offender on
> my system). It's a screensaver, so IIUC the executable really does
> have to be installed into %SystemRoot%, but putting its unmanaged
> dependencies in there is what breaks Tomboy.
>
> I guess the process is:
>  1) Install unmanaged dependencies to a common location (e.g.
> %ProgramFiles%\ElectricSheep\lib\)
>  2) Record the path to the dependencies in a registry key, or similar.
>  2) Install executable binary wherever it needs to be (e.g. %SystemRoot%)
>  3) Early in the startup of the executable, programmatically add the
> value in the registry key from #2 to the start of PATH, before loading
> the libraries normally.

Well, everybody has different situations.  But that's what I would do
if I were them, as it's kind of uncool to break other apps.  Of
course, there could be additional ways for gtk-sharp or Tomboy to
protect themselves from this.  I don't fully understand the
implications of this bug suggesting that gtk-sharp use
SetDllDirectory, but it could be a step in the right direction:

https://bugzilla.novell.com/show_bug.cgi?id=473564

Thanks for digging into this, James.  It's good to know that Tomboy
can still break in this situation.  I'll try to work with the
gtk-sharp windows installer guys to figure out what to do.

Sandy
_______________________________________________
Tomboy-list mailing list
Tomboy-list@...
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com