Commit graph

25290 commits

Author SHA1 Message Date
Ghostkeeper
bb327b54ab
Merge branch 'CURA-8224_rate_limit_sending_materials_to_printer_over_lan' into 4.9 2021-05-06 16:47:57 +02:00
Jaime van Kessel
88660699eb
Fix stupid copypaste error 2021-05-06 16:33:28 +02:00
Ghostkeeper
16c5fdd798
Code style: Spaces around binary operators
Contrbutes to issue CURA-8224.
2021-05-06 16:27:09 +02:00
Jaime van Kessel
cab92952d3
Also add PETG to excluded materials of Dual UMO
CURA-8220
2021-05-06 16:22:54 +02:00
Jaime van Kessel
b2b10f693d
Rate limit the sending of materials to networked ultimakers
Some ultimakers tend to choke if you try and send a lot of materials in one go.

Previously we would also always send the materials on the main thread, which would also make
the interface freeze a bit. That should no longer happen.

The implementation of this is not really great, but since this is a hotfix i've opted to change
as little as possible.

CURA-8224
2021-05-06 15:43:39 +02:00
Jaime van Kessel
974d04a423
Also add red petg to exclude list for UM3 & UMO
Forgot to add them last time. Whoops.

CURA-8220
2021-05-06 11:52:03 +02:00
Ghostkeeper
7ce9d6b230
Add change log for Cura 4.9.1
These are the changes planned for this patch release.

Contributes to issue CURA-8213.
2021-05-05 14:26:34 +02:00
Ghostkeeper
731a3b1ddf
Write What's New page for PETG profiles
Cutting some tape here by writing it myself. Will give Marketing an opportunity to adjust it though.

Contributes to issue CURA-8213.
2021-05-05 09:56:36 +02:00
Ghostkeeper
acaf378f4b
Disallow Ultimaker PETG for Ultimaker 2+ printer
Apparently this has been tested and found to not print well.

Contributes to issue CURA-8200.
2021-05-04 11:54:46 +02:00
Jaime van Kessel
c53fde7612
Merge branch '4.9' of github.com:Ultimaker/Cura into CURA_8200_PETG_profiles 2021-05-03 11:14:15 +02:00
Jelle Spijker
778ab232df
Merge pull request #9732 from fieldOfView/fix_style_theme_undefined
Fix floods of QML errors in styles.qml
2021-05-03 10:57:01 +02:00
Kostas Karmas
9b58bf0490
Remove commented out code 2021-05-03 10:49:00 +02:00
Kostas Karmas
1347471fea
Remove unused function 2021-05-03 10:48:54 +02:00
Kostas Karmas
a6d311a0f2
Fix incompatible mypy type 2021-05-03 10:48:47 +02:00
Kostas Karmas
daa0826190
Fix mypy issues with the DigitalLibrary plugin 2021-05-03 10:48:40 +02:00
Jaime van Kessel
9fcc513edd
Add PETG quality profiles
CURA-8200
2021-05-03 10:46:35 +02:00
fieldOfView
4974b74109 Update copyright 2021-04-30 14:15:31 +02:00
fieldOfView
04bfd6b820 Use UM.Theme instead of Theme
This prevents hundreds of QML warning messages logged in some user reports of Cura being slow.

```
2021-04-30 11:42:01,492 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [411]: file:///.../cura/../resources/themes/cura-light/styles.qml:335: TypeError: Cannot read property 'getSize' of null
2021-04-30 11:42:01,492 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [411]: file:///.../cura/../resources/themes/cura-light/styles.qml:338: TypeError: Cannot read property 'getColor' of null
2021-04-30 11:42:01,500 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [411]: file:///.../cura/../resources/themes/cura-light/styles.qml:327: TypeError: Cannot read property 'getSize' of null
2021-04-30 11:42:01,500 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [411]: file:///.../cura/../resources/themes/cura-light/styles.qml:329: TypeError: Cannot read property 'getColor' of null
2021-04-30 11:42:01,500 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [411]: file:///.../cura/../resources/themes/cura-light/styles.qml:335: TypeError: Cannot read property 'getSize' of null
2021-04-30 11:42:01,500 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [411]: file:///.../cura/../resources/themes/cura-light/styles.qml:338: TypeError: Cannot read property 'getColor' of null
2021-04-30 11:42:01,500 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [411]: file:///.../cura/../resources/themes/cura-light/styles.qml:327: TypeError: Cannot read property 'getSize' of null
2021-04-30 11:42:01,500 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [411]: file:///.../cura/../resources/themes/cura-light/styles.qml:329: TypeError: Cannot read property 'getColor' of null
```
2021-04-30 12:22:40 +02:00
Jaime van Kessel
c800c2850c
Decrease update interval to 60 sec
It's the same as what the rest uses and it should decrease the load on our servers a lot
2021-04-30 10:51:15 +02:00
Jim Watson
653dd42e87
Fix for crashes on Mac 10.13 in 2010 era hardware
Not sure I understand why this works - size_x/y are for the end of the line not the start
2021-04-28 16:35:47 +02:00
Kostas Karmas
5b74090dce Merge branch 'df49' into 4.9 2021-04-20 16:09:54 +02:00
fvrmr
0db033a690 Update change log
Fixed typo
2021-04-20 12:34:41 +02:00
Kostas Karmas
d972c505d0 Initial commit for the DL 2021-04-20 11:30:49 +02:00
fvrmr
e19d5545bc Update change log and whats new pages
Update change log
Update whats new pages
Update whats new images
2021-04-20 11:26:31 +02:00
Konstantinos Karmas
196c891331
Merge pull request #9590 from Ultimaker/4.9_smartling_translations
4.9 translations
2021-04-19 13:36:27 +02:00
jelle Spijker
1b02525c90
Added Traditional Chinese
Contributed by valen Chang
2021-04-16 20:24:28 +02:00
jelle Spijker
c9b6282a62
Re-enabled Czech translations
Contributes to CURA-8153
2021-04-16 19:43:43 +02:00
Jelle Spijker
c6c0a8d192
Merge pull request #9503 from sustmi/czech-translations-4.9
Add Czech translations for Cura 4.9
2021-04-16 19:35:19 +02:00
jelle Spijker
b046b52cd9
poedit changes
CURA-8153
2021-04-16 19:27:48 +02:00
Jelle Spijker
c4a4a33991
Merge pull request #9563 from Patola/4.9
Updated pt_BR translation
2021-04-16 19:22:01 +02:00
Kostas Karmas
07594f17a7 Fix setting empty auth tokens in the keyring on startup
When Cura is starting up, it reads the authentication data from the preferences (cura.cfg). If
the auth tokens have previously been stored in the keyring, it means that their values will be null
in the cura.cfg file. Therefore, on startup, Cura reads the tokens as none from the preferences and
then sets the empty values in the keyring as tokens. This leads to the user being signed off every
time Cura restarts on Mac.

On Windows, the access token was still stored in the preferences, so on startup it was safe. The
refresh token, on the other hand, had the same issue as on Mac, which means that on startup it was
read as None from the cura.cfg and was stored in the keyring as an empty string. This meant that,
even though on startup (on windows) the user was kept signed in, the next time Cura was attempting
to refresh the access token (after 7-8 minutes), it wouldn't be able, since its refresh token was
read as "" from the keyring. Also, if the user would close Cura and reopen it after 10 minutes
(so after the access token had expired) then they would be signed off on windows too.

This commit fixes that by making sure that if the given value of the refresh and access tokens are
empty, then they will not be stored in the keyring.

CURA-8178
2021-04-16 17:05:08 +02:00
Kostas Karmas
d84743990d Merge branch '4.9' of https://github.com/Ultimaker/Cura into 4.9 2021-04-16 16:36:54 +02:00
Kostas Karmas
00ade8be3a Fix crashing if the quality_type_to_apply is None
Fixes sentry issue CURA-24D
2021-04-16 16:35:44 +02:00
Remco Burema
ecd70a98b9
Merge pull request #9586 from Ultimaker/CURA-8145_fix_animated_images
Support animated images in what's new pages
2021-04-16 16:33:23 +02:00
Ghostkeeper
2ecdd799c6
Support animated images in what's new pages
Let's hope they don't go too crazy with the file size of these. But animated GIFs are now supported here.

Fixes CURA-8145.
2021-04-16 16:13:52 +02:00
Kostas Karmas
df5c52d1c6 Fail gracefully if writing the backup to a temp file crashes
Fixes sentry issue CURA-21W
2021-04-16 15:55:06 +02:00
Kostas Karmas
6b1df6c7cb Update 4.9 translations after verification with PoEdit
CURA-8153
2021-04-16 15:18:34 +02:00
jelle Spijker
4a574a5ae1
Smartling translations
CURA-8153
2021-04-16 14:43:03 +02:00
Ghostkeeper
544b267447
Merge branch 'CURA-8004_fix_wrong_uploaded_print_job_cache' into 4.9 2021-04-16 12:05:06 +02:00
Remco Burema
1eb1a943b2
Process supposed to stop when already sending a job.
When using the visibility of the progress bar to detect if a job is already being sent, then make actually sure the progress bar is visible the moment the job starts, not at some unspecified time later in a method that might not even trigger if there is already a mesh ... so it's unlikely to even work, since the thing it was intended to prevent _very_ likely has the same mesh anyway.

CURA-8004
2021-04-15 16:53:01 +02:00
Kostas Karmas
ebdd21410e Merge branch '4.9' of https://github.com/Ultimaker/Cura into 4.9 2021-04-14 17:20:42 +02:00
Kostas Karmas
361bd8c6b1 Don't crash if the returned error has no title
Fixes sentry issue CURA-23P
2021-04-14 17:20:02 +02:00
Ghostkeeper
adb5f28aaf
Filter out disallowed characters from job name
Took a while to figure out exactly what to do here. But the task itself is simple.
The Ultimaker software apparently doesn't accept special characters here. The regex here is exactly the inverse of the regex that they use to accept job names.

Done as a 5 minute fix.
2021-04-14 16:56:17 +02:00
Remco Burema
4c5dac0dfd
Improve logging, UX for cloud-upload-errors.
One of the reasons this bug (see parent of this commit ... or the issue nr if you have internal access) was so vague is that A. the user was insufficiently prompted, and B. no one could find anything in our logs.

CURA-8004
2021-04-14 14:30:42 +02:00
Remco Burema
9227c303c6
Fix 'uploaded print-job cache' set before the mesh upload.
Since we use that to detect when the mesh is already uploaded, and thus can be reprinted, this could cause problems, since, while we do properly set it to None when an error is returned, if the request never returns to us, or if a reprint is started while the mesh is still uploading, the print-job cache could be set while the mesh wasn't actually there yet. Which could in theory have maybe caused the problems we see.

CURA-8004
2021-04-14 13:59:21 +02:00
Remco Burema
db74bbda60
Merge pull request #9577 from Ultimaker/fix_segfault_arranging_without_disallowed_areas
Fix segfault when arranging without any disallowed areas
2021-04-14 12:06:33 +02:00
Jaime van Kessel
45f5a222f0
Downgrade version of certain qml impots to as low as they need to be 2021-04-14 10:58:05 +02:00
Ghostkeeper
9dba4d554f
Fix segfault when arranging without any disallowed areas
So libnest2d is giving a segfault when it's being triggered without any disallowed areas. This is because we then give a single disallowed area for the border around the build plate, and give this disallowed area 0 vertices. Because libnest2d doesn't do defensive coding here, it's going to crash, taking Cura along with it. The crash is in libnest2d's function 'libnest2d::_Item<ClipperLib::Polygon>::rightmostTopVertex()'.

This segfault started happening recently in Cura. However it only happens when there are no disallowed areas. Steps to reproduce the error are:
- Use Custom FFF Printer.
- Set the Adhesion Type setting to 'None'.
- Load any two models.

I tracked the segfault down to this commit: 74ddbaab4b . That commit by itself is slightly mysterious but looks fine to me. It did give the hint that this segfault might be caused by empty polygons though. So for that reason, I figured that filtering out the empty polygons here in the arranger might fix it; and indeed it does. Passing empty polygons as fixed/disallowed areas is useless and invalid anyway. Apparently libnest2d doesn't deal well with it, but we might as well not send those polygons over then.
2021-04-14 00:32:50 +02:00
Remco Burema
e0e77327b5
Dropdown menu wasn't closing on MacOS.
CURA-8172
2021-04-13 13:38:58 +02:00
Jaime van Kessel
6f59473971
Merge pull request #9569 from fieldOfView/fix_mirrored_cura_logo
Fix the Cura logo
2021-04-12 15:18:09 +02:00