Giter Club home page Giter Club logo

chimp's People

Contributors

dmitry-shechtman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chimp's Issues

Aborts with USB reader

CHIMP is unable to format and install CHDK because it aborts with "Card must be locked" error

image

I'm using USB SD card reader and it does not check for card being locked. IMO CHIMP should just warn about this but not error and abort...

PowerShot N Facebook selection is permanent

  1. Insert card with PowerShot N image.
  2. Go to Detect Camera.
  3. Select PowerShot N Facebook.
  4. Go to Action.
  5. Go back to Detect Camera.
  6. Select PowerShot N.
  7. Go to Action.
  8. Select Install CHDK Stable.
  9. Proceed to install.
  10. CHDK for PowerShot N Facebook is installed.

Error during format: The volume is too small for FAT32

SD card is 8GB.
CHIMP created FAT partition successfully as 2MB.
CHIMP erroneously tried to create the FAT32 partition as only a 2MB partition which then throws the error that The volume is too small for FAT32. and Format failed. then it can't find the element....

Please fix as there doesn't appear to be any workaround.

CHIMP-20170915.txt

HowTo: compile application

In release section I found only ZIP with sources, without binary application.

Please add to README.md how to build application :

  1. Download and unpack CHIMP sources (remember this path as <chimp_unpack_path>).

  2. Download and install "Build Tools for Visual Studio 2017" (expand spoiler "Tools for Visual Studio 2017" on download page for see it)
    https://visualstudio.microsoft.com/downloads/

  3. Download Nuget binary to <chimp_unpack_path>\CHIMP-0.x.x\src\CHIMP\CHIMP\
    https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
    or from any link on https://www.nuget.org/downloads

  4. Open installed "Visual Studio 2017 Developer Command Prompt" and run following commands:

cd <chimp_unpack_path>\CHIMP-0.x.x\src\CHIMP\CHIMP
nuget install -OutputDirectory ..\packages
msbuild /property:Configuration=Release;OutputPath=bin\Release\ CHIMP.csproj
  1. Run and use compiled CHIMP application:
    CHIMP-0.x.x\src\CHIMP\CHIMP\bin\Release\CHIMP.exe

Crash on empty drive

ChdkUtility-20170618.zip

Hi Dmitrys
I just tried CHIMP. Cool! Thanks a lot for it!
On my laptop with build in SD card reader it workt 100%
On my my desktop there is an external card reader connected over USB with 3 drives.
When there is a drive without any card in it (usualy there is only one in) CHIMP crashes with:
System.IO.FileNotFoundException: The device is not ready
Maybe there is a way to detect empty drives?

Greetings,

Harald

app crashes with cryptic error message (probably because SD card is readonly?)

ran, attempting install of CHDM on a 16GB SD card for a Canon Powershot G12

wizard gets to the install part and fails with this error:
image

stack trace is:

 at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at Chimp.Device.WriteBlock(SafeFileHandle hDevice, Byte[] buffer, UInt32 size) in D:\projects\external\CHIMP\src\CHIMP\CHIMP\Device.cs:line 42
   at Chimp.Services.PartitionService.CreatePartitions(String driveLetter) in D:\projects\external\CHIMP\src\CHIMP\CHIMP\Services\PartitionService.cs:line 82
   at Chimp.Services.InstallService.CreatePartitions() in D:\projects\external\CHIMP\src\CHIMP\CHIMP\Services\InstallService.cs:line 52
   at Chimp.Installers.Installer.CreatePartitions() in D:\projects\external\CHIMP\src\CHIMP\CHIMP\Installers\Installer.cs:line 189
   at Chimp.Installers.Installer.CopyPartition() in D:\projects\external\CHIMP\src\CHIMP\CHIMP\Installers\Installer.cs:line 163
   at Chimp.Installers.Fat32Installer.Install(CancellationToken cancellationToken) in D:\projects\external\CHIMP\src\CHIMP\CHIMP\Installers\Fat32Installer.cs:line 26
   at Chimp.Installers.Installer.<>c__DisplayClass44_0.<InstallAsync>b__0() in D:\projects\external\CHIMP\src\CHIMP\CHIMP\Installers\Installer.cs:line 69
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Chimp.Installers.Installer.<InstallAsync>d__44.MoveNext() in D:\projects\external\CHIMP\src\CHIMP\CHIMP\Installers\Installer.cs:line 69
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Chimp.Controllers.InstallController.<InstallAsync>d__13.MoveNext() in D:\projects\external\CHIMP\src\CHIMP\CHIMP\Controllers\InstallController.cs:line 88
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Chimp.Controllers.InstallController.<EnterStepAsync>d__11.MoveNext() in D:\projects\external\CHIMP\src\CHIMP\CHIMP\Controllers\InstallController.cs:line 40
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Chimp.MainWindow.<OnSelectedIndexChangedAsync>d__35.MoveNext() in D:\projects\external\CHIMP\src\CHIMP\CHIMP\MainWindow.xaml.cs:line 203
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Chimp.MainWindow.<Step_PropertyChanged>d__24.MoveNext() in D:\projects\external\CHIMP\src\CHIMP\CHIMP\MainWindow.xaml.cs:line 87
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Only after staring at this for a bit did I try another program, and then I realized I'm -pretty sure- I have the lock on the SD card because I'm dumb, and about to test that. Also, STICK fails and reports this when I run it, so guessing that's probably it:
image

I think this probably should fail then, but the error message could just be a bit more user-friendly, maybe print some logs with the stack trace somewhere? Maybe we can give the user a hint about where to look for the solution.

I'll attempt to trace this down a bit more after dinner, if it's easy I'll throw in a pull request.

Thanks for you work on this tool!

startup fails

I don't know what further details there are for usage - but I start the program with the SD card in the computer (to install CHDK) and I get the error:
Detecting Card - Error, Value cannot be null, Parameter name Key

Disk.GetDeviceName() crash on pCloud drive

I have a pCloud storage account which maps the storage as a drive to your computer. CHIMP crashes immediately when it checks for sdcards, as long as the drive is mapped:

2018-02-12T15:39:40.0234140+01:00 [VRB] Entering "Card" (b93f6593)
2018-02-12T15:39:40.0546390+01:00 [VRB] Detecting cards (10dcce48)
2018-02-12T15:39:40.1097543+01:00 [INF] Detected {"DeviceId":"\\?\Volume{c6729ed9-3c03-11e7-af3a-5453edb6a239}\","DriveLetter":"P:","Label":"pCloud Drive","FileSystem":"exFAT","Capacity":2199023255552,"FreeSpace":1771341754368} (3b5ca34b)
2018-02-12T15:39:40.1407727+01:00 [FTL] System.AggregateException: Mindestens ein Fehler ist aufgetreten. ---> System.Runtime.InteropServices.COMException: Unzulässige Funktion. (Ausnahme von HRESULT: 0x80070001)
bei Chimp.Disk.GetDeviceName() in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Disk.cs:Zeile 60.
bei System.Lazy1.CreateValue() bei System.Lazy1.LazyInitValue()
bei Chimp.Disk.GetDiskParams(UInt32& sectorSize, UInt64& driveSectors, UInt64& diskSize) in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Disk.cs:Zeile 28.
bei Chimp.Disk..ctor(Volume volume) in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Disk.cs:Zeile 17.
bei Chimp.Volume.GetDisk() in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Volume.cs:Zeile 33.
bei System.Lazy1.CreateValue() bei System.Lazy1.LazyInitValue()
bei Chimp.Services.PartitionService.GetPartitionTypes(String driveLetter) in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Services\PartitionService.cs:Zeile 122.
bei Chimp.Controllers.CardController.CreateCardItem(CardInfo card) in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Controllers\CardController.cs:Zeile 202.
bei System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() bei System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
bei System.Collections.ObjectModel.ObservableCollection1.CopyFrom(IEnumerable1 collection)
bei Chimp.Controllers.CardController.CreateViewModel() in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Controllers\CardController.cs:Zeile 117.
bei Chimp.Controllers.CardController.Initialize() in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Controllers\CardController.cs:Zeile 45.
bei System.Threading.Tasks.Task.Execute()
--- Ende der internen Ausnahmestapelüberwachung ---
bei Chimp.Controllers.Controller1.OnInitialized(Task task) in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Controllers\Controller.cs:Zeile 43. bei System.Threading.Tasks.Task.Execute() --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bei Chimp.Controllers.Controller1.d__3.MoveNext() in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Controllers\Controller.cs:Zeile 31.
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei Chimp.Containers.ControllerContainer.d__7.MoveNext() in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Containers\ControllerContainer.cs:Zeile 45.
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei Chimp.Containers.ControllerContainer.d__6.MoveNext() in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Containers\ControllerContainer.cs:Zeile 34.
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei Chimp.MainWindow.d__35.MoveNext() in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\MainWindow.xaml.cs:Zeile 202.
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei Chimp.MainWindow.<Step_PropertyChanged>d__24.MoveNext() in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\MainWindow.xaml.cs:Zeile 87.
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---> (Interne Ausnahme #0) System.Runtime.InteropServices.COMException (0x80070001): Unzulässige Funktion. (Ausnahme von HRESULT: 0x80070001)
bei Chimp.Disk.GetDeviceName() in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Disk.cs:Zeile 60.
bei System.Lazy1.CreateValue() bei System.Lazy1.LazyInitValue()
bei Chimp.Disk.GetDiskParams(UInt32& sectorSize, UInt64& driveSectors, UInt64& diskSize) in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Disk.cs:Zeile 28.
bei Chimp.Disk..ctor(Volume volume) in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Disk.cs:Zeile 17.
bei Chimp.Volume.GetDisk() in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Volume.cs:Zeile 33.
bei System.Lazy1.CreateValue() bei System.Lazy1.LazyInitValue()
bei Chimp.Services.PartitionService.GetPartitionTypes(String driveLetter) in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Services\PartitionService.cs:Zeile 122.
bei Chimp.Controllers.CardController.CreateCardItem(CardInfo card) in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Controllers\CardController.cs:Zeile 202.
bei System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() bei System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
bei System.Collections.ObjectModel.ObservableCollection1.CopyFrom(IEnumerable1 collection)
bei Chimp.Controllers.CardController.CreateViewModel() in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Controllers\CardController.cs:Zeile 117.
bei Chimp.Controllers.CardController.Initialize() in C:\Users\Dmitry\Documents\GitHub\CHDKUtil\CHIMP\src\CHIMP\CHIMP\Controllers\CardController.cs:Zeile 45.
bei System.Threading.Tasks.Task.Execute()<---
(888381fe)
2018-02-12T15:39:41.0297301+01:00 [VRB] Leaving "Card" (d90f1dd5)
2018-02-12T15:39:41.0327338+01:00 [VRB] Detecting cards (10dcce48)
2018-02-12T15:39:41.0412374+01:00 [INF] Exit code: -2146233088 (33024a0b)
2018-02-12T15:39:41.0412374+01:00 [INF]
(c290f677)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.