XML export bug

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
bjh2622
Posts: 4
Joined: Wed Sep 06, 2017 3:03 pm

XML export bug

Post by bjh2622 » Wed Sep 06, 2017 3:12 pm

Not sure if this bug is already known
- Tried searching the forum but the search seems to be broken (Terms 'XML' and 'XML export' were rejected as too common).

Bug occurs in tutorial 'The World Outside' part B when pressing 'exportxml /foo.xml'
Expected silent save - Instead Max crashes (consistently)
Full crash report below

Thanks and thank you for a great Max extension!

Process: Max [26594]
Path: /Applications/Max.app/Contents/MacOS/Max
Identifier: com.cycling74.Max
Version: 7.3.4 [de5a74a] (7.3.4)
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: Max [26594]
User ID: 502

Date/Time: 2017-09-06 23:09:08.035 +0800
OS Version: Mac OS X 10.12 (16A323)
Report Version: 12
Anonymous UUID: 3AAF4E21-A6B4-0117-6B3B-1FA39F9C9DC7

Sleep/Wake UUID: 531A4806-EABE-494C-A82D-FE705BDC9AE8

Time Awake Since Boot: 700000 seconds
Time Since Wake: 29000 seconds

System Integrity Protection: enabled

Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000020
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]

VM Regions Near 0x20:
-->
__TEXT 000000000005a000-000000000082d000 [ 8012K] r-x/rwx SM=COW /Applications/Max.app/Contents/MacOS/Max

Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 com.cycling74.Max 0x001142d1 sysfile_seteof_64 + 18
1 com.cycling74.Max 0x0011435f sysfile_seteof + 32
2 com.bachproject.bach.score 0x0fc356f8 bach_openfile_write + 321
3 com.bachproject.bach.score 0x0fc17ba1 score_dowritexml(_score const*, symbol*, long, atom*) + 11841
4 com.cycling74.Max 0x000a975f defer + 53
5 com.bachproject.bach.score 0x0fc14d58 score_exportxml + 116
6 com.cycling74.Max 0x0008eceb typedmess_fun + 295
7 com.cycling74.Max 0x0010f836 outlet_anything + 553
8 com.cycling74.Max 0x0008eceb typedmess_fun + 295
9 com.cycling74.Max 0x0008e949 typedmess + 72
10 com.cycling74.Max 0x0008f7a3 aeval + 1094
11 com.cycling74.Max 0x00065181 atombuf_eval + 165
12 message 0x0f3f0915 jmessage_atombuf_eval + 313
13 message 0x0f3f0a29 jmessage_dobang + 133
14 message 0x0f3ef071 jmessage_mousedown + 205
15 com.cycling74.Max 0x001dc694 BoxComponent::sendMouseMessage(juce::MouseEvent const&, symbol*) + 202
16 com.cycling74.Max 0x001dd0e4 BoxComponent::mouseDown(juce::MouseEvent const&) + 1248
17 com.cycling74.Max 0x0046a831 juce::Component::internalMouseDown(juce::MouseInputSource&, juce::Point<int> const&, juce::Time const&) + 661
18 com.cycling74.Max 0x004bdc2a juce::MouseInputSourceInternal::sendMouseDown(juce::Component*, juce::Point<int> const&, long long) + 106
19 com.cycling74.Max 0x004bd942 juce::MouseInputSourceInternal::setButtons(juce::Point<int> const&, long long, juce::ModifierKeys const&) + 376
20 com.cycling74.Max 0x004bcf41 juce::MouseInputSourceInternal::handleEvent(juce::ComponentPeer*, juce::Point<int> const&, long long, juce::ModifierKeys const&) + 159
21 com.cycling74.Max 0x004bca87 juce::MouseInputSource::handleEvent(juce::ComponentPeer*, juce::Point<int> const&, long long, juce::ModifierKeys const&) + 77
22 com.cycling74.Max 0x004c226b juce::ComponentPeer::handleMouseEvent(int, juce::Point<int> const&, juce::ModifierKeys const&, long long) + 101
23 com.cycling74.Max 0x0054a6a9 juce::NSViewComponentPeer::sendMouseEvent(NSEvent*) + 171
24 com.cycling74.Max 0x0054a72b juce::NSViewComponentPeer::redirectMouseDown(NSEvent*) + 121
25 com.cycling74.Max 0x00546aa0 -[JuceNSView_1_52_105_3 asyncMouseDown:] + 34
26 com.cycling74.Max 0x00546a78 -[JuceNSView_1_52_105_3 mouseDown:] + 83
27 com.apple.AppKit 0x92dd334f -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5864
28 com.apple.AppKit 0x92dd0e33 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 5876
29 com.apple.AppKit 0x92dcf3c1 -[NSWindow(NSEventRouting) sendEvent:] + 547
30 com.apple.AppKit 0x92c756de -[NSApplication(NSEvent) sendEvent:] + 2854
31 com.cycling74.Max 0x003f39e8 -[MaxCefApplication sendEvent:] + 130
32 com.apple.AppKit 0x9256d1c5 -[NSApplication run] + 1018
33 com.cycling74.Max 0x003f3939 -[MaxCefApplication run] + 58
34 com.cycling74.chromium 0x0100cc6e 0xee0000 + 1231982
35 com.cycling74.chromium 0x0100c54c 0xee0000 + 1230156
36 com.cycling74.chromium 0x0104ffd2 0xee0000 + 1507282
37 com.cycling74.chromium 0x0106ac7e 0xee0000 + 1617022
38 com.cycling74.chromium 0x0104f9ba 0xee0000 + 1505722
39 com.cycling74.chromium 0x00f58ade 0xee0000 + 494302
40 com.cycling74.Max 0x003f3947 -[MaxCefApplication run] + 72
41 com.cycling74.Max 0x0054f8db juce::MessageManager::runDispatchLoop() + 589
42 com.cycling74.Max 0x0040e590 juce::JUCEApplication::main(juce::StringArray const&) + 62
43 com.cycling74.Max 0x0040e6a5 juce::JUCEApplication::main(int, char const**) + 73
44 com.cycling74.Max 0x000624c5 start + 53

(Thread 1 etc)

danieleghisi
Site Admin
Posts: 1349
Joined: Fri Dec 03, 2010 1:25 pm

Re: XML export bug

Post by danieleghisi » Thu Sep 07, 2017 10:34 pm

Thank you.
We'll look into it.
We should have solved the indexing issue, now "xml" is a searchable key.

Thanks for reporting,
Daniele

bjh2622
Posts: 4
Joined: Wed Sep 06, 2017 3:03 pm

Re: XML export bug

Post by bjh2622 » Fri Sep 08, 2017 4:43 am

No prob!

andreaagostini
Posts: 209
Joined: Fri Dec 03, 2010 1:51 pm

Re: XML export bug

Post by andreaagostini » Fri Sep 15, 2017 10:11 am

Hi,
it's fixed for the next version.

The crash happened when trying to write to a folder you don't have write permission for (such as the root folder since MacOS 10.something).

Thanks for reporting,
andrea

Post Reply