Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

The component with the UUID does not exist in the project's library! #390

Closed
shakenov-chinga opened this issue Dec 10, 2018 · 7 comments

Comments

@shakenov-chinga
Copy link

commented Dec 10, 2018

Hi guys!
I was working on my new project, and decided to try LibrePCB for that purpose. You made quite a progress since last year and I want to thank you for your hard work 馃憤 .
So, I created several libraries and used it in the project. Then I made little changes in one of its component, updated libraries from within schematics window and got error window with message
The component with the UUID "aeb89f16-126b-40b7-84e1-242b0ec7eafd" does not exist in the project's library!
It does exist, and it is from a different library, where I didn't touch anything.

I started LibrePCB using terminal, here is an output:
~/LibrePCB/stable/bin$ ./librepcb
Load stroke font: "newstroke.bene"
Start loading font "/home/chinga/LibrePCB/stable/share/librepcb/fontobene/newstroke.bene"
[ INFO ] "LibrePCB 0.1.0 (d7458d3)" (:0)
[ INFO ] "Qt version: 5.9.1 (compiled against 5.9.1)" (:0)
[ INFO ] "Resources directory: /home/chinga/LibrePCB/stable/share/librepcb" (:0)
[ INFO ] "Application settings: /home/chinga/.config/LibrePCB/LibrePCB.ini" (:0)
[DEBUG-MSG] Started network access manager thread. (:0)
[ WARNING ] There was a stale lock on the workspace: "FilePath(/home/chinga/Dropbox/LibrePCB)" (:0)
[DEBUG-MSG] Load workspace settings... (:0)
[ INFO ] Workspace settings file not found, default settings will be used. (:0)
[DEBUG-MSG] Workspace settings successfully loaded! (:0)
[DEBUG-MSG] Load local workspace library: "connectors.lplib" (:0)
[EXCEPTION] Not a valid URL. (../../../../libs/librepcb/common/fileio/../fileio/sexpression.h:282)
[EXCEPTION] File parse error: Not a valid URL.

File: /home/chinga/Dropbox/LibrePCB/v0.1/libraries/local/connectors.lplib/library.lp
Line,Column: -1,-1
Invalid Content: "" (../../../../libs/librepcb/common/fileio/../fileio/sexpression.h:98)
[ WARNING ] "File parse error: Not a valid URL.\n\nFile: /home/chinga/Dropbox/LibrePCB/v0.1/libraries/local/connectors.lplib/library.lp\nLine,Column: -1,-1\nInvalid Content: """ (:0)
[DEBUG-MSG] Load local workspace library: "projects.lplib" (:0)
[EXCEPTION] Not a valid URL. (../../../../libs/librepcb/common/fileio/../fileio/sexpression.h:282)
[EXCEPTION] File parse error: Not a valid URL.

File: /home/chinga/Dropbox/LibrePCB/v0.1/libraries/local/projects.lplib/library.lp
Line,Column: -1,-1
Invalid Content: "" (../../../../libs/librepcb/common/fileio/../fileio/sexpression.h:98)
[ WARNING ] "File parse error: Not a valid URL.\n\nFile: /home/chinga/Dropbox/LibrePCB/v0.1/libraries/local/projects.lplib/library.lp\nLine,Column: -1,-1\nInvalid Content: """ (:0)
[DEBUG-MSG] Load remote workspace library: "326f091b-b715-44bf-b385-b613cd60d9f3.lplib" (:0)
[DEBUG-MSG] Load remote workspace library: "5d00d6ec-ce1e-4a1c-b5fb-78d1d41bdde7.lplib" (:0)
[DEBUG-MSG] Load remote workspace library: "6ccc516c-21b7-4cd5-9cf2-7a04cfa361c6.lplib" (:0)
[DEBUG-MSG] Load remote workspace library: "a9ddf0c6-9b1c-4730-b300-01b4f192ad40.lplib" (:0)
[DEBUG-MSG] Load remote workspace library: "b404d66b-62ea-4e55-97fd-bbc1be7c297a.lplib" (:0)
[DEBUG-MSG] Load workspace library database... (:0)
[DEBUG-MSG] Workspace library database successfully loaded! (:0)
[DEBUG-MSG] Successfully loaded font "/home/chinga/LibrePCB/stable/share/librepcb/fontobene/newstroke.bene" with 2573 glyphs (:0)
[DEBUG-MSG] open project: "/home/chinga/Dropbox/LibrePCB/projects/Project/Project.lpp" (:0)
[DEBUG-MSG] Load stroke font: "newstroke.bene" (:0)
[DEBUG-MSG] Start loading font "/home/chinga/Dropbox/LibrePCB/projects/Project/resources/fontobene/newstroke.bene" (:0)
[DEBUG-MSG] load project metadata... (:0)
[DEBUG-MSG] metadata successfully loaded! (:0)
[DEBUG-MSG] load settings... (:0)
[DEBUG-MSG] settings successfully loaded! (:0)
[DEBUG-MSG] load project library... (:0)
[DEBUG-MSG] successfully loaded 0 symbols (:0)
[DEBUG-MSG] successfully loaded 0 packages (:0)
[DEBUG-MSG] successfully loaded 0 components (:0)
[DEBUG-MSG] successfully loaded 0 devices (:0)
[DEBUG-MSG] project library successfully loaded! (:0)
[DEBUG-MSG] load circuit... (:0)
[EXCEPTION] The component with the UUID "aeb89f16-126b-40b7-84e1-242b0ec7eafd" does not exist in the project's library! (../../../../libs/librepcb/project/circuit/componentinstance.cpp:66)

I work on two different PCs with Linux Mint 18.3 and Debian 9.6. Both show the same output.
I can share my workspace later, if it is needed.
Thanks in advance!

@ubruhin

This comment has been minimized.

Copy link
Member

commented Dec 10, 2018

Hi guys!
I was working on my new project, and decided to try LibrePCB for that purpose. You made quite a progress since last year and I want to thank you for your hard work +1 .

Hi @shakenov-chinga, you're welcome! And thanks for trying LibrePCB 馃槂

Then I made little changes in one of its component, updated libraries from within schematics window and got error window with message
The component with the UUID "aeb89f16-126b-40b7-84e1-242b0ec7eafd" does not exist in the project's library!

Did this error only appear in the project library updater and the project is still working properly (except that it can't be updated)? Or is it now permanently broken, so you can't open the project anymore?

[ WARNING ] There was a stale lock on the workspace: "FilePath(/home/chinga/Dropbox/LibrePCB)" (:0)

Did LibrePCB maybe crash during the library update or so?

@shakenov-chinga

This comment has been minimized.

Copy link
Author

commented Dec 11, 2018

Hi,

Did this error only appear in the project library updater and the project is still working properly (except that it can't be updated)? Or is it now permanently broken, so you can't open the project anymore?

Error appeared in the project library updater and project was permanently broken.

Did LibrePCB maybe crash during the library update or so?

No, LibrePCB didn't crash at all. The library updater showed errors after all updates, but didn't crash. Unfortunately, I don't remember what kind of errors was in the library updater. Control Panel was still running and I were able to create and edit other projects, but unable to open my project.

I think I fixed it now. I compared my project with some other dummy project and figured out that library directory in my project folder was empty. I copied cmp, dev, pkg and sym folders from remote and local library lplib folders. I think I copied some unnecessary libraries, because project opens now with big delay.

I weren't able to recreate this error again. I'll give an update if I have this error again.
Thank you very much!

@shakenov-chinga

This comment has been minimized.

Copy link
Author

commented Dec 11, 2018

Too many library instances in the project freezes my schematic and board editor windows. Therefore, I had to delete all and manually copy needed parts from cmp, dev, pkg and sym folders one by one. It wasn't easy, since folders are named by uuid values, but still works 馃槂!

It would be good to implement library checking feature, which will add needed parts from remote and local libraries and delete unused ones. 馃槃

@ubruhin

This comment has been minimized.

Copy link
Member

commented Dec 11, 2018

Hmm okay, strange...

Btw, I forgot to mention that there might be a "library~" directory in your project - if yes, that would be a backup of the whole "library" directory, created right before starting the project library update :)

@mdubinko

This comment has been minimized.

Copy link

commented Jan 12, 2019

This seems like potentially a duplicate issue. Demostrated herein. (unlisted video)
https://youtu.be/TV7EBEiH7qc

Descripion: I created a new library component, a 16-segment LED display. I initially got the pin assignments wrong, so I went to the Packages screen and reassigned the pads. This resulted in things being broken all over the Devices screen. The 'Component Signal' settings all reverted to not connected, and when trying to reset them, I got an error message about the UUID not existing.

(To solve it, I had to manually edit my library files. Thank goodness for BBEdit rectangular selection. I bulk copied all the pad UUIDs from device.lp and blasted them into package.lp. This made the UUIDs exist, though the assignments were wrong. I was able to manually reassign pads to component signals in the UI, and now the library editor is happy, but I can't see the component to add it to a schematic...[sigh].)

@ubruhin

This comment has been minimized.

Copy link
Member

commented Jan 13, 2019

@mdubinko I don't think your issue is a duplicate of this one. This issue is about the project's library, but yours is related to the workspace library. Is it possible that you removed and re-added pads in the package after creating the device? If yes, that's probably the problem. Pads must not be removed afterwards, as this breaks all devices using that package (the library editor should have shown a warning in that case).

but I can't see the component to add it to a schematic

Probably the component doesn't have a category assigned? Only components with categories assigned are listed in the "add component" dialog.

@ubruhin

This comment has been minimized.

Copy link
Member

commented Mar 5, 2019

As the whole file system access was refactored in #422, it's possible that this issue is now fixed automatically (although I could never reproduce it and thus I don't know what was going wrong exactly).

I close this issue for now. If it still happens with the upcoming 0.1.1 release some time, we could re-open it.

@ubruhin ubruhin closed this Mar 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can鈥檛 perform that action at this time.