I'm just getting started with PostSharp. For some reason I'm not seeing the logging smart tag - the only option I have is adding "architecture constraints".
Also I'm not seeing the smart tag on private methods.
What may be the problem?
UPDATE
Diagnostics output:
devenv.exe Information: 0 : OnBeforeDocumentWindowShow
devenv.exe Information: 0 : Smart tag: restart quiet period.
devenv.exe Information: 0 : Ignoring this tick because it's too early.
devenv.exe Information: 0 : Smart tag: OnTick
devenv.exe Information: 0 : AddAspectsSmartTagger.UpdateCurrentCodeElement
devenv.exe Information: 0 : AddAspectsSmartTagger.GetTag
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.ComponentInternalConstraintTypeAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.InternalImplementConstraintAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.AggregatableAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.ChildAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.DisposableAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.EditableObjectAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.ParentAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.RecordableAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.ReferenceAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.CreditCardQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.EmailAddressQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.GreaterThanQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.LessThanQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.NotEmptyQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.NotNullQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.PhoneQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.PositiveQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.RangeQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.RequiredQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.StrictlyPositiveQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.UrlQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.ApplyThreadingModelAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.DeadlockDetectionAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.AddConstraintAction.
devenv.exe Information: 0 : eligible.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.ComponentInternalConstraintAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.InternalConstraintAction.
devenv.exe Information: 0 : eligible.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.ProtectedConstraintAction.
devenv.exe Information: 0 : eligible.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.UpgradeableReaderLockAction.
devenv.exe Information: 0 : not eligible because of PostSharp.VisualStudio.Services.QuickAction.Filters.PackageCompatibilityFilter does not match.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Diagnostics.LogAction.
devenv.exe Information: 0 : not eligible because of PostSharp.VisualStudio.Services.QuickAction.Filters.PackageCompatibilityFilter does not match.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.NotifyPropertyChangedAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.BackgroundMethodAction.
devenv.exe Information: 0 : not eligible because of PostSharp.VisualStudio.Services.QuickAction.Filters.PackageCompatibilityFilter does not match.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.DispatchedAttribute.
devenv.exe Information: 0 : not eligible because of PostSharp.VisualStudio.Services.QuickAction.Filters.PackageCompatibilityFilter does not match.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.ObserverLockAction.
devenv.exe Information: 0 : not eligible because of PostSharp.VisualStudio.Services.QuickAction.Filters.PackageCompatibilityFilter does not match.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.ReaderLockAction.
devenv.exe Information: 0 : not eligible because of PostSharp.VisualStudio.Services.QuickAction.Filters.PackageCompatibilityFilter does not match.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.WriterLockAction.
devenv.exe Information: 0 : not eligible because of PostSharp.VisualStudio.Services.QuickAction.Filters.PackageCompatibilityFilter does not match.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.ComponentInternalConstraintTypeAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.InternalImplementConstraintAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.ComponentInternalConstraintAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.InternalConstraintAction.
devenv.exe Information: 0 : eligible.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.ProtectedConstraintAction.
devenv.exe Information: 0 : eligible.
devenv.exe Information: 0 : found 1 actions
The part that causing trouble says not eligible because of PackageCompatibilityFilter does not match. What does it mean?
UPDATE 2
I'm targeting .NET 3.5; If I switch to .NET 4.5 the logging becomes available. Is this a limitation of PostSharp?
PostSharp Diagnostics Pattern Library is not supported on .NET 3.5. The same goes for other Pattern Libraries.
You would have to use PostSharp itself (Aspect Framework) to implement similar logic.
Related
I have an azure devops pipeline that is taking the published artifacts from a build and pushing them up to blob storage in azure. Its currently failing, and it looks like its just on one file from the build output :
2021-05-25T13:31:27.4791037Z Job 01cfc270-4ee3-d341-5375-d4a214850167 has started
2021-05-25T13:31:27.4791930Z Log file is located at: C:\Users\VssAdministrator\.azcopy\01cfc270-4ee3-d341-5375-d4a214850167.log
2021-05-25T13:31:27.4792379Z
2021-05-25T13:31:27.4792564Z
2021-05-25T13:31:27.7989703Z 0.0 %, 0 Done, 0 Failed, 2 Pending, 0 Skipped, 2 Total,
2021-05-25T13:31:27.7998798Z INFO: AzCopy.exe: A newer version 10.10.0 is available to download
2021-05-25T13:31:27.7999390Z
2021-05-25T13:31:29.4798448Z 0.0 %, 0 Done, 0 Failed, 2 Pending, 0 Skipped, 2 Total,
2021-05-25T13:31:29.4799302Z
2021-05-25T13:31:29.4799523Z
2021-05-25T13:31:29.4800018Z Job 01cfc270-4ee3-d341-5375-d4a214850167 summary
2021-05-25T13:31:29.4800736Z Elapsed Time (Minutes): 0.0334
2021-05-25T13:31:29.4801101Z Number of File Transfers: 2
2021-05-25T13:31:29.4801456Z Number of Folder Property Transfers: 0
2021-05-25T13:31:29.4801854Z Total Number of Transfers: 2
2021-05-25T13:31:29.4802216Z Number of Transfers Completed: 1
2021-05-25T13:31:29.4802560Z Number of Transfers Failed: 1
2021-05-25T13:31:29.4802915Z Number of Transfers Skipped: 0
2021-05-25T13:31:29.4803244Z TotalBytesTransferred: 82
2021-05-25T13:31:29.4803595Z Final Job Status: CompletedWithErrors
2021-05-25T13:31:29.4803756Z
2021-05-25T13:31:29.5154984Z ##[debug]ExceptionMessage: AzCopy.exe exited with non-zero exit code while uploading files to blob storage.
2021-05-25T13:31:29.5798549Z ##[debug]Processed: ##vso[task.logissue type=error;code={"Task_Internal_Error":"BlobUploadFailed"};]
In the build output I have a JS file and a CSS file. I cant tell from that output which one its failing on, and the error doesn't tell me much. Any ideas?
I added a robocopy file to my post build event in my C# project. X64 Release and Debug build fine, as does X86 Debug, however the X86 Release option does NOT copy the Get-Parent-Device.exe file to the target.
Why?
Note: I can always just add a step and copy over the file manually just for that specific configuration and that would "solve" my problem, however I want to understand what issue robocopy had. The source and destination are fine, permissions are fine, just X86/Release does not work.
What is interesting is that if I right click on the solution and select build, robocopy works on that configuration. What does not work is if I use Visual Build Professional and build all configurations of the project.
Here is the log+ file:
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Tuesday, September 25, 2018 10:16:57 AM
Source : C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\Get-Parent-Device\Release\
Dest : C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\bin\x86\Release\
Files : Get-Parent-Device.exe
Options : /V /DCOPY:DA /COPY:DAT /IS /R:1000000 /W:30
------------------------------------------------------------------------------
0 C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\Get-Parent-Device\Release\
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 0 0 0 0 0 0
Bytes : 0 0 0 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Ended : Tuesday, September 25, 2018 10:16:57 AM
Here are the relevant steps from the post build event:
robocopy /V /IS /log+:"$(TargetDir)robo.log" "$(ProjectDir)..\Get-Parent-Device\Release" $(TargetDir) Get-Parent-Device.exe
robocopy "$(ProjectDir)..\packages\System.Data.SQLite.Core.1.0.108.0\build\net46\$(PlatformName)" $(TargetDir) SQLite.Interop.dll
exit 0
Here is a screenshot of the build steps.
I saw the recommendation to use /MIR, but I do not want to mirror, just copy that specific file. Sadly, /log, /log+, and /v do not provide very verbose information on why in this specific instance, robocopy felt the need to not copy over the file.
I do not like to sweep the problem under the rug or to to understand a technical problem, hence my post here. My concern is that if I cannot rely on Robocopy, then it might be a bad choice for use inside Visual Studio. I need a reliable copy, not an unreliable one.
XCOPY TRIAL:
That did not work. So far the best solution is still a Visual Build Pro instruction for that specific configuration. :-(
PostBuildEvent:
"C:\Program Files\Editors\VisBuildPro9\Tools\signtool.exe" sign /f "C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\jmrDigicert-2017-NoChain.pfx" /p 1234 /t http://timestamp.verisign.com/scripts/timstamp.dll "C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\bin\x64\Debug\MyProject.exe"
xcopy /i "C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\..\Get-Parent-Device\Release\Get-Parent-Device.exe" C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\bin\x64\Debug\
robocopy "C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\..\packages\System.Data.SQLite.Core.1.0.108.0\build\net46\x64" C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\bin\x64\Debug\ SQLite.Interop.dll
robocopy "C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\..\..\Redistributables" C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\bin\x64\Debug\ AMBackup.exe
exit 0
Done Adding Additional Store
Successfully signed and timestamped: C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\bin\x64\Debug\MyProject.exe
C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\..\Get-Parent-Device\Release\Get-Parent-Device.exe
1 File(s) copied
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Robocopy is designed to only copy changed files, but the option /IS you have added is suppose to copy whatever you like. Try to add parameter /IT (Includes "tweaked" files), but in my experience it is not reliable either.
This post How do I force Robocopy to overwrite files? confirm my findings. Their solution was same as mine: use XCOPY.
This https://superuser.com/questions/314503/what-does-robocopy-mean-by-tweaked-lonely-and-extra/445137#445137 table shows how robocopy groups files.
Edit:
The error message you get is typically that "file does not exists" in source.Since your XCOPY test also failed then I'm 100% sure that the file does not exists.
Se example below:
C:\>dir x
Volume in drive C has no label.
Volume Serial Number is CE46-5CC1
Directory of C:\x
25.09.2018 23:37 <DIR> .
25.09.2018 23:37 <DIR> ..
27.07.2016 15:09 1 209 somefile
1 File(s) 1 209 bytes
2 Dir(s) 125 137 285 120 bytes free
C:\>robocopy /IS x y somefile
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : tirsdag 25. september 2018 23:38:07
Source : C:\x\
Dest : C:\y\
Files : somefile
Options : /DCOPY:DA /COPY:DAT /IS /R:1000000 /W:30
------------------------------------------------------------------------------
1 C:\x\
100% New File 1209 somefile
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 1 1 0 0 0 0
Bytes : 1.1 k 1.1 k 0 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Speed : 1209000 Bytes/sec.
Speed : 69.179 MegaBytes/min.
Ended : tirsdag 25. september 2018 23:38:07
C:\>robocopy /IS x y somefile
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : tirsdag 25. september 2018 23:38:13
Source : C:\x\
Dest : C:\y\
Files : somefile
Options : /DCOPY:DA /COPY:DAT /IS /R:1000000 /W:30
------------------------------------------------------------------------------
1 C:\x\
100% Same 1209 somefile
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 1 1 0 0 0 0
Bytes : 1.1 k 1.1 k 0 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Speed : 1209000 Bytes/sec.
Speed : 69.179 MegaBytes/min.
Ended : tirsdag 25. september 2018 23:38:13
C:\>robocopy /IS x y somefilex
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : tirsdag 25. september 2018 23:38:17
Source : C:\x\
Dest : C:\y\
Files : somefilex
Options : /DCOPY:DA /COPY:DAT /IS /R:1000000 /W:30
------------------------------------------------------------------------------
0 C:\x\
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 0 0 0 0 0 0
Bytes : 0 0 0 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Ended : tirsdag 25. september 2018 23:38:17
C:\>
I have encountered simular problems when building in Visual Studio. But I had to change the Build Dependencies and build order to solve it.
You could try to add a small delay in the post build, try adding like:
ping 127.0.0.1 -n 3 > nul
It will pause for 2 seconds before it continues...
I have an exe file fciv.exe in a folder which i have added to my path variable.
I checked it using
$env:Path
But if i just specify the name of the command,
fciv -h
powershell shows the command not found exception.
The same command works in the cmd command prompt.
I have the execution policy set to unrestricted
Is there anything else i should do to make it work in Powershell?
EDIT
The relevant lines from output of
Trace-Command Command* {fciv -h} -PSHost
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.ps1 in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.psm1 in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.psd1 in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.COM in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.EXE in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.BAT in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.CMD in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.VBS in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.VBE in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.JS in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.JSE in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.WSF in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.WSH in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.MSC in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.CPL in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandSearch Information: 0 : WriteLine Current patterns exhausted in current directory: "E:\My Software\FCIV"
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.ps1 in E:\My Software\AVG\Av
Note that "E:\My Software\FCIV" is the directory where fciv executable file is located.
EDIT 2
Looking at the command trace and seeing that it's looking for fciv.EXE in the right folder but skipping right thorugh, i thought the Upper Case of the extenseion .EXE was the problem so i tried adding .exe to the PATHEXT variable
Now it looks for fciv.exe in the correct folder but still skips right through it and says it has exhausted current patterns in the current directory.
EDIT 3
I have figured it out, it seems that in my PATH environment variable
"E:\My Software\FCIV"
appeared within double quotes while, no other directory was.
Command Prompt cmd was able to work despite this however powershell is not,
i don't see why but i am glad i at least found out how to solve the problem.
Note: You have updated your question with an answer, but it's nice to have an actual answer posted.
In your debug trace you get lines like the following:
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.ps1 in "E:\My Software\FCIV"
The path is "E:\My Software\FCIV" when it should be E:\My Software\FCIV.
This indicates your path is incorrectly set, and this item is quoted in your path when it does not need to be.
Here is an excerpt of an example trace from then I run iexplore.exe:
DEBUG: CommandDiscovery Information: 0 : Looking for iexplore.exe.* in
C:\Program Files (x86)\Internet Explorer DEBUG: CommandSearch
Information: 0 : WriteLine Next path found: C:\Program Files
(x86)\Internet Explorer\iexplore.exe DEBUG: CommandDiscovery
Information: 0 : Command Found: path (C:\Program Files (x86)\Internet
Explorer\iexplore.exe) is an application with name: iexplore.exe
Note that the paths are not quoted and it found the executable.
I'm trying to get a Techwell TW6869 driver to work. This PCIe-chip is able to capture analog video signals. Therefore I'm using a driver which can be found here: GitHub
The chip is connected to a Freescale imx.6 processor which is running Angström distribution. The driver already worked on the target but I didn't use it for some time and somehow it doesn't do it's job anymore.
So what I did, was implementing kernel messages in the beginning of each function so I know what does happen exactly. Finally I found out, that no PCIe Interrupt is generated anymore. Though the interrupt is registered which I found out here:
root#freescaleimx6:~# cat /proc/interrupts | grep tw6869
155: 0 0 0 0 GIC tw6869
Running something on the videodevice unfortunately does not generate an interrupt.
root#freescaleimx6:~# gst-launch-1.0 v4l2src device=/dev/video2 ! imxipuvideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:08.992961001
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
root#freescaleimx6:~#
This could also possibly help (does it?)
root#freescaleimx6:~# cat /proc/bus/pci/devices
0000 16c3abcd 180 1000000 0 0 0 0 0 1200000 100000 0 0 0 0 0 10000 pcieport
0100 17976869 9b 1100008 0 0 0 0 0 0 1000 0 0 0 0 0 0 tw6869
Does anyone have an idea?
I am running robocopy via the command line using:
\\server1\devl\cfapps\cfeis\ctr" "\\server2\test\cfapps\cfeis\ctr" "edit_items.cfm " /purge /log:\\server1\cfapps\cfeis\mysync2\logs\rc_10092014_txt /NDL /r:2 /w:2
Sometimes this works, but other times it doesnt. The log file will say:
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Thu Oct 09 08:59:34 2014
Source : \\server1\devl\cfapps\cfeis\ctr\
Dest : \\server2\test\cfapps\cfeis\ctr\
Files : edit_items.cfm
Options : /NDL /COPY:DAT /PURGE /R:2 /W:2
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 0 0 0 0 0 0
Bytes : 0 0 0 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Ended : Thu Oct 09 08:59:34 2014
This folder has way more than 1 directory and has a bunch of files, so apparently it'snot reading something correctly. I know the paths are correct and the user has the correct permissions, as it works every once in a while. What would stop this from working only sometimes?
Thanks.
I just realized that there was a space after the file name. Removed that and it worked fine.