Skip to content

Commit 71f8a52

Browse files
committed
Add troubleshooting section
1 parent 072c1cd commit 71f8a52

File tree

6 files changed

+161
-0
lines changed

6 files changed

+161
-0
lines changed

antora.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ nav:
1515
- modules/user-manual/nav.adoc
1616
- modules/cli/nav.adoc
1717
- modules/library-conventions/nav.adoc
18+
- modules/troubleshooting/nav.adoc
1819
- modules/development/nav.adoc

modules/ROOT/pages/index.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ bottom left of the page.
2929
* xref:user-manual:index.adoc[User Manual]
3030
* xref:cli:index.adoc[CLI Reference]
3131
* xref:library-conventions:index.adoc[Library Conventions]
32+
* xref:troubleshooting:index.adoc[Troubleshooting]
3233
* xref:development:index.adoc[Development]
3334
3435
Didn't find what you're looking for?

modules/troubleshooting/nav.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* xref:index.adoc[]
2+
** xref:logging.adoc[]
3+
** xref:reporting.adoc[]
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
= Troubleshooting
2+
3+
In case you encounter any problems with LibrePCB, this chapter gives you some
4+
tips to get them solved or to get help from the community.
5+
6+
== Workspace Sync (Dropbox, Cloud, Git, ...)
7+
8+
If you sync your LibrePCB workspace with a cloud or similar, it's important to
9+
follow some rules to avoid problems:
10+
11+
* Exclude all files with pattern `cache_*` from the synchronization. These
12+
files are stored in the workspace subdirectory `data/libraries/`. If
13+
LibrePCB does not work correctly and you had these files synced, delete
14+
those files manually (while LibrePCB is closed) and try again. These files
15+
are automatically recreated after deletion.
16+
* Consider excluding files named `.lock` from the synchronization too if you
17+
experience problems with file locks. However, never open a project or
18+
library at the same time from multiple computers!
19+
* Hidden files ("dotfiles") must be synchronized. If hidden files are
20+
ignored by the sync, LibrePCB will not work correctly.
21+
22+
Note that even when following these rules, it's still not guaranteed that
23+
everything works correctly. Especially with clouds the problem is that they
24+
are not operating "atomically", which can cause very serious troubles.
25+
Therefore we do not recommend to store any LibrePCB files in a cloud.
26+
27+
Working with a version control system like Git however is fine, since it works
28+
atomically and even allows to roll back a change in the very unlikely case
29+
something is messed up. We just recommend to use version control per-project
30+
and per-library, not for the whole workspace.
31+
32+
== Wayland
33+
34+
There are some known issues when using LibrePCB natively on Wayland. If you
35+
experience any problems, please try XWayland or X11 (both should work fine).
36+
37+
== Slow/Laggy UI
38+
39+
On some systems, especially with large projects, the UI could get a bit
40+
laggy. We are aware of this and try to improve it. In the mean time, try the
41+
following things:
42+
43+
* Reduce grid density or disable grid completely
44+
* Avoid huge schematics -- split them into multiple sheets (e.g. DIN A4 format)
45+
* In the schematic editor, hide pin numbers (toggle menu:View[Show Pin Numbers])
46+
* In the board editor, reduce the number of visible layers
47+
* Enable or disable OpenGL in workspace settings (test both modes)
48+
* If using a high-resolution display, try to reduce resolution
49+
* On a laptop, plug in the charger :-)
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
= Logging Output
2+
3+
For various kinds of problems, it helps to see what LibrePCB internally does
4+
and what low-level errors occurred but aren't displayed (in every detail)
5+
in the graphical user interface.
6+
7+
Those messages are always written to `stderr` -- To see them, just run LibrePCB
8+
from a terminal. Note that on Windows you have to redirect `stderr` to a file
9+
and open the file in Notepad afterwards.
10+
11+
.Windows cmd.exe (PowerShell doesn't work!)
12+
13+
[source,bash]
14+
----
15+
"C:\Program Files\LibrePCB\bin\librepcb.exe" > log.txt 2>&1
16+
----
17+
18+
After closing LibrePCB, open `C:\Users\%USERNAME%\log.txt` in Notepad.
19+
20+
.MacOS Terminal
21+
22+
[source,bash]
23+
----
24+
/Applications/LibrePCB.app/Contents/MacOS/librepcb
25+
----
26+
27+
.Linux/UNIX Shell
28+
29+
[source,bash]
30+
----
31+
/path/to/librepcb
32+
----
33+
34+
Currently this is the only way to get logging messages. Logging to a file
35+
is not implemented yet, and the verbosity cannot be configured.
36+
37+
.Example Output
38+
[source,bash]
39+
----
40+
./librepcb-1.1.0-linux-x86_64-qt6.AppImage
41+
[ INFO ] LibrePCB 1.1.0 (18a3d4589)
42+
[ INFO ] Qt version: 6.6.2 (compiled against 6.6.2)
43+
[ INFO ] Resources directory: "/tmp/.mount_librepHOglKc/opt/share/librepcb"
44+
[ INFO ] Application settings: "/home/user/.config/LibrePCB/LibrePCB.ini"
45+
[ INFO ] Cache directory: "/home/user/.cache/LibrePCB/LibrePCB"
46+
[DEBUG-MSG] Network access manager thread started.
47+
[DEBUG-MSG] Recently used workspace: "/home/user/LibrePCB-Workspace"
48+
[DEBUG-MSG] Detected light theme based on window background color #efefef.
49+
[DEBUG-MSG] Open workspace data directory "/home/user/LibrePCB-Workspace/data"...
50+
[DEBUG-MSG] Load workspace settings...
51+
[DEBUG-MSG] Successfully loaded workspace settings.
52+
[DEBUG-MSG] Load workspace library database...
53+
[DEBUG-MSG] Successfully loaded workspace library database.
54+
[DEBUG-MSG] Successfully opened workspace.
55+
[DEBUG-MSG] Workspace library scanner thread started.
56+
[ INFO ] Loaded parts information cache from "/home/user/.cache/LibrePCB/LibrePCB/parts.lp".
57+
[DEBUG-MSG] Cleaned outdated live information about 0 parts.
58+
[DEBUG-MSG] Start workspace library scan in worker thread...
59+
[DEBUG-MSG] Workspace libraries indexed: 47 libraries in 25 ms.
60+
[DEBUG-MSG] Workspace library scan succeeded: 5515 elements in 12876 ms.
61+
[DEBUG-MSG] Network access manager thread stopped.
62+
[DEBUG-MSG] Workspace library scanner thread stopped.
63+
[DEBUG-MSG] Exit application with code 0.
64+
----
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
= Reporting Problems
2+
3+
If you like to report a problem or you want to ask for help, choose one of
4+
the ways listed https://librepcb.org/help/[here].
5+
6+
Generally the discussion forum is always a good place to ask. A GitHub issue
7+
is preferred for bug reports, but only if it's clearly a bug -- otherwise
8+
ask in the forum first.
9+
10+
[IMPORTANT]
11+
====
12+
For any problem report, please include as much details as possible! Many
13+
problems are platform-specific, deployment-specific, usecase-specific etc.
14+
and we're all not clairvoyants so please let us know these details.
15+
16+
System Information::
17+
If you are able to run LibrePCB, open the _About LibrePCB_ dialog and **copy
18+
the whole text** from the _Details_ tab into your report. This is very
19+
important information.
20+
+
21+
If you are not able to run LibrePCB, please let us know the following
22+
information:
23+
+
24+
* Operating system & version
25+
* CPU Architecture (x86, x86_64, ARM, Apple Silicon, ...)
26+
* LibrePCB version (MAJOR.MINOR.PATCH)
27+
* On Linux: X11 or Wayland?
28+
29+
Installation Method::
30+
How did you install LibrePCB? Installer, Portable, Snap, Self-built, ...?
31+
32+
Steps to Reproduce::
33+
What did you do before the problem occurred? Describe **exactly**,
34+
step-by-step, what you did before the problem occurred.
35+
36+
Problem Description::
37+
Describe **exactly** what happened. Which error messages occurred? How did
38+
LibrePCB behave?
39+
40+
Logging Messages::
41+
For technical problems, it can be helpful to also include all
42+
xref:logging.adoc[logging messages].
43+
====

0 commit comments

Comments
 (0)