License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…
2024-07-16 07:12 PM
Hi all, my first post here...
So ACAPI_Environment( APIEnv_GetDocumentFrom3DSettingsID, ...) crashes with AC26 and AC27 (in AC27 I have tested the native version). Any workaround or estimate when the fix will be?
I have made a video to show steps to reproduce here.
Thank you!
Petteri Heiskari, ArchiFrame guy
2024-07-17 11:58 AM
Hi Petteri,
Could you please tell us the bug ID?
Thanks, Akos
2024-07-19 11:11 AM
Hi Ákos, sorry - don't have the crash report ID but you can easily reproduce this using the DevKit example project. Please see the linked video for the steps.
Köszönöm szépen, Petteri
2024-07-19 03:19 PM - edited 2024-07-19 03:21 PM
Hi Petteri,
No problem, I found it in our bug database. The issue seems to be around the initialization of the `filterAndCutSettings` member of `API_DocumentFrom3DType`, it contains a std::map that seems to cause the crash.
The good news is that I can reproduce it in AC26 even on my Mac, but not in AC27 or AC28. However, I don't see any change in that part of the source that would explain this behavior, so I'll have to dig deeper.
Best, Ákos
2024-08-27
11:45 AM
- last edited on
2024-08-28
02:44 PM
by
Laszlo Nagy
Hi Ákos,
now I have a crash ID for AC27:
AC27-2024-08-27-09-39-56-6516
Another one without VS debugger running:
AC27-2024-08-27-09-44-56-1900
The related file here.
And what I did was to do the bolded call on the active 3D document:
// Addition 2/2024: Support picking marquee from 3D document if axonometry
API_DatabaseInfo rDbInfo;
API_DocumentFrom3DType rDocFrom3D;
if (ACAPI_Database(APIDb_GetCurrentDatabaseID, &rDbInfo, NULL) == 0 && rDbInfo.typeID == APIWind_DocumentFrom3DID &&
ACAPI_View_GetDocumentFrom3DSettings(&rDbInfo.databaseUnId, &rDocFrom3D) == 0 && rDocFrom3D.projectionSetting.isPersp == false)
{
// Do something
}
Best regards, Petteri