• Welcome to the new forum! We upgraded our forum software with a host of new boards, capabilities and features. It is also more secure.
    Jump in and join the conversation! You can learn more about the upgrade and new features here.

Open XML with non-english characters in name causes crash

LarsSundell

Apprentice
Joined
Mar 29, 2015
Messages
3
Reaction score
0
Hi
I am testing out your program (trial period) and has discovered a bug:
When trying to open an recipe in xml format containing non-english characters the program crash.
Example of xml is:
<RECIPES>
  <RECIPE>
    <NAME>Nøgne Ø blonde</NAME>
...

The crash report contains (among other things) the following:
Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:      KERN_INVALID_ADDRESS at 0x0000000000000000

VM Regions Near 0:
-->
    __TEXT                0000000100000000-0000000100938000 [ 9440K] r-x/rwx SM=COW  /Applications/BeerSmith2.app/Contents/MacOS/BeerSmith2

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0  com.apple.CoreFoundation      0x00007fff943c860c CFStringCreateCopy + 28
1  com.apple.CoreFoundation      0x00007fff94426520 CFAttributedStringCreate + 80
2  BeerSmith-LLC.BeerSmith2      0x00000001001ddca0 0x100000000 + 1957024
3  BeerSmith-LLC.BeerSmith2      0x000000010028e423 0x100000000 + 2679843
4  BeerSmith-LLC.BeerSmith2      0x000000010020eadf wxDC::GetTextExtent(wxString const&, int*, int*, int*, int*, wxFont const*) const + 111


I have also noticed that you fail to display the same characters (ØÅÆ) correctly in the recipe overview and Brew steps view even thu it displays correctly in the recipe details and equipment profile.
 
I have found a workaround for the problem: Replace the characters with English characters in the xlm, then, after import, change them back to the original characters.
This indicate a problem with the xlm parser.
 
Back
Top