# Hookmark export hang problem

**URL:** https://discourse.hookproductivity.com/t/hookmark-export-hang-problem/7383
**Category:** Bug Reports
**Created:** [November 22, 2023, 6:06pm UTC](https://discourse.hookproductivity.com/t/hookmark-export-hang-problem/7383 "2023-11-22T18:06:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DMisener](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/d/c57346/32.png) [@DMisener](https://discourse.hookproductivity.com/u/DMisener)
#### Post date: [November 22, 2023, 6:06pm UTC](https://discourse.hookproductivity.com/t/hookmark-export-hang-problem/7383/1 "2023-11-22T18:06:41Z")

</div>

# Hookmark export hang problem

- Problem:
  - Unable to export link data from Preferences / General / Linking / Link data: / Export.
  - I initiate export and the export _hangs_ at approximately 25% according to the _Exporting…_ progress bar.
  - According to OSX Activity monitor:
    - Minimal CPU usage (2.1%)
    - Bytes Written: 20KB
      - Note: Specified target export file isn’t created or even open.

- Background:
  - Goal
    - To migrate links from current system disk to an replacement system disk discarding link data for missing files.

  - Environment:
    - Processor 3.6 GHz 8-Core Intel Core i9
    - Graphics Radeon Pro 580X 8 GB
    - Memory 40 GB 2667 MHz DDR4
    - macOS Sonoma 14.1.1
    - Hook v6.0.1

  - Additional context:
    - The _Show Bookmarks window_ indicates:
      - All Bookmarks 23487

    - I suspect many of these are links to missing files
      - Easily over 75% due to high turnover churn rate…
        - I link each new version of third party application install packages with links to release info page and download page.
        - Periodically older versions of the of the installation packages are deleted when no longer required.

    - On the new replacement system disk there are already existing Hookmark links.
      - So merging exported old link data and new might be a problem.
      - I’ll cross that bridge if/when I can get a successful export.

---

<div class="post-metadata">

### Author: ![bchend](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/b/dbc845/32.png) [@bchend](https://discourse.hookproductivity.com/u/bchend)
#### Post date: [November 22, 2023, 7:52pm UTC](https://discourse.hookproductivity.com/t/hookmark-export-hang-problem/7383/2 "2023-11-22T19:52:28Z")

</div>

Sorry about this issue. Could you please take a process sample of Hookmark when it hangs? Here is how:

> **[How to Take a Process Sample of Hookmark with Activity Monitor app – Hookmark](https://hookproductivity.com/help/more/how-to-take-a-process-sample/)**
>
> If you find that Hookmark for macOS is unresponsive ("beachballs" or "hangs"), it is helpful to take a sample of the process and send it to us, explaining the problem.
> 
> 
> 
> First, in Finder, from the /Applications/Utilities folder, open the Activity...

Thank you

---

<div class="post-metadata">

### Author: ![bshi](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/b/edb3f5/32.png) [@bshi](https://discourse.hookproductivity.com/u/bshi)
#### Post date: [November 22, 2023, 10:33pm UTC](https://discourse.hookproductivity.com/t/hookmark-export-hang-problem/7383/3 "2023-11-22T22:33:35Z")

</div>

If you have external disks, mounted DMG files or network files, could you please disconnect/dismount them and try again?

---

<div class="post-metadata">

### Author: ![DMisener](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/d/c57346/32.png) [@DMisener](https://discourse.hookproductivity.com/u/DMisener)
#### Post date: [November 23, 2023, 2:52am UTC](https://discourse.hookproductivity.com/t/hookmark-export-hang-problem/7383/4 "2023-11-23T02:52:00Z")

</div>

Thanks for the quick response.

I no longer have a reproducible failing test case :-(.

After posting my discourse bug-fix;

- I tried to reduce the number of links.
- by _tediously_ searching and deleting ~/.Trash/… links ( over 6,000 of them!) using the _Show Bookmarks window._
- I then tried the export on the remaining 2,847 links and (_after 26 minutes_) it **successfully completed** the export (_29.2 mb_)!

I’m unsure as whether no longer having any ~/.Trash… links or the reduction of 26,000 too 20,847 links contributed to the success.

One thing I did notice was:

- After doing the recommended shutdown/restart of Hook before export, Hook used 45.9 mb.
- Hook’s memory utilization peaked at over **500 mb** during the export and returned to 78 mb at completion.

Could the original problem be related to garbage collection thrashing with large hook.sqlite database (_100 mb_)?

FYI: I noticed after removing the ~/.Trash/… links the size of hook.sqlite didn’t get smaller… even after a Hook restart.

Is there some option to reclaim the deleted space (_more for performance than disk footprint consideration_)?
