NoteLayer problem

Discuss Moho bugs (or suspected bugs) with other users. To report bugs to Smith Micro, please visit support.smithmicro.com

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

NoteLayer problem

Post by ulrik »

I have a problem with Moho 12, as I also had with AS Pro 11.2 (it started with AS Pro 11.1, on v.11.0 it's working as it should)
As soon as I add a "NoteLayer" Moho crash, so this means I am unable to open my old files that contain a NoteLayer (it has to visible, if it's not then I can open the file)
I know that I can disable the NoteLayers visibility with a text editor, for every file, but I is a tedious work, and what is more important is that I can't make use of NoteLayers at all.

I think that something must have changed from AS 11.0 to 11.1 in the development of the software, that introduced this bug?
Is there anyone having the same problem?

I have reported this as a bug to Smith Micro but I thought I should ask in the forum if anyone is having the same experience.

I am running on mac using OS X 10.11.6 and OS X 10.9.5 (Moho crash on both machines)
My OS is localized in Swedish (if that could be a problem?)
emartin
Posts: 128
Joined: Wed Aug 24, 2011 7:47 pm
Location: Orlando, FL

Re: NoteLayer problem

Post by emartin »

ulrik wrote:I have a problem with Moho 12, as I also had with AS Pro 11.2 (it started with AS Pro 11.1, on v.11.0 it's working as it should)
As soon as I add a "NoteLayer" Moho crash, so this means I am unable to open my old files that contain a NoteLayer (it has to visible, if it's not then I can open the file)
I know that I can disable the NoteLayers visibility with a text editor, for every file, but I is a tedious work, and what is more important is that I can't make use of NoteLayers at all.

I think that something must have changed from AS 11.0 to 11.1 in the development of the software, that introduced this bug?
Is there anyone having the same problem?

I have reported this as a bug to Smith Micro but I thought I should ask in the forum if anyone is having the same experience.

I am running on mac using OS X 10.11.6 and OS X 10.9.5 (Moho crash on both machines)
My OS is localized in Swedish (if that could be a problem?)
Hi Ulrik,

Sorry you are seeing a crash.

You contacted Smith Micro support to report it? If so, did you get a bug number? I can't find a crashing note layer bug in our bug database.

Can you post the Mac crash log to this forum thread?

Also, can you give exact reproduction steps? Do you have to open an existing 11.0 document and then add the note layer to have it crash? Are any of the notes using Swedish characters? The reason I ask is if I open a new .moho document in 12.0 and than create a note layer (playing with it's visibility), I can't get it to crash on repeated openings of the document.

Erik
emartin
Posts: 128
Joined: Wed Aug 24, 2011 7:47 pm
Location: Orlando, FL

Re: NoteLayer problem

Post by emartin »

emartin wrote: You contacted Smith Micro support to report it? If so, did you get a bug number? I can't find a crashing note layer bug in our bug database.

Can you post the Mac crash log to this forum thread?
Assuming it is the same one, I was pointed to the bug number for someone else who recently reported a crash with note layers (#38626). It looks like it is an issue getting a string width of a font. Ulrik, can you confirm if the crash looks the same?

Process: Moho [7962]
Path: /Applications/Moho_12_20763.app/Contents/MacOS/Moho
Identifier: com.smithmicro.MohoApp
Version: 12.0 (20763)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Moho [7962]
User ID: 501

Date/Time: 2016-08-20 06:36:37.112 +0200
OS Version: Mac OS X 10.10.4 (14E46)
Report Version: 11
Anonymous UUID: F6679724-680C-A54E-CC96-26306A8DC6A5

Sleep/Wake UUID: 8F3316BB-659E-4592-A8D6-A0E04D78EBF7

Time Awake Since Boot: 320000 seconds
Time Since Wake: 3700 seconds

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

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000070

VM Regions Near 0x70:
-->
__TEXT 0000000100dc7000-000000010190d000 [ 11.3M] r-x/rwx SM=COW /Applications/Moho_12_20763.app/Contents/MacOS/Moho

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.smithmicro.MohoApp 0x00000001010ee017 LM_Font::StringWidth(char const*, bool) + 75
1 com.smithmicro.MohoApp 0x0000000100f9499f NoteLayer::DrawMe(MohoDoc*, XGraphics*, LM_image const*, MohoLayerDrawMode*, MohoLayer*, MohoDrawStatus*, MohoRenderOptions*) + 703
2 com.smithmicro.MohoApp 0x0000000100ea6c2f GroupLayer::DrawMe(MohoDoc*, XGraphics*, LM_image const*, MohoLayerDrawMode*, MohoLayer*, MohoDrawStatus*, MohoRenderOptions*) + 811
3 com.smithmicro.MohoApp 0x000000010104ae48 MohoView::InnerDraw() + 316
4 com.smithmicro.MohoApp 0x0000000101043d0f MohoView::DrawViewContents() + 1861
5 com.smithmicro.MohoApp 0x0000000101046404 MohoView::OnGLDraw() + 108
6 com.smithmicro.MohoApp 0x00000001011d52d0 -[LMi_GLView drawRect:] + 236
7 com.apple.AppKit 0x00007fff89166689 -[NSView _drawRect:clip:] + 4238
8 com.apple.AppKit 0x00007fff89164cfa -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1875
9 com.apple.AppKit 0x00007fff891650fe -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2903
10 com.apple.AppKit 0x00007fff891650fe -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2903
11 com.apple.AppKit 0x00007fff89162b96 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 913
12 com.apple.AppKit 0x00007fff891622f3 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 333
13 com.apple.AppKit 0x00007fff8915e68b -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2761
14 com.apple.AppKit 0x00007fff891161ae -[NSView displayIfNeeded] + 1876
15 com.apple.AppKit 0x00007fff89115a09 -[NSWindow displayIfNeeded] + 236
16 com.apple.AppKit 0x00007fff89115672 _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints + 936
17 com.apple.AppKit 0x00007fff8984b171 __83-[NSWindow _postWindowNeedsDisplayOrLayoutOrUpdateConstraintsUnlessPostingDisabled]_block_invoke1540 + 46
18 com.apple.CoreFoundation 0x00007fff85559127 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
19 com.apple.CoreFoundation 0x00007fff85559080 __CFRunLoopDoObservers + 368
20 com.apple.CoreFoundation 0x00007fff8554b188 __CFRunLoopRun + 872
21 com.apple.CoreFoundation 0x00007fff8554abd8 CFRunLoopRunSpecific + 296
22 com.apple.HIToolbox 0x00007fff8085856f RunCurrentEventLoopInMode + 235
23 com.apple.HIToolbox 0x00007fff808581ee ReceiveNextEventCommon + 179
24 com.apple.HIToolbox 0x00007fff8085812b _BlockUntilNextEventMatchingListInModeWithFilter + 71
25 com.apple.AppKit 0x00007fff891128ab _DPSNextEvent + 978
26 com.apple.AppKit 0x00007fff89111e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
27 com.apple.AppKit 0x00007fff89107af3 -[NSApplication run] + 594
28 com.smithmicro.MohoApp 0x0000000100dcce50 LM_App::Run() + 612
29 com.smithmicro.MohoApp 0x000000010103e480 LM_Main() + 66
30 com.smithmicro.MohoApp 0x0000000100dd18fa LM_App::Main() + 14
31 com.smithmicro.MohoApp 0x0000000100dcad65 main + 394
32 libdyld.dylib 0x00007fff822515c9 start + 1
emartin
Posts: 128
Joined: Wed Aug 24, 2011 7:47 pm
Location: Orlando, FL

Re: NoteLayer problem

Post by emartin »

Ulrik, I got it to reproduce using these steps.

- Launch System Preferences
- Go to Language and Regions
- Set Preferred Language to "Svenska" (Swedish)
- Don't Restart System
- Launch Moho 12.0
- New Document
- Open Library search for fire_threshold
- Drag and drop on canvas
- Click OK on Insert Object dialog
- Crash

We'll look at fixing for 12.1. Reference bug #38626.
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Re: NoteLayer problem

Post by ulrik »

Great emartin, yes my ID Case for the crash on Moho 12 is 1326632 and for ASP 11.1 is 1240805
Looking forward for a fix, thank you!

Regards Ulrik
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Re: NoteLayer problem

Post by ulrik »

This is the start of the OS X system report for the Note Layer crash in Moho 12:

Process: Moho [1140]
Path: /Applications/Moho.app/Contents/MacOS/Moho
Identifier: com.smithmicro.MohoApp
Version: 12.0 (20763)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Moho [1140]
User ID: 502

Date/Time: 2016-08-26 21:49:33.430 +0200
OS Version: Mac OS X 10.11.6 (15G31)
Report Version: 11
Anonymous UUID: 1E5D2F76-DC48-76BB-7EF9-B26AC636BDB1


Time Awake Since Boot: 190 seconds

System Integrity Protection: enabled

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

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

VM Regions Near 0x70:
-->
__TEXT 000000010561d000-0000000106163000 [ 11.3M] r-x/rwx SM=COW /Applications/Moho.app/Contents/MacOS/Moho

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.smithmicro.MohoApp 0x0000000105944017 LM_Font::StringWidth(char const*, bool) + 75
1 com.smithmicro.MohoApp 0x00000001057ea99f NoteLayer::DrawMe(MohoDoc*, XGraphics*, LM_image const*, MohoLayerDrawMode*, MohoLayer*, MohoDrawStatus*, MohoRenderOptions*) + 703
2 com.smithmicro.MohoApp 0x00000001058a0e48 MohoView::InnerDraw() + 316
3 com.smithmicro.MohoApp 0x0000000105899d0f MohoView::DrawViewContents() + 1861
4 com.smithmicro.MohoApp 0x000000010589c404 MohoView::OnGLDraw() + 108
5 com.smithmicro.MohoApp 0x0000000105a2b2d0 -[LMi_GLView drawRect:] + 236
6 com.apple.AppKit 0x00007fff8b734cd2 -[NSView _drawRect:clip:] + 3626
7 com.apple.AppKit 0x00007fff8b78ccad -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1873
8 com.apple.AppKit 0x00007fff8b78d08a -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2862
9 com.apple.AppKit 0x00007fff8b78d08a -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2862
10 com.apple.AppKit 0x00007fff8b7323fb -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 838
11 com.apple.AppKit 0x00007fff8b731be0 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 334
12 com.apple.AppKit 0x00007fff8b72ffeb -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2449
13 com.apple.AppKit 0x00007fff8b72b3f5 -[NSView displayIfNeeded] + 1950
14 com.apple.AppKit 0x00007fff8b72ac3c -[NSWindow displayIfNeeded] + 232
15 com.apple.AppKit 0x00007fff8bdaf41b ___NSWindowGetDisplayCycleObserver_block_invoke6365 + 476
16 com.apple.AppKit 0x00007fff8b72a5d6 __37+[NSDisplayCycle currentDisplayCycle]_block_invoke + 941
17 com.apple.QuartzCore 0x00007fff94dcbf71 CA::Transaction::run_commit_handlers(CATransactionPhase) + 85
18 com.apple.QuartzCore 0x00007fff94dcb42c CA::Context::commit_transaction(CA::Transaction*) + 160
19 com.apple.QuartzCore 0x00007fff94dcb0ec CA::Transaction::commit() + 508
20 com.apple.QuartzCore 0x00007fff94dd6977 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 71
21 com.apple.CoreFoundation 0x00007fff90dd0067 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
22 com.apple.CoreFoundation 0x00007fff90dcffd7 __CFRunLoopDoObservers + 391
23 com.apple.CoreFoundation 0x00007fff90daeef8 CFRunLoopRunSpecific + 328
24 com.apple.HIToolbox 0x00007fff856c9935 RunCurrentEventLoopInMode + 235
25 com.apple.HIToolbox 0x00007fff856c976f ReceiveNextEventCommon + 432
26 com.apple.HIToolbox 0x00007fff856c95af _BlockUntilNextEventMatchingListInModeWithFilter + 71
27 com.apple.AppKit 0x00007fff8b5d2df6 _DPSNextEvent + 1067
28 com.apple.AppKit 0x00007fff8b5d2226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
29 com.apple.AppKit 0x00007fff8b5c6d80 -[NSApplication run] + 682
30 com.smithmicro.MohoApp 0x0000000105622e50 LM_App::Run() + 612
31 com.smithmicro.MohoApp 0x0000000105894480 LM_Main() + 66
32 com.smithmicro.MohoApp 0x00000001056278fa LM_App::Main() + 14
33 com.smithmicro.MohoApp 0x0000000105620d65 main + 394
34 libdyld.dylib 0x00007fff950e15ad start + 1

Thread 1:
0 libsystem_kernel.dylib 0x00007fff98b7f5e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff91bca578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff91bc8341 start_wqthread + 13

Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff98b7fefa kevent_qos + 10
1 libdispatch.dylib 0x00007fff8cbba165 _dispatch_mgr_invoke + 216
2 libdispatch.dylib 0x00007fff8cbb9dcd _dispatch_mgr_thread + 52

Thread 3:
0 libsystem_kernel.dylib 0x00007fff98b7f5e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff91bca578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff91bc8341 start_wqthread + 13

Thread 4:
0 libsystem_kernel.dylib 0x00007fff98b7f5e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff91bca578 _pthread_wqthread + 1283
emartin
Posts: 128
Joined: Wed Aug 24, 2011 7:47 pm
Location: Orlando, FL

Re: NoteLayer problem

Post by emartin »

ulrik wrote:Great emartin, yes my ID Case for the crash on Moho 12 is 1326632 and for ASP 11.1 is 1240805
Looking forward for a fix, thank you!

Regards Ulrik
Nice. Thanks for confirming it is the same crash.

Our engineer found the problem and is looking for a fix. The short answer is it is a font name issue. Using English, the requested font name for the note layer is returning as available and in Swedish (and probably other languages/locales) the requested font name is coming back as invalid causing the unexpected crash. Unfortunately until it is fixed, the only ugly workaround is to have your language/locale be English, Spanish, or German as those are the only languages we actively test in house.

Erik
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Re: NoteLayer problem

Post by ulrik »

emartin wrote:
ulrik wrote:Great emartin, yes my ID Case for the crash on Moho 12 is 1326632 and for ASP 11.1 is 1240805
Looking forward for a fix, thank you!

Regards Ulrik
Nice. Thanks for confirming it is the same crash.

Our engineer found the problem and is looking for a fix. The short answer is it is a font name issue. Using English, the requested font name for the note layer is returning as available and in Swedish (and probably other languages/locales) the requested font name is coming back as invalid causing the unexpected crash. Unfortunately until it is fixed, the only ugly workaround is to have your language/locale be English, Spanish, or German as those are the only languages we actively test in house.

Erik
Ok, I understand, then I can just switch to english when working with those files, great thank you!

Ulrik
Post Reply