In Linux BasicIDE refuses to execute macros assigned to menus and keyboard

In Linux invoking a macro by menu or hot key in BasicIDE raises exception com.sun.star.uno.RuntimeException:invalid attempt to assign an empty interface of type com.sun.star.document.XEmbeddedScripts! I have been working in Windows and not been verifying my scripts in Linux (Ubuntu) but they worked two months ago. Now Libre refuses to run anything I assign to a menu item or hot key in BasicIDE. Does anyone know what has happened?

  • Linux version?
  • LibreOffice version? (Same version on Linux and Windows?)
  • Update happened?
  • Where you store your macro (what is not run now)? In the document? in the MyMacros - Standard library? In other Library?
  • What is the scope (store place) of the assignations? The document? The application?
  • Macro security settings?
  • Can you upload a small sample file here (ebedded some macro and menu association (with document scope)?

Linux version Ubuntu-Mate 18.04 (x64) Libre 6.0.7.3. Windows 10 Libre 7.3.7.2 and 6.1.5.2. Windows 7 Libre 6.0.7.3. The macros are defined in my own independent (not in document) library. I tested with my library installed as user library (using an odt-based installer patterned after Bernard Marcelly’s Xray Tool) and as extension (using a modified version of Bernard’s Extension Compiler). Same results with macro security medium or low. Further testing reveals that this is not exactly a version-specific error. I installed my library (as user library) in an old 32-bit Ubuntu-Mate 18.04 and the event-bound macros worked. I upgraded the 64-bit Ubuntu 18.04 to 20.04.1 without changing my library and it resumed working. Apparently, Libre hosed itself. I would like to know why to avoid having to say simply “reinstall Libre”.