zhou.xu
91f445cfa2
FIX:roload obj for disk
...
jira: STUDIO-7202
Change-Id: I6726a21176dfc9f545b58c5fe9f2ebf623b012d6
2024-06-11 18:17:08 +08:00
zhimin.zeng
f8ee31e4ef
FIX: X1C should not litmit the k value size
...
github: 4168
Change-Id: Iaf0a5a2334debda3de41192b4ea17ebd0c0a3e09
2024-06-11 18:17:08 +08:00
gerrit
9458d56b24
ci: update network module based on commit 3e58fc9
...
Change-Id: I18674c3adf550ce6164037bd25c15d06b4e36b46
2024-06-11 18:17:08 +08:00
chunmao.guo
c88a7c9068
FIX: not cache param Fields on WXGTK
...
Change-Id: Ied31478d738b3ac43e9cbe10888ebeab623a982a
Jira: STUDIO-6909
2024-06-11 18:17:08 +08:00
chunmao.guo
c023e1bd77
FIX: set initial size of param fields
...
Change-Id: I90a185c74a80526d7acf271351f8c86b522a4364
Github: 4147
2024-06-11 18:17:08 +08:00
chunmao.guo
d1e9b5bac2
FIX: crash in ParamsPanel msw_rescale
...
Change-Id: I01fc8b9504aa2f6f562ad698e09cc8249d5c2848
Jira: STUDIO-7161
2024-06-11 18:17:08 +08:00
SoftFever
98dc111d71
NEW:add tab key to change 3D to preview
...
jira:none
code is from OrcaSlicer,thanks for OrcaSlicer and SoftFever
commit 2a478ab4f9bdc1bc1fbc9dfadbb717df6e5a38a9
Author: SoftFever <softfeverever@gmail.com>
Date: Sat Aug 26 18:24:13 2023 +0800
post changes after merging BS1.7.4
Change-Id: Iec176023f6f8e4b93a3756a78e31f85b249d1dfa
2024-06-11 18:17:08 +08:00
zhimin.zeng
a4ba939452
FIX: crash when clicking go home without connecting printer
...
jira: 7003
Change-Id: I42af6b9b81f2aa624844468d3b800238a7349cf2
2024-06-11 18:17:08 +08:00
zhimin.zeng
f03dbdeb61
FIX: modify the max k value
...
jira: none
Change-Id: I739f58d4d80e557e1a320af38cc68d7d4e967577
2024-06-11 18:17:08 +08:00
Mack
e630c0672a
FIX: limit the m_thickness_min value to 0.01
...
jira:STUDIO-7173
github: #4151
Change-Id: I612e8e578683eba3e1cf987428722778a472e2fe
2024-06-11 18:17:08 +08:00
Arthur
f13144d6a9
FIX: empty first layer of tree support
...
The raft gap layer should only exist if there are raft layers.
jira: STUDIO-7184
Change-Id: Ia4d2a5b7ddf873fb4ef16c7087648214e6bde806
2024-06-11 18:17:08 +08:00
maosheng.wei
3b2b9e5893
FIX: [7085] crash when connected printer
...
Jira: STUDIO-7085
Change-Id: I8509a4261885b255dac2e4423f6e641f942f762c
2024-06-11 18:17:08 +08:00
Arthur
461af9e8f6
FIX: top z distance incorrect with adaptive layer height
...
This bug causes supports difficult to remove.
Rule to remmeber:
never decrease the top z distance, you can only increase it SLIGHTLY.
jira: STUDIO-7103, STUDIO-7001
Change-Id: I24f71cd67d182d4e2c0902f244a8ca8f4c3ee982
2024-06-11 18:17:08 +08:00
lane.wei
f9bd783f8b
ENH: CLI: support parse downward_settings from default internal path
...
JIRA: no jira
Change-Id: I99e2b40954c125f6b260f2498374ade66f246d2a
(cherry picked from commit db98aa9a905d62f034cb3f9960f094804b8801be)
2024-06-11 18:17:08 +08:00
lane.wei
9b19dc9edd
ENH: CLI: add logic for backward compatible check
...
1. add logic for backward compatible check
2. add export_stls
JIRA: no-jira
Change-Id: If96ab225b9689e588fae7443e81a73d0872f7eb4
(cherry picked from commit db12cca05c8f60fdc717387253215e361ab29851)
2024-06-11 18:17:08 +08:00
lane.wei
ebe5392932
ENH: CLI: add no light thumbnail logic for CLI
...
previously lots of logic are missed
JIRA: no jira
Change-Id: I3beadbb78127049594614212e8f9a60633e73b56
(cherry picked from commit 8fe9b854fa58c302c56b4f84bd0db9c5d1a4b571)
2024-06-11 18:17:08 +08:00
zhou.xu
f70f528c6c
FIX:in 3d view ,it can also open the printing window
...
jira: none
Change-Id: Ic371926a8d8af3c9b9735c93a4285bcaf521cab1
(cherry picked from commit a6afbacdfcd01ce7c67b36c47ff3fc10419f3f71)
2024-06-11 18:17:08 +08:00
zhou.xu
82b131857f
FIX:updata_thumbnail_data is valid only in preview tab
...
jira: none
Change-Id: I70d6cc71154d0b1e3cc3a83d13b578731eae05a4
(cherry picked from commit aee85d72352c1073f69a756984170af62712e7ce)
2024-06-11 18:17:08 +08:00
zhou.xu
652986bbf1
FIX:exist empty ams in machine
...
Jira: none
Change-Id: I1d43de96e127466b233792325f0ed68b33bad8ac
(cherry picked from commit 7100ddd824427de93bb8e9416f3fa7090a6794c5)
2024-06-11 18:17:08 +08:00
zhou.xu
c248f81ba4
FIX: sync ams colors to m_cur_colors_in_thumbnail
...
jira: STUDIO-6793
Change-Id: I2f180f31f75eac8ea55db659370642721944cbbe
(cherry picked from commit 6b0ef9ba9fb62c0eef18d84f88309cd693564618)
2024-06-11 18:17:08 +08:00
zhou.xu
5ced03779b
FIX:fix abnormal pixel issue
...
Jira: none
Change-Id: Ia2a5a2edf17637338ff88c626294a29df3efde46
(cherry picked from commit 77ef554c94d4153ec3495a1c2b0bbab6b5714af1)
2024-06-11 18:17:08 +08:00
zhou.xu
e7a57325d9
NEW:add edge pixels deal in printed thumbnail
...
Jira: none
Change-Id: I4804034490729125b5d378ee5a74c1b32fd4355a
(cherry picked from commit 961f6cb27d83dc38670a693a583e1a05ec6af835)
2024-06-11 18:17:08 +08:00
zhou.xu
4a0d2c9094
NEW:update color calculation in printed thumbnails
...
Jira: none
Change-Id: Ied8dfd9d10b2dbf57629fc7c78f2c39add073f2e
(cherry picked from commit 6a8cf38a51778fbd054df3623454a97856b7de60)
2024-06-11 18:17:08 +08:00
zhou.xu
47c442a61e
NEW:add no light thumbnail
...
Jira: none
Change-Id: I3c0510dd4d7e444f1a6326b7a59a0ebd5e7aa410
(cherry picked from commit a3d8c36783716e24f39803a8c146a43b1014c092)
2024-06-11 18:17:08 +08:00
zhimin.zeng
8cfdca6e93
FIX: cannot slice when set object extruder is 0
...
jira: none
Change-Id: Idb6e01acc8ac7801331c3b6b4b0e64a23cc02208
2024-06-11 18:17:08 +08:00
zhimin.zeng
922e533fdf
FIX: interlocking_depth does not take effect
...
jira: none
Change-Id: I5298c3fd9ca20273f7e84262d35a59f6aa6e5f41
2024-06-11 18:17:08 +08:00
zhimin.zeng
bef4655f7e
FIX: crash when generating text with thickness <= 0
...
github: 4122
Change-Id: I0fae6ea234ddb92ef2c2bec6e0f8f7555709ec4f
2024-06-11 18:17:08 +08:00
zhou.xu
6843ce1c3a
ENH:add log for text to image by font
...
jira: STUDIO-7101
Change-Id: I0765cc6d0ee2992cca68ba657d2987cd54b5bd7c
2024-06-11 18:17:08 +08:00
tao wang
20b0cba046
ENH:SD card printing using cloud service
...
jira:[for sdcard print]
Change-Id: I9b3f3cc5db1b5c1c63d4e9e016cdd81db6893b65
2024-06-11 18:17:08 +08:00
zhimin.zeng
0c10af38ad
FIX: Unwanted skirts when printing By Object
...
github: 4002
Change-Id: Id2df01bb0d296c5fea2bf53947b57abbb8eb0786
2024-06-11 18:17:08 +08:00
xun.zhang
4cf4e640ce
FIX: unassigned initial extruder ignored
...
jira:NEW
Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I97dbfac705c890d1c2b16c2b685f31d05e82a292
(cherry picked from commit a5a2909c795c6c99ff7d6c6bbe5741491a2b63e0)
2024-06-11 18:17:08 +08:00
zhimin.zeng
46da98c432
FIX: add thread for load font
...
jira: none
Change-Id: Iba53e1cf55beb77acbdbd731f052940b55349b8f
2024-06-11 18:17:08 +08:00
lane.wei
d5a59a5fde
ENH: CLI: add layer range support for assembled object
...
JIRA: no jira
Change-Id: I03456997a1a7c38a73ebbcacfa3edff04b50fcb9
2024-06-11 18:17:08 +08:00
lane.wei
dd9af771c2
ENH: CLI: add logic to set different in process settings
...
JIRA: no-jira
Change-Id: Ie05d43f1699c55bab817ed3b639f0fc3ac6431d6
2024-06-11 18:17:08 +08:00
zhimin.zeng
92e6de4961
FIX: add log for load font
...
jira: none
Change-Id: I30d652525bb2f6917a2ed6b59408fe93459ad4bf
2024-06-11 18:17:08 +08:00
zhou.xu
a89df79068
FIX:support mulitiple object to export one stl
...
jira: none
Change-Id: I641104d71453bb5b276f969234ef1476259fb09b
2024-06-11 18:17:08 +08:00
zhou.xu
e222dc21f4
ENH:SLICE_FAILED stats is more obvious
...
Jira: STUDIO-7051
Change-Id: I743caefa4eb454f36e8b4fb0fd519e6ab9139b29
2024-06-11 18:17:08 +08:00
lane.wei
b0598cc061
FIX: update: add more logic to protect the file access
...
previous json lacks information
github: https://github.com/bambulab/BambuStudio/issues/4050
Change-Id: Ieca2a440f58f77f91caeac00576a38c861b26a5b
2024-06-11 18:17:08 +08:00
Gabriel E. Dvoranen
b068e70e5c
Added pt_br translation on web part
...
Added brazilian portuguese translation to the web part.
Also added pt_br as a code safe language (but login doesn't work because of the url)
2024-05-31 15:19:39 +08:00
Bastien Nocera
e297122ec2
slic3r: Fix std::regex declaration
...
/run/build/BambuStudio/src/slic3r/GUI/Jobs/PrintJob.cpp: In member function ‘virtual void Slic3r::GUI::PrintJob::process()’:
/run/build/BambuStudio/src/slic3r/GUI/Jobs/PrintJob.cpp:291:22: error: ‘regex’ is not a member of ‘std’; did you mean ‘boost::regex’?
291 | std::regex pattern("_+");
| ^~~~~
2024-05-14 15:57:23 +08:00
lane.wei
6da90eedab
FIX: gizmo: fix missed point on plane feature
...
JIRA: no-jira
by haidiye
Change-Id: Ic287cdf77ef62dbe25e04d50280894075a45d697
2024-05-13 09:20:46 +08:00
zhou.xu
3c0082d8ec
FIX:missed point on plane feature
...
jira: none
Change-Id: I8f3399a1b26c877a82ab6cebb55658df07bc77a9
2024-05-13 09:20:46 +08:00
gerrit
53d85a3b89
ci: update network module based on commit d4ba7ce
...
Change-Id: I2c8f38e98cf9d2fc4740b016f03ac73e2e145812
2024-05-13 09:20:46 +08:00
tao wang
f461f8bbb1
ENH:clear nozzle information
...
jira:[STUDIO-7050]
Change-Id: I15ca4973d09132ddb5cb5a56bedd795ba6976b27
2024-05-13 09:20:46 +08:00
Kunlong Ma
44c101a7f8
FIX: fix crash when switched the dpi
...
JIRA: STUDIO-7049
Fix studio crash caused by switching dpi when multi machine is not enabled
Change-Id: I8336de99800d81e3240023b0b35f379e91c251ac
2024-05-13 09:20:46 +08:00
lane.wei
6fa6a1742c
ENH: general: reduce log level of some detailed logs
...
jira: no-jira
Change-Id: I8b074812bf21d982b829f9bdcc65af3996b42eb2
(cherry picked from commit a300bb47e73a25d6851e04efdc7b7a4401b1cda6)
2024-05-13 09:20:46 +08:00
xun.zhang
eb76a8eb28
FIX: bridge not correctly anchored
...
1. Fix external bridge anchor problem
This commit is cherry-picked from Prusa.Thanks prusa
Original commit: 81d9724,74a38ed,4d0bae1
jira:NEW
Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: If8e3b5902341d1777a156b2da8c8f21713683d31
2024-05-13 09:20:46 +08:00
liz.li
c5562423fd
FIX: calibration page text hidden in linux
...
jira: STUDIO-6264
Change-Id: If210abf64057eb2e9c2c5b11d41fa33f18684c72
2024-05-13 09:20:46 +08:00
zhimin.zeng
96365a517b
FIX: the height range is not valid in assemble object
...
github: 3876
Change-Id: Id38672bbf0c01bc9b9f0a3e2bf1052d945b45131
2024-05-13 09:20:46 +08:00
tao wang
2e1bc51758
ENH:Clear the value of the previous nozzle type
...
jira:[for nozzle check]
Change-Id: I9a932b833fb07de6cb0a91abe6372b0e91f273f1
2024-05-13 09:20:46 +08:00
liz.li
476f15c208
FIX: can not parse json float in ES on macOS
...
jira: STUDIO-5889
Change-Id: I622f4b474c378d77b0e43d67a320f023be2d5811
2024-05-13 09:20:46 +08:00
zhou.xu
7fcf5aaaf1
FIX:upgrade cluster algorithm to remove duplicate labels
...
jira: none
Change-Id: I4d68d8cd8e080932c7c308bc8f69e27546ffe309
2024-05-13 09:20:46 +08:00
liz.li
73b07f1e13
FIX: text hidden in calibration tab
...
jira: STUDIO-6264
Change-Id: I24fbc590638a3213d948a973422e010486113923
2024-05-13 09:20:46 +08:00
tao wang
3fe8d450d9
FIX:Fixed error in displaying the name of Bambu filaments
...
Change-Id: Ib42194c07b6eefe793eec81a588debc9d622d951
2024-05-13 09:20:46 +08:00
xun.zhang
dab3f24553
FIX: surfaces wrong detection
...
1. Top surfaces are detected as internal bridge. Can be seen in FDMTest
2. Fix bridge line overlap wall line
jira:NEW
Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I73c47e8b3aba862f46c8438fc69e3fcc382d16cc
2024-05-13 09:20:46 +08:00
liz.li
6d0280da16
FIX: add can slice judgement in slice all plates processing
...
jira: STUDIO-6325
Change-Id: Ic7fb8cef000c03210bb77289a570ee6b60b6083e
2024-05-13 09:20:46 +08:00
chunmao.guo
65db1ef6e0
FIX: PrinterFileSystem report real connect error
...
Change-Id: Id6750cfa2a98fe8325ba677dabb606a0a701b495
2024-05-13 09:20:46 +08:00
zhou.xu
b02661e85f
FIX:add exit_gizmo before slice model
...
jira: STUDIO-5531
Change-Id: Icddc9d73b3d91bb68e9768d13e48cbae0680e58e
2024-05-13 09:20:46 +08:00
tao wang
9b9cf5f912
ENH:Unable to send printing without selecting a device
...
jira:[STUDIO-6850]
Change-Id: Ic537579727fd1618af364db93fce8fbbe4cd635a
2024-05-13 09:20:46 +08:00
maosheng.wei
a635619607
ENH: Configure CN domain name in Studio and use it for rating function
...
Jira: XXXX
Change-Id: I497f4c49e9f0e5bb005e90494dfd89c535ead2c3
(cherry picked from commit 56f25a14c5c1e6bf124c45bf3a23d1120fa89690)
2024-05-13 09:20:46 +08:00
chunmao.guo
981f626165
FIX: ERROR_RES_BUSY text
...
Change-Id: Ifde1a7b0c6ab915eb226c2072c46edd40f60cf9a
Jira: STUDIO-6436
2024-05-13 09:20:46 +08:00
zhimin.zeng
11d54be379
FIX: slice crash with height_range
...
github: 3917
Change-Id: Icdf83013213b47935b7a795ed75cc3d49057665d
2024-05-13 09:20:46 +08:00
xun.zhang
1ceaabea5c
FIX: wrong wipe tower when open 3mf file
...
1.wipe tower pos in 3mf was overwritten by default pos when opening 3mf
with a different printer profile.This patch fix it
jira: STUDIO-5890
Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I12e5d4b80a0ad86194db0682c1763ba4a9492521
2024-05-13 09:20:46 +08:00
Arthur
afd647d764
ENH: improve auto arranging of multi-color and multi-heights objects
...
1. Compute score_all_plates correctly. Previously we only compute the
first j plates which was wrong.
2. Compute height score correctly. Use average height difference instead of sum.
3. Compute color change score in a different way. If adding the current item
increases extruder number, then adds up the score by 1.
jira: STUDIO-7013
Change-Id: I921c181bd4b32080627514d3834f4b74ccd00adb
(cherry picked from commit 4f6ae81be98109fe61d55203e306686e0d294ec4)
2024-05-13 09:20:46 +08:00
zorro.zhang
8434ba0c76
NEW: Add Makerworld CN domain
...
JIRA: none
Change-Id: I1325d1113f337f6915833fde9d772166984b1e4c
2024-05-13 09:20:46 +08:00
zhou.xu
e3fc46f121
FIX:add is_anti_parallel option for set_to_parallel api
...
jira: none
Change-Id: Ia49661e5dbb7b28e9b66da14b4960426d80df06b
2024-05-13 09:20:46 +08:00
Kunlong Ma
dbff3729a4
FIX: Incorrect multiplier, when the multiplier is set to below 1
...
github: #3987 #3805
1. In some languages that use commas as decimal points, setting multiplier below 1 will resolve to 0
2. Unable to save multiplier correctly
Change-Id: I62bc55e270929ebb5e910eb79c6f97106e842b93
2024-05-13 09:20:46 +08:00
Kunlong Ma
82952c49c7
FIX: fix some issue in multi machine
...
JIRA: STUDIO-6934 STUDIO-6888
1. Fix the issue of incomplete display caused by excessively long file names
2. Fix the issue of icon display being too large
3. Fix the issue of garbled Chinese characters in the task list
Change-Id: I36bc10bf2067f44aaa7e3651b58e526ea323c8ad
2024-05-13 09:20:46 +08:00
maosheng.wei
6497184248
FIX: some translation
...
github: #3961
Change-Id: I71f90e799c8c3512902118777d813789c38c3eae
2024-05-13 09:20:46 +08:00
chunmao.guo
92fac8d643
FIX: resend ttcode to printer on -90 error
...
Change-Id: I96dc45102a2759a9f1a0002f42c3a91b2c6b2d75
Jira: STUDIO-5947
(cherry picked from commit 97d687b7c88f8cd51b8eddd39120349d8eac42b1)
2024-05-13 09:20:46 +08:00
chunmao.guo
2d57111d0b
FIX: PrinterFileSystem::FileRemoved
...
Change-Id: I891aaa8d58ff379dc1ebd8581064865a33388f74
2024-05-13 09:20:46 +08:00
zhou.xu
c69b94af5c
ENH:delete no use code
...
jira: none
Change-Id: I40e7ffa7ea47bb3cd4039eef9f6c28c604eb3abc
2024-05-13 09:20:46 +08:00
Arthur
96e2147394
FIX: handle exception of dividing by zero in arranging
...
jira: none
Change-Id: I0d20464dbe81a80293539100f06d72dee456a27b
(cherry picked from commit 94746ae9bf7f467243849570450567b4fdc78e3a)
2024-05-13 09:20:46 +08:00
tao wang
932218e389
FIX:fixed incorrect display of printer options page on Linux
...
jira:[STUDIO-6220]
Change-Id: Id1f084658b0b340b7f17ab97ba82c0fd3ae83fae
2024-05-13 09:20:46 +08:00
tao wang
1bcf30c39c
FIX:filter the characters of model names in the model mall
...
jira:[STUDIO-6649]
If the model comes from model mall, the name from the mall will be used when sending and printing. When there are special characters in the name, it will cause the sending to fail.
Change-Id: I324441cc7177e7062b79280c5d23afe9eeb5e4c2
2024-05-13 09:20:46 +08:00
tao wang
9af43a2dfb
FIX:fixed display problems in Turkish
...
Change-Id: I518b4c6920ac353c5aaeaad1a4d17b501ba5b47a
2024-05-13 09:20:46 +08:00
Arthur
d175c3d3c9
ENH: pack objects with similar heights together in auto arranging
...
1. improve sorting logic by packing higher objects first, so objects with similar heights can be packed together.
2. remove the logic of arranging around wipe tower.
This logic is no longer useful, and it makes auto arranging density low.
jira: none
Change-Id: I3458ad8702cece29c6853f990497dbcc45365537
(cherry picked from commit bbb72c833324a8cddaab1891693c5c9e1cdedc9b)
2024-05-13 09:20:46 +08:00
zhou.xu
06be80bcd0
ENH:set the warning text to yellow in gizmos
...
jira: none
Change-Id: Iaf71528f5f877452dee579ce1c827f5eaa93e4c4
2024-05-13 09:20:46 +08:00
maosheng.wei
dc0df83393
FIX: [6469] popup dialog too mach when reload object
...
Jira: 6469
Change-Id: I4097e3a3b018c7a676fea93bf63f8f778bb3148b
2024-05-13 09:20:46 +08:00
zhou.xu
38f6d5b4f5
FIX:Relax restrictions on importing obj files
...
jira: none
Change-Id: I61a0156a8424a5f59922956918d37d38e2c3306a
2024-05-13 09:20:46 +08:00
zhou.xu
a5fb3ce6c6
ENH:render normal offset face and upgrade one button
...
upgrade assembly ui
jira: none
Change-Id: I76a2dbab1083a042fe95a027b7990e256327445b
2024-05-13 09:20:46 +08:00
zhou.xu
1be7b9f48e
ENH:only specified features can be selected in specified mode
...
jira: none
Change-Id: Ie8b229b671cbe9f5848154ca687aeb55b853f29e
2024-05-13 09:20:46 +08:00
maosheng.wei
7e53322477
ENH: Optimize the copywriting when exporting presets
...
Jira: XXXX
Change-Id: I9a7a0cf4ccb040dcfbecd242f54e6aea0f81bf86
2024-05-13 09:20:46 +08:00
Arthur
c413945186
FIX: tree support defaults to hybrid style with adaptive layer height
...
Organic support doesn't work with adaptive layer height.
jira: STUDIO-6971
Change-Id: I1fa6418bbc49914b3e5887e465861a0dacd42228
(cherry picked from commit dfe1cecb234d86bfbcba741ca3b46725fee43ea8)
2024-05-13 09:20:46 +08:00
chunmao.guo
25764ce9f6
FIX: PrinterFileSystem report real connect error
...
Change-Id: I99d6ff7f6dcb1f53ccf59854f5f19d0bd39fa9fc
Jira: none
2024-05-13 09:20:46 +08:00
zhou.xu
660b407742
ENH:add mz_zip_reader_extract_to_file_w api
...
to solove plugin install failed problem by special wide char
jira: none
Change-Id: Ic7d3efe3fdf852387650abf9df65803da9e46a60
(cherry picked from commit b68ad03717a63675fef2f3ef73d4058bf311adea)
2024-05-13 09:20:46 +08:00
Momin Al-Ghosien
7b52c24d60
Removed unused method
2024-05-06 14:38:59 +08:00
Momin Al-Ghosien
59c3bc2cbe
Remove accidentally added whitespace
2024-05-06 14:38:59 +08:00
Momin Al-Ghosien
da29408504
Updated to fix the handling of the capacity change, and removed the code I previously added to reserve upfront since it is not really needed
2024-05-06 14:38:59 +08:00
Momin Al-Ghosien
306b09b4f5
Fix use after free bug in LinesBucketQueue::emplace_back_bucket
...
I found a use after free bug in LinesBucketQueue::emplace_back_bucket. This was found by enabling address sanitizer.
The LinesBucketQueue class has two related members:
std::vector<LinesBucket> line_buckets;
std::priority_queue<LinesBucket *, std::vector<LinesBucket *>, LinesBucketPtrComp> line_bucket_ptr_queue;
line_bucket_ptr_queue holds pointers into line_buckets. However, since items are inserted into line_buckets one at a time, existing pointers that were stored inside line_bucket_ptr_queue become invalid. Specifically:
void LinesBucketQueue::emplace_back_bucket(ExtrusionLayers &&els, const void *objPtr, Point offset)
{
auto oldSize = line_buckets.capacity();
line_buckets.emplace_back(std::move(els), objPtr, offset); <--- Causes a reallocation, making previous pointers invalid
line_bucket_ptr_queue.push(&line_buckets.back()); <-- priority queue compares against old, now invalid pointers
...
The proposed fix is to calculate the required number of entries in ConflictChecker::find_inter_of_lines_in_diff_objs, and then calling line_buckets.reserve(count). This ensures that sufficient buffer is allocated up front and the pointers are stable as items are added.
2024-05-06 14:38:59 +08:00
Bastien Nocera
8e647d701c
slic3r: Fix missing BOOST_LOG_TRIVIAL declaration
...
[427/494] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/Utils/FontUtils.cpp.o
FAILED: src/slic3r/CMakeFiles/libslic3r_gui.dir/Utils/FontUtils.cpp.o
/usr/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DCURL_STATICLIB -DGLEW_STATIC -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOPENSSL_CERT_OVERRIDE -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_CURRENTLY_COMPILING_GUI_MODULE -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -D__WXGTK3__ -D__WXGTK__ -DwxDEBUG_LEVEL=0 -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/hidapi/include -I/run/build/BambuStudio/src/slic3r/Utils -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/atk-1.0 -I/usr/include/fribidi -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -I/usr/include/gstreamer-1.0 -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -I/run/build/BambuStudio/src/minilzo -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /app/lib/wx/include/gtk3-unicode-static-3.1 -isystem /app/include/wx-3.1 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/opencv4 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -std=gnu++20 -fext-numeric-literals -Wall -Wno-reorder -pthread -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/slic3r/CMakeFiles/libslic3r_gui.dir/Utils/FontUtils.cpp.o -MF src/slic3r/CMakeFiles/libslic3r_gui.dir/Utils/FontUtils.cpp.o.d -o src/slic3r/CMakeFiles/libslic3r_gui.dir/Utils/FontUtils.cpp.o -c /run/build/BambuStudio/src/slic3r/Utils/FontUtils.cpp
/run/build/BambuStudio/src/slic3r/Utils/FontUtils.cpp: In function ‘std::unique_ptr<Slic3r::FontFile> Slic3r::create_font_file(const char*)’:
/run/build/BambuStudio/src/slic3r/Utils/FontUtils.cpp:127:27: error: ‘error’ was not declared in this scope; did you mean ‘perror’?
127 | BOOST_LOG_TRIVIAL(error) << "Couldn't open " << file_path << " for reading.";
| ^~~~~
| perror
[447/494] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/TaskManager.cpp.o
FAILED: src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/TaskManager.cpp.o
/usr/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DCURL_STATICLIB -DGLEW_STATIC -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOPENSSL_CERT_OVERRIDE -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_CURRENTLY_COMPILING_GUI_MODULE -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -D__WXGTK3__ -D__WXGTK__ -DwxDEBUG_LEVEL=0 -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/hidapi/include -I/run/build/BambuStudio/src/slic3r/Utils -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/atk-1.0 -I/usr/include/fribidi -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -I/usr/include/gstreamer-1.0 -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -I/run/build/BambuStudio/src/minilzo -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /app/lib/wx/include/gtk3-unicode-static-3.1 -isystem /app/include/wx-3.1 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/opencv4 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -std=gnu++20 -fext-numeric-literals -Wall -Wno-reorder -pthread -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/TaskManager.cpp.o -MF src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/TaskManager.cpp.o.d -o src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/TaskManager.cpp.o -c /run/build/BambuStudio/src/slic3r/GUI/TaskManager.cpp
In file included from /run/build/BambuStudio/src/slic3r/GUI/TaskManager.cpp:1:
/run/build/BambuStudio/src/slic3r/GUI/TaskManager.hpp: In member function ‘void Slic3r::TaskStateInfo::set_state(Slic3r::TaskState)’:
/run/build/BambuStudio/src/slic3r/GUI/TaskManager.hpp:40:9: error: ‘BOOST_LOG_TRIVIAL’ was not declared in this scope
40 | BOOST_LOG_TRIVIAL(trace) << "TaskStateInfo set state = " << get_task_state_enum_str(ts);
| ^~~~~~~~~~~~~~~~~
2024-04-26 08:46:02 +08:00
Bastien Nocera
c417fb650f
slic3r: Fix wxFont being undefined
...
[427/494] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/Utils/FontUtils.cpp.o
FAILED: src/slic3r/CMakeFiles/libslic3r_gui.dir/Utils/FontUtils.cpp.o
/usr/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DCURL_STATICLIB -DGLEW_STATIC -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOPENSSL_CERT_OVERRIDE -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_CURRENTLY_COMPILING_GUI_MODULE -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -D__WXGTK3__ -D__WXGTK__ -DwxDEBUG_LEVEL=0 -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/hidapi/include -I/run/build/BambuStudio/src/slic3r/Utils -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/atk-1.0 -I/usr/include/fribidi -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -I/usr/include/gstreamer-1.0 -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -I/run/build/BambuStudio/src/minilzo -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /app/lib/wx/include/gtk3-unicode-static-3.1 -isystem /app/include/wx-3.1 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/opencv4 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -std=gnu++20 -fext-numeric-literals -Wall -Wno-reorder -pthread -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/slic3r/CMakeFiles/libslic3r_gui.dir/Utils/FontUtils.cpp.o -MF src/slic3r/CMakeFiles/libslic3r_gui.dir/Utils/FontUtils.cpp.o.d -o src/slic3r/CMakeFiles/libslic3r_gui.dir/Utils/FontUtils.cpp.o -c /run/build/BambuStudio/src/slic3r/Utils/FontUtils.cpp
In file included from /run/build/BambuStudio/src/slic3r/Utils/FontUtils.cpp:1:
/run/build/BambuStudio/src/slic3r/Utils/FontUtils.hpp:51:21: error: ‘wxFont’ does not name a type
51 | bool can_load(const wxFont &font);
| ^~~~~~
2024-04-26 08:46:02 +08:00
tao wang
7c8aa16d17
ENH:Added two entrances for adding devices
...
jira:[multi device]
Change-Id: Ieb6197e067d422979606f93b22b337a2399aec74
2024-04-25 20:57:09 +08:00
tao wang
7bf39fbbf1
NEW:add multiple printer restrictions
...
jira:[for multiple]
Change-Id: I0bb5a0c1062a543c42f8d67a9347efa358b0864a
2024-04-25 20:57:09 +08:00
zhou.xu
3fa678d42e
FIX:cancel obj import restrictions
...
jira: none
Change-Id: Iaf3e799ca982ad6aeb3ec76e9a416c4c8e4d100c
2024-04-23 21:22:42 +08:00
zhou.xu
36b547cf2b
FIX:not init m_current_active_imgui_id in gizmo assembly
...
jira: none
Change-Id: I694f4fc54c2d6be7b4cc21265f00387d343dfb88
2024-04-23 20:07:49 +08:00
Arthur
0d57da5530
FIX: organic support may crash with some model
...
bad function call when calling empty function throw_on_cancel.
jira: STUDIO-6927
Change-Id: Ib37530b5cf155973d4e21d088e07d3110c2d36e4
(cherry picked from commit 53f27f5968a481bab1666fe0053f9753d585f0da)
2024-04-23 20:07:49 +08:00
tao wang
71bbb371ba
ENH:update wiki url for Pin Code
...
jira:[pin code]
Change-Id: I95faaa396a839b5b159119ef235b650c76706a84
2024-04-23 20:07:49 +08:00
qing.zhang
c5bc499f4e
ENH: translation
...
Jira: none
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: If86ef981837146f9a198abf1ff1833364ee6dc6f
2024-04-23 20:07:49 +08:00
zhou.xu
50ccc926f5
ENH: enhance render assembly combox
...
jira: none
Change-Id: I84d83a8baf639ae609247928c457d6363bb84dc3
2024-04-23 20:07:49 +08:00