Commit graph

1709 commits

Author SHA1 Message Date
zhimin.zeng
c0ee8d4f0f FIX: remove duplicate flush_volumes
Change-Id: I86e3cc1ccd997e5c61915052e70c426bead289b1
(cherry picked from commit 1a615790fe0ac39d9ce0776079c34cf7f2c6217b)
2023-02-02 12:14:41 +08:00
lane.wei
1fe0d7be8c ENH: refine some small logic
1. continue post_init when gl window not ready under linux
2. use deleted_wipe_towers in reload_scene to judge whether it is deleted

Change-Id: I5be2ac876842e5432d254d47e4fe31f066455106
(cherry picked from commit 5e61a21d5662ccc656136b6a219c2358364c36d9)
2023-02-02 12:14:41 +08:00
fang64
fe5629f0ed Add GitHub Action Workflow to Build AppImage 2023-02-01 21:12:20 +08:00
fang64
472da36b7e Add support for AppImage build in containers. 2023-02-01 21:12:20 +08:00
fang64
1693086504 Add -r flag to BuildLinux.sh to skip ram check 2023-02-01 21:12:20 +08:00
Joshua Wise
aa2d692910 Linux: ensure that a GLCanvas3D can become active before attempting to start OpenGL (fixes #1149)
On Linux, GLEW requires (at least, in EGL land) that an OpenGL context be
active before glew_Init is called -- otherwise, GLEW doesn't know what
extension symbols to look up.  If glew_Init fails, then some symbols
elsewhere will not exist, and the app will shortly crash.  We work around
this by detecting if we're actually ready for postinit, and if not,
resetting the flag so that wxEVT_IDLE will cause us to try again later, when
the window hopefully has gone into the foreground and is ready to be used.
2023-02-01 16:24:44 +08:00
Joshua Wise
a082ce50ed slic3r: address sanitizer cleanup around wipe tower deletion
When determining whether or not we need to update the object list, we check
all of the objects that are being deleted to see if they're a wipe tower.
Unfortunately, by the time we check, the objects have already been deleted,
and the memory has been freed!  Avoid this by writing down for deleted
objects whether they are wipe towers, and if they were, we can indeed skip
updating the object list.
2023-02-01 16:24:44 +08:00
Joshua Wise
0078c2a22e slic3r: address sanitizer cleanup in GLVolume
Now that GLVolume has a subclass, GLWipeTowerVolume, it needs a virtual
destructor, too.  See:

  https://stackoverflow.com/questions/41552966/getting-new-delete-type-mismatch-from-asan
2023-02-01 16:24:44 +08:00
Joshua Wise
040af5fa98 slic3r: address sanitizer cleanup in TreeSupport::generate_contact_points
In generate_contact_points, the rotated_dims don't actually generate a
Point, but generate an abstract expression that holds a reference to
bounding_box_size.  Unfortunately, this goes wrong because bounding_box_size
ages out instantly; GCC's Address Sanitizer complains that this is a
"stack-use-after-scope" issue.

Interestingly, the Eigen documentation says that this is a known problem
with using C++11 "auto" to generate matrices (which a Point is)!  It is
buried here: https://eigen.tuxfamily.org/dox/TopicPitfalls.html

This is probably an extremely theoretical correctness improvement, and also
an extremely theoretical performance improvement.  But it is an improvement
nonetheless, and, more importantly, it enables me to continue to run the
slicer with Address Sanitizer turned on to find other potential issues.
2023-02-01 16:24:44 +08:00
Joshua Wise
ab64ae8c63 slic3r: address sanitizer cleanup in ImGuiWrapper::load_svg
ImGuiWrapper::load_svg previously could load an image that was not of the
aspect ratio specified by the target_width and target_height, and as a
result, could create an output vector that was smaller (or differently
shaped!) than the target_width and target_height.  GCC's Address Sanitizer
flagged this because init_font was reading over the end of the allocated
buffer, but this also meant that images with incorrect aspect ratios might
get rendered to the font canvas incorrectly.

To solve this, we pass the generated width and height out from load_svg, and
use it when copying images later.
2023-02-01 16:24:44 +08:00
lane.wei
64173b3fa3 FIX: fix the duplicate model issue after open recent project in some corner cases
github issue-1185

Change-Id: I3be5be473cfe7328c4781b1533093cd860e64387
2023-02-01 16:24:44 +08:00
lane.wei
7102a1e235 FIX: fix the slicing result different issue
when move volume in objects copied from other object
the result is not correct

Change-Id: Ieebc586f11c42429902d653e871c038d096783e8
2023-02-01 16:24:44 +08:00
lane.wei
a759df62c4 FIX: fix the model outside issue after repair
a negative-z found and needs to notify plate after ensure_on_bed

Change-Id: Ifc0eb277a16437333036aeef19020471e3ea91db
2023-02-01 16:24:44 +08:00
MusangKing
92f594ea4a FIX: support blocker not work on vertical+horizontal faces
Jira: STUDIO-2088

Change-Id: I6803e8e90ebcc4c67d81473f60fdf97929011e12
(cherry picked from commit 738800c5af48ab8a2cde40b6f2b3c48a88bfee8b)
2023-02-01 16:24:44 +08:00
Arthur Tang
c07dcffe16 ENH: use print volume to clip tree support
So tree supports won't go outside the bed.

Known issue:
1. moving won't trigger support re-calculating, so if you want to
  clip the supports in a different way after moving, you need to change
  the support settings (eg change threshold angle to 31 degrees).
2. clipping with the occlusion region is not complete, and an error
  message of "outside toolpath" will still be popped because we use
  convex hull to detection confliction.

Jira: STUDIO-2036

Change-Id: I643b14618eb18ffa9825072c44f677e51b0ff937
(cherry picked from commit a6217824dc0f490027e16f80f810d176dec6004b)
2023-02-01 16:24:44 +08:00
tao wang
b144aae5bd ENH:optimize the foreground color of release note text
Change-Id: I48f6b1257fed3b1bba085eee2700060dba7c0705
2023-02-01 16:24:44 +08:00
tao wang
563342c450 ENH:output new error: no space left on printer sd card
Change-Id: If4ced6dcb1d6e2ccb5b1ad950744b9958d298fc7
2023-02-01 16:24:44 +08:00
lane.wei
6b15afc7b6 ENH: refine the timestamp when using P1P
the timestamp of mjpeg is not accurate
we simulate one

Change-Id: I9198f1ba930994cc4f86e8d3a3c778539d04ccb3
2023-02-01 16:24:44 +08:00
qing.zhang
3d378563b5 ENH: modify start gcode
fix the text errot of density of PolyTerra
z_hop_type change to auto

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I7f59d2620b42d2f2092ebb4c01ac3a5455c40a4f
2023-02-01 16:24:44 +08:00
tao wang
625978355a FIX:fixed send print will crash when resources path is chinese path
Change-Id: Ie4a5161f853dca691bd69e5695720d99148a0134
2023-02-01 16:24:44 +08:00
chunmao.guo
5666f8fce9 ENH: [STUDIO-2070] MediaCtrl on macOS: stop on player notify
Change-Id: I9b11a99e8b3f043ff4d8837cda89bc41bfb5eb0e
2023-02-01 16:24:44 +08:00
qing.zhang
6ea24dfd89 ENH: open skirt height
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ie709c2f2987a7c351e03cb1e3c5a06817f43df19
2023-02-01 16:24:44 +08:00
chunmao.guo
96d6ec699c FIX: [STUDIO-2071] thread safe when deleting user presets from cloud
Change-Id: I0cce7adc9e0781d38d0b1aa716b2c5f7d43e8426
2023-02-01 16:24:44 +08:00
Arthur
30bb96aa47 FIX: spiral mode couldn't be enabled
Support layers should be released in is_support_necessary.

Jira: STUDIO-2120
Change-Id: Id1c6fa2d8635e55be745095408dfbac38a25efa6
(cherry picked from commit f911e8d084c4fa273f8c9211112fa2f83515cfb1)
2023-02-01 16:24:44 +08:00
Arthur
aa36d376ec ENH: translate "is too close to others" and so on
Jira: STUDIO-2020
Change-Id: I73a4cd47bafc32ff580b7970a37f808f78cffc3e
2023-02-01 16:24:44 +08:00
salt.wei
a349193dad ENH: alow user to change jerk limitation
This is handle for github issue #1175

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I6e46245e274681502c118252e62ca9fd22a52135
2023-02-01 16:24:44 +08:00
qing.zhang
2705b5e4e6 ENH: updare end gcode and max_vol of TPU 95A
1 extrude move to dustbin
2 max vol of TPU 95A of X1 to 3.6

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I0b9d2a1db9c57c58255f95aad8a77772317a3ec9
2023-02-01 16:24:44 +08:00
Stone Li
dc314bf404 FIX: fix bug of status for calibration finished
Change-Id: I774bbea8952340fc983162c10fca4b7ee444c725
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-02-01 16:24:44 +08:00
tao.jin
df96469918 FIX: title rescale and camerapopup button
Change-Id: Id9e9cec0a834f03d3918304265760d6a80ebf6fe
2023-02-01 16:24:44 +08:00
salt.wei
431eabd464 ENH: use gcode processer to get precise layer number
Using layer z to calculate total layer number is not
precision, because for some models with sharp top
layer, the top layer may be empty.

Check the final layer change in final gcode file.
This must be same with total layer number.

Jira: Studio-2123

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I5d001a8bb9548c3fb5f67fda966051ac3bb16502
2023-02-01 16:24:44 +08:00
gerrit
a36b7c3a9c ci: update network module based on commit d91b2d9
Change-Id: I710f94cb95a9158c26f0e6dbe2a9589d133eda2d
(cherry picked from commit 8d6ee467a83b2a85e7c5813274a73e6720889207)
2023-02-01 16:24:44 +08:00
Joshua Wise
ef4ee43bd4 Linux: MediaPlayCtrl: make playback more reliable with wxUSE_GSTREAMER_PLAYER for systems that have that 2023-02-01 16:24:44 +08:00
salt.wei
7dcb5c0e64 ENH: layer height 5.99999 should be same with 6.0
Merge numerically very close Z values when calculate
total layer number

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I4e60ca69fe5b06b66283d6a763d0b231c3d11b5a
2023-02-01 16:24:44 +08:00
lane.wei
7335f5d015 FIX: fix the crash issue when switch timelapse_mode or spiral mode
previous commit only fix the crash when switch spiral_mode
and will cause crash when switch timelapse_mode

Change-Id: If21acf3701e9519de55a08e183620678378f61b9
2023-02-01 16:24:44 +08:00
lane.wei
fd64c5f694 ENH: use Clear instead of Clean
Change-Id: Ia15a6d17404a76ddaab809cadc664a3a92ab4aa5
2023-02-01 16:24:44 +08:00
lane.wei
9a9113d3f7 FIX: fix a crash issue when setting spiral mode while wipe_tower disabled
wrong type used by boost::any_cast

Change-Id: Ic902c5775bc3cf1f22cb934c53b3ff4afa190e9f
2023-02-01 16:24:44 +08:00
Stone Li
b1fbdaf61c NEW: pass design info to PrintJob
Change-Id: Ic24462324b389e20647620366a5fe2b53bb4c1ce
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-02-01 16:24:44 +08:00
yifan.wu
d833ab1546 ENH: remove redundant log
Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
Change-Id: Id18e366e05ca49740b781ccb5e5f88af61debf56
(cherry picked from commit 269e617faa20f47b2e27e9c24376c7c9c04e0cd0)
2023-02-01 16:24:44 +08:00
Stone Li
7a0e0f9f55 FIX: fix blank filaments in French
Change-Id: I13395432d27a6a573a3ee357233b0623ba5a6ad7
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-02-01 16:24:44 +08:00
Stone Li
eb11c364e5 FIX: fix blank error msg of slicing warning
Change-Id: Idca57158b0139411a775a6b83cce2200694a5f2d
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-02-01 16:24:44 +08:00
tao wang
746d678df5 ENH:update description of humidity description
Change-Id: I1ae0d4aa9d2b43e4d41526e32e0df9260e8aa49b
2023-02-01 16:24:44 +08:00
tao wang
94e6734cc0 ENH:update ui layout for ip address dialog
Change-Id: I0095928e8c3951597d14783e1d4ef904946da993
2023-02-01 16:24:44 +08:00
tao wang
6948fb7546 FIX:fixed input ip dlg cant skip next step when playing liveview
Change-Id: I43c804babfc5e386f1218c9546acbf612d07703c
2023-02-01 16:24:44 +08:00
salt.wei
170a24a43f ENH: show travel time in gcode viewer
Seperate travel time from extrusion role time and
show it seperately.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Icf0aaf63c4d4ed7d1407037e5ae051d61938f973
2023-02-01 16:24:44 +08:00
qing.zhang
db873eb99b ENH: inner-out-inner wal seq
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Idd2205f2b72a8f471927c9e3a38415013548f09e
2023-02-01 16:24:44 +08:00
tao wang
e144fce341 ENH:select vams when none ams mode
Change-Id: Id47e2e89d7b6661cb2f6b147f82bd699237396c9
2023-02-01 16:24:44 +08:00
tao wang
cf46b21003 ENH:C11 printer will not check ip and access code
Change-Id: Ib103ddb848a1ef835582b62c9de22ac17b9fa426
2023-02-01 16:24:44 +08:00
chunmao.guo
bea48a08d6 FIX: not play liveview when device is busy downloading
Change-Id: I48dc1c28fc78d69bfd37d1b531aa7daf5e6e4cbd
2023-02-01 16:24:44 +08:00
tao wang
faa918d872 ENH:update the title text of the enter ip address
Change-Id: I308b72cfa1dfcd138c3314f60db0556adae805dc
2023-02-01 16:24:44 +08:00
tao wang
9a8f832498 ENH:Update IP address input process
Change-Id: Iaf1c187dac117ba10ac16045049a346f7c2b9478
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-02-01 16:24:44 +08:00