Alamantus / GooglePhotosExportOrganizer

A (defunct) tool for merging and organizing exported Google Photos backups. Built with React and Electron!
https://alamantus.github.io/GooglePhotosExportOrganizer/
73 stars 2 forks source link

Error organizing folders #20

Open junaidxabd opened 1 year ago

junaidxabd commented 1 year ago

When I try to "Organize Folders" it loads for a bit then just displays a complete progress bar with an exclamation mark. In the output folders there are just empty folders with no files in them. Is there any way to get error messages? If I output to the same folder it does start doing something but then crashes. I tried it on Windows, it does most of them but then crashes.

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Google Photos Export Organizer [7364]
Path:                  /private/var/folders/*/Google Photos Export Organizer_DEBUG.app/Contents/MacOS/Google Photos Export Organizer
Identifier:            com.my-website.google-photos-export-organizer
Version:               1.1.1 (1.1.1)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2022-12-13 12:19:02.5883 +0200
OS Version:            macOS 13.0 (22A380)
Report Version:        12
Anonymous UUID:        ES539B69-9131-06AA-A240SDRFD284F7095

Time Awake Since Boot: 45000 seconds

System Integrity Protection: enabled

Notes:
dyld_process_snapshot_create_for_process failed with 5

Crashed Thread:        0  CrBrowserMain  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes:       0x0000000000000001, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [7364]

VM Region Info: 0 is not in any region.  Bytes before following region: 4419297280
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      107692000-1076be000    [  176K] r-x/r-x SM=COW  ...ort Organizer

Error Formulating Crash Report:
dyld_process_snapshot_create_for_process failed with 5

Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0   Electron Framework                     0x10f84f1c1 ElectronInitializeICUandStartNode + 1310849
1   Electron Framework                     0x112ed44f3 v8::internal::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*) + 755
2   Electron Framework                     0x112ed4483 v8::internal::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*) + 643
3   Electron Framework                     0x112fad105 v8::internal::Heap::FinalizeIncrementalMarkingAtomically(v8::internal::GarbageCollectionReason) + 1781
4   Electron Framework                     0x10fe0eb34 v8::internal::Heap::builtin(int) + 4564
5   Electron Framework                     0x10fdec910 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) + 96
6   Electron Framework                     0x10fff0a93 v8::internal::RegExp::Exec(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::RegExpMatchInfo>) + 32579
7   Electron Framework                     0x110341798 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 484280
8   Electron Framework                     0x110357f0b v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 576299
9   ???                                 0x205a001d52af ???
10  Electron Framework                     0x1102cbd58 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 2424
11  Electron Framework                     0x110390fbb v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 809947
12  Electron Framework                     0x1102f3d57 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 166263
13  Electron Framework                     0x1102d1378 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 24472
14  Electron Framework                     0x10fdb2d76 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) + 1286
15  Electron Framework                     0x10fdb3ac3 v8::internal::Execution::TryCall(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*, v8::internal::Execution::MessageHandling, v8::internal::MaybeHandle<v8::internal::Object>*, bool) + 355
16  Electron Framework                     0x10fdb3ba0 v8::internal::Execution::TryCall(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*, v8::internal::Execution::MessageHandling, v8::internal::MaybeHandle<v8::internal::Object>*, bool) + 576
17  Electron Framework                     0x10fdc834f v8::internal::MicrotaskQueue::RunMicrotasks(v8::internal::Isolate*) + 463
18  Electron Framework                     0x10fdc8150 v8::internal::MicrotaskQueue::PerformCheckpoint(v8::Isolate*) + 32
19  Electron Framework                     0x1124088b4 node::InternalCallbackScope::Close() + 388
20  Electron Framework                     0x1124082c1 node::CallbackScope::~CallbackScope() + 49
21  Electron Framework                     0x1124699c6 napi_ref_threadsafe_function + 2358
22  Electron Framework                     0x10f6f9898 uv_random + 1432
23  Electron Framework                     0x10f6fd520 uv_async_send + 944
24  Electron Framework                     0x10f70eafc uv_free_interface_addresses + 2156
25  Electron Framework                     0x10f6fd997 uv_run + 375
26  Electron Framework                     0x10f84f7cc ElectronInitializeICUandStartNode + 1312396
27  Electron Framework                     0x11088b429 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6029385
28  Electron Framework                     0x110898b95 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6084533
29  Electron Framework                     0x1108987a0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6083520
30  Electron Framework                     0x1108ca6e0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6288128
31  Electron Framework                     0x1108c71fa v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6274586
32  Electron Framework                     0x1108ca0bf v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6286559
33  CoreFoundation                      0x7ff8134f0bc8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
34  CoreFoundation                      0x7ff8134f0b77 __CFRunLoopDoSource0 + 157
35  CoreFoundation                      0x7ff8134f0951 __CFRunLoopDoSources0 + 212
36  CoreFoundation                      0x7ff8134ef5cb __CFRunLoopRun + 929
37  CoreFoundation                      0x7ff8134eebb0 CFRunLoopRunSpecific + 560
38  HIToolbox                           0x7ff81cdd0bd6 RunCurrentEventLoopInMode + 292
39  HIToolbox                           0x7ff81cdd0806 ReceiveNextEventCommon + 199
40  HIToolbox                           0x7ff81cdd0723 _BlockUntilNextEventMatchingListInModeWithFilter + 70
41  AppKit                              0x7ff816611b37 _DPSNextEvent + 909
42  AppKit                              0x7ff8166109b8 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1219
43  AppKit                              0x7ff816602ff3 -[NSApplication run] + 586
44  Electron Framework                     0x1108cac76 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6289558
45  Electron Framework                     0x1108c9c52 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6285426
46  Electron Framework                     0x110899101 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6085921
47  Electron Framework                     0x1108777f9 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 5948441
48  Electron Framework                     0x11360e944 v8::internal::compiler::ZoneStats::GetCurrentAllocatedBytes() const + 2057540
49  Electron Framework                     0x1104ee692 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 2241202
50  Electron Framework                     0x1104ea159 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 2223481
51  Electron Framework                     0x1104b2401 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 1994785
52  Electron Framework                     0x1104b2126 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 1994054
53  Electron Framework                     0x10fcf572e ElectronInitializeICUandStartNode + 6186478
54  Electron Framework                     0x10fcf5c32 ElectronInitializeICUandStartNode + 6187762
55  Electron Framework                     0x10f70f108 ElectronMain + 136
56  Google Photos Export Organizer         0x1076965bd 0x107692000 + 17853
57  dyld                                0x7ff8130e5310 start + 2432
Alamantus commented 1 year ago

Hi @junaidxabd, I see you're using the Debug version, which should open the inspector panel automatically. Do any messages display in the Console tab when it stops processing folders?

In the meantime, one way that might help get around this issue is to split your Google Photos Export folder into a couple of smaller folders—when I first made the export organizer app, I didn't have a lot of files to play around with for optimization, so it's possible the app is attempting to process more files than it can handle.
Running it on multiple folders that have been separated out should work fine so long as the output folder is set to the same one each time. Let me know if that helps!

Bitwolfies commented 1 year ago

Same issue, the merge button just does, nothing. Even when set to only work on one album at a time. Arch Linux

Alamantus commented 1 year ago

@Bitwolfies I'm not able to debug on Arch linux, but it's possible that the app doesn't have the permissions it needs. Try launching it with sudo and see if that makes the merge button do anything?