flickr-downloadr / flickr-downloadr-gtk

A cross-platform desktop app, written in Mono that would download (all or selected) photos from your photostream in their selected size along with their description, title and tags.
https://flickrdownloadr.com/
MIT License
180 stars 41 forks source link

Crashes on start unless run in Administrator mode #21

Closed bquistorff closed 3 years ago

bquistorff commented 9 years ago

I am using v1.1.1.3 on Windows 8.1 Pro. When opening normally it briefly shows up in my Process Explorer but then quits without any windows/errors shown. If right-clicking on the shortcut and using 'run as Administrator' it works well.

Possibly related to #16?

floydpink commented 9 years ago

I do not think it is related to #16 as they seem to be getting an error message that says a DLL could not be found.

Did you install the application by downloading and running the installer? And did you have to say yes to the UAC prompt to run the installer as elevated?

Also, could you please check the log has anything interesting (after running it without elevated privileges and failing): %USERPROFILE%\AppData\Roaming\flickr-downloadr\Logs\

bquistorff commented 9 years ago

I installed by downloading and running the installer. I uninstalled and reinstalled to make sure, but I never received a UAC prompt during the installation. This is what the log looks like when run without Admin privileges (and it quits immediately):

<log4j:event logger="FloydPink.Flickr.Downloadr.UI.MainClass" timestamp="1421122679243" level="INFO" thread="1"><log4j:message>Application Start.</log4j:message><log4j:properties><log4j:data name="log4jmachinename" value="Lenovo-BQ" /><log4j:data name="log4japp" value="flickr-downloadr.exe" /><log4j:data name="log4net:Identity" value="" /><log4j:data name="log4net:UserName" value="LENOVO-BQ\Brian" /><log4j:data name="log4net:HostName" value="Lenovo-BQ" /></log4j:properties><log4j:locationInfo class="FloydPink.Flickr.Downloadr.UI.MainClass" method="Main" file="" line="0" /></log4j:event>
floydpink commented 9 years ago

Not getting the UAC prompt is interesting - the installer is set to run as elevated.

Could you please change the log level to ALL from within the Preferences screen while running as admin and then try one more time as regular user to see if there is anything more getting captured in the logs?

bquistorff commented 9 years ago

Here it is:

<log4j:event logger="FloydPink.Flickr.Downloadr.Bootstrap.Bootstrapper" timestamp="1421155732677" level="DEBUG" thread="1"><log4j:message>ReadLoggingConfiguration</log4j:message><log4j:properties><log4j:data name="log4jmachinename" value="Lenovo-BQ" /><log4j:data name="log4japp" value="flickr-downloadr.exe" /><log4j:data name="log4net:Identity" value="" /><log4j:data name="log4net:UserName" value="LENOVO-BQ\Brian" /><log4j:data name="log4net:HostName" value="Lenovo-BQ" /></log4j:properties><log4j:locationInfo class="FloydPink.Flickr.Downloadr.Bootstrap.Bootstrapper" method="ReadLoggingConfiguration" file="" line="0" /></log4j:event>
<log4j:event logger="FloydPink.Flickr.Downloadr.UI.MainClass" timestamp="1421155732701" level="INFO" thread="1"><log4j:message>Application Start.</log4j:message><log4j:properties><log4j:data name="log4jmachinename" value="Lenovo-BQ" /><log4j:data name="log4japp" value="flickr-downloadr.exe" /><log4j:data name="log4net:Identity" value="" /><log4j:data name="log4net:UserName" value="LENOVO-BQ\Brian" /><log4j:data name="log4net:HostName" value="Lenovo-BQ" /></log4j:properties><log4j:locationInfo class="FloydPink.Flickr.Downloadr.UI.MainClass" method="Main" file="" line="0" /></log4j:event>
floydpink commented 9 years ago

Apologies for the radio silence - got held up with other things in between. That log does not look like it is logging with the ALL setting - possibly because we made the change to the log configuration while running elevated.

I will keep this issue open and hope that someone else who has the same issue could provide a little more insight as to what is going on.

TechnoNotice commented 9 years ago

Hi, I also have the same problem with Windows 8.1 x64.
Running sysinternals shows that flickr-downloadr gereates a large number of Buffere overflows then loads a number of dlls. Eventually The process calls werFault (C:\WINDOWS\SysWOW64\WerFault.exe -u -p 5860 -s 916)

The WER report is:

Version=1 EventType=CLR20r3 EventTime=130683344304297141 ReportType=2 Consent=1 UploadTime=130683344306797147 ReportIdentifier=68f1f4c9-b3c2-11e4-be98-f517262fb281 IntegratorReportIdentifier=68f1f4c8-b3c2-11e4-be98-f517262fb281 WOW64=1 NsAppName=flickr-downloadr.exe Response.BucketId=614dc4ead67db6fd95a3549dc5d30e6b Response.BucketTable=5 Response.LegacyBucketId=94659853363 Response.type=4 Sig[0].Name=Problem Signature 01 Sig[0].Value=flickr-downloadr.exe Sig[1].Name=Problem Signature 02 Sig[1].Value=1.1.1.3 Sig[2].Name=Problem Signature 03 Sig[2].Value=54ab1c23 Sig[3].Name=Problem Signature 04 Sig[3].Value=glib-sharp Sig[4].Name=Problem Signature 05 Sig[4].Value=2.12.0.0 Sig[5].Name=Problem Signature 06 Sig[5].Value=52cb5aea Sig[6].Name=Problem Signature 07 Sig[6].Value=1bb Sig[7].Name=Problem Signature 08 Sig[7].Value=2c Sig[8].Name=Problem Signature 09 Sig[8].Value=System.DllNotFoundException DynamicSig[1].Name=OS Version DynamicSig[1].Value=6.3.9600.2.0.0.256.48 DynamicSig[2].Name=Locale ID DynamicSig[2].Value=2057 DynamicSig[22].Name=Additional Information 1 DynamicSig[22].Value=5861 DynamicSig[23].Name=Additional Information 2 DynamicSig[23].Value=5861822e1919d7c014bbb064c64908b2 DynamicSig[24].Name=Additional Information 3 DynamicSig[24].Value=a10f DynamicSig[25].Name=Additional Information 4 DynamicSig[25].Value=a10ff7d2bb2516fdc753f9c34fc3b069 UI[2]=C:\Program Files (x86)\flickrdownloadr\flickr-downloadr.exe UI[3]=flickrDownloadr has stopped working UI[4]=Windows can check online for a solution to the problem. UI[5]=Check online for a solution and close the program UI[6]=Check online for a solution later and close the program UI[7]=Close the program LoadedModule[0]=C:\Program Files (x86)\flickrdownloadr\flickr-downloadr.exe LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll LoadedModule[2]=C:\WINDOWS\SYSTEM32\MSCOREE.DLL LoadedModule[3]=C:\WINDOWS\SYSTEM32\KERNEL32.dll LoadedModule[4]=C:\WINDOWS\SYSTEM32\KERNELBASE.dll LoadedModule[5]=C:\WINDOWS\SYSTEM32\ADVAPI32.dll LoadedModule[6]=C:\WINDOWS\SYSTEM32\msvcrt.dll LoadedModule[7]=C:\WINDOWS\SYSTEM32\sechost.dll LoadedModule[8]=C:\WINDOWS\SYSTEM32\RPCRT4.dll LoadedModule[9]=C:\WINDOWS\SYSTEM32\SspiCli.dll LoadedModule[10]=C:\WINDOWS\SYSTEM32\CRYPTBASE.dll LoadedModule[11]=C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll LoadedModule[12]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll LoadedModule[13]=C:\WINDOWS\SYSTEM32\SHLWAPI.dll LoadedModule[14]=C:\WINDOWS\SYSTEM32\combase.dll LoadedModule[15]=C:\WINDOWS\SYSTEM32\USER32.dll LoadedModule[16]=C:\WINDOWS\SYSTEM32\GDI32.dll LoadedModule[17]=C:\WINDOWS\system32\IMM32.DLL LoadedModule[18]=C:\WINDOWS\SYSTEM32\MSCTF.dll LoadedModule[19]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll LoadedModule[20]=C:\WINDOWS\SYSTEM32\MSVCR120_CLR0400.dll LoadedModule[21]=C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\mscorlib\d03a3ddcd6a395878751c5e90fa16915\mscorlib.ni.dll LoadedModule[22]=C:\WINDOWS\SYSTEM32\ole32.dll LoadedModule[23]=C:\WINDOWS\SYSTEM32\kernel.appcore.dll LoadedModule[24]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll LoadedModule[25]=C:\WINDOWS\SYSTEM32\OLEAUT32.dll LoadedModule[26]=C:\WINDOWS\SYSTEM32\CRYPTSP.dll LoadedModule[27]=C:\WINDOWS\system32\rsaenh.dll LoadedModule[28]=C:\WINDOWS\SYSTEM32\bcrypt.dll LoadedModule[29]=C:\WINDOWS\SYSTEM32\VERSION.dll LoadedModule[30]=C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System\1a6b5095c4416a37f9ca4cf4436d1311\System.ni.dll LoadedModule[31]=C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Configuration\b5b80f1284dfa1b883da48ed58ecbc47\System.Configuration.ni.dll LoadedModule[32]=C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Xml\9a349fb029581f4752d2c6cfcfeab816\System.Xml.ni.dll LoadedModule[33]=C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Core\794a3d83e77a53d6fc029c389f9cc408\System.Core.ni.dll LoadedModule[34]=C:\WINDOWS\SYSTEM32\shell32.dll LoadedModule[35]=C:\WINDOWS\SYSTEM32\SHCORE.dll LoadedModule[36]=C:\WINDOWS\SYSTEM32\profapi.dll LoadedModule[37]=C:\WINDOWS\system32\uxtheme.dll LoadedModule[38]=C:\WINDOWS\system32\dwmapi.dll LoadedModule[39]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll State[0].Key=Transport.DoneStage1 State[0].Value=1 FriendlyEventName=Stopped working ConsentKey=CLR20r3 AppName=flickrDownloadr AppPath=C:\Program Files (x86)\flickrdownloadr\flickr-downloadr.exe NsPartner=windows NsGroup=windows8 ApplicationIdentity=A593D5573B83097EA39BA7869CFE9F52

TechnoNotice commented 9 years ago

Looking at the none successful results for Flickr-downloader using Process monitor gives 910 events. Ranging from Name not found, File locked with only readers, reparse, Buffer overflow and Path not found.
Filtering out the registry faults gives 661 results.
Most are expected as they are generated as the app tries to find files etc. Nothing seem to be failing to be found (eventually).

After al the unsuccessful entries are further successful entries including a large number of QueryNameInformationFile (SUCCESS) followed by Process Create WerFault! It then nicely shuts down open files etc.

The logfile from ProcMon is 2.3Mb compressed if you want to take a look yourself?

floydpink commented 9 years ago

Looks more like #16 to me than this one.

Please upload the entire procmon log somewhere like Dropbox/Pastebin and share the link

Thank you for commenting with your experience and logs